Adding a getClockDivider function (#1355)
* Adding getClockDivider function * indentation correction
This commit is contained in:
parent
6bf7619ccc
commit
f5246cf4c1
@ -109,6 +109,11 @@ void SPIClass::setClockDivider(uint32_t clockDiv)
|
||||
spiSetClockDiv(_spi, _div);
|
||||
}
|
||||
|
||||
uint32_t SPIClass::getClockDivider()
|
||||
{
|
||||
return spiGetClockDiv(_spi);
|
||||
}
|
||||
|
||||
void SPIClass::setDataMode(uint8_t dataMode)
|
||||
{
|
||||
spiSetDataMode(_spi, dataMode);
|
||||
|
@ -61,6 +61,8 @@ public:
|
||||
void setFrequency(uint32_t freq);
|
||||
void setClockDivider(uint32_t clockDiv);
|
||||
|
||||
uint32_t getClockDivider();
|
||||
|
||||
void beginTransaction(SPISettings settings);
|
||||
void endTransaction(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user