Virtual SPI class for access to SD and SDHC flash memory cards. More...
#include <SdSpi.h>
Public Member Functions | |
virtual void | begin ()=0 |
virtual void | init (uint8_t divisor) |
virtual uint8_t | receive ()=0 |
virtual uint8_t | receive (uint8_t *buf, size_t n)=0 |
virtual void | send (uint8_t data)=0 |
virtual void | send (const uint8_t *buf, size_t n)=0 |
virtual bool | useSpiTransactions ()=0 |
Virtual SPI class for access to SD and SDHC flash memory cards.
|
pure virtual |
Initialize the SPI bus
Implemented in SdSpiSoft< MisoPin, MosiPin, SckPin >.
|
virtual |
Set SPI options for access to SD/SDHC cards.
[in] | divisor | SCK clock divider relative to the system clock. |
Reimplemented in SdSpiSoft< MisoPin, MosiPin, SckPin >.
|
pure virtual |
|
pure virtual |
Receive multiple bytes.
[out] | buf | Buffer to receive the data. |
[in] | n | Number of bytes to receive. |
Implemented in SdSpiSoft< MisoPin, MosiPin, SckPin >.
|
pure virtual |
|
pure virtual |
Send multiple bytes.
[in] | buf | Buffer for data to be sent. |
[in] | n | Number of bytes to send. |
Implemented in SdSpiSoft< MisoPin, MosiPin, SckPin >.
|
pure virtual |
Implemented in SdSpiSoft< MisoPin, MosiPin, SckPin >.