SdFat
|
Virtual SPI class for access to SD and SDHC flash memory cards. More...
#include <SdSpi.h>
Public Member Functions | |
virtual void | begin (uint8_t chipSelectPin)=0 |
virtual void | beginTransaction (uint8_t divisor) |
virtual void | endTransaction () |
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 SPI class for access to SD and SDHC flash memory cards.
|
pure virtual |
Initialize the SPI bus.
[in] | chipSelectPin | SD card chip select pin. |
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 >.
|
virtual |
End SPI transaction.
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 >.