SdFat
|
Base class for external soft SPI. More...
#include <SdSpiSoftDriver.h>
Public Member Functions | |
void | activate () |
virtual void | begin ()=0 |
void | begin (SdSpiConfig spiConfig) |
void | deactivate () |
virtual uint8_t | receive ()=0 |
uint8_t | receive (uint8_t *buf, size_t count) |
void | send (const uint8_t *buf, size_t count) |
virtual void | send (uint8_t data)=0 |
void | setSckSpeed (uint32_t maxSck) |
Base class for external soft SPI.
|
inline |
Activate SPI hardware.
|
pure virtual |
Initialize the SPI bus.
Implemented in SoftSpiDriver< MisoPin, MosiPin, SckPin >.
|
inline |
Initialize the SPI bus.
[in] | spiConfig | SD card configuration. |
|
inline |
Deactivate SPI hardware.
|
pure virtual |
|
inline |
Receive multiple bytes.
[out] | buf | Buffer to receive the data. |
[in] | count | Number of bytes to receive. |
|
inline |
Send multiple bytes.
[in] | buf | Buffer for data to be sent. |
[in] | count | Number of bytes to send. |
|
pure virtual |
Send a byte.
[in] | data | Byte to send |
Implemented in SoftSpiDriver< MisoPin, MosiPin, SckPin >.
|
inline |
Save high speed SPISettings after SD initialization.
[in] | maxSck | Maximum SCK frequency. |