Optimized SPI class for access to SD and SDHC flash memory cards.
More...
#include <SdSpiDriver.h>
Optimized SPI class for access to SD and SDHC flash memory cards.
void SdSpiAltDriver::activate |
( |
| ) |
|
Initialize the SPI bus.
- Parameters
-
[in] | spiConfig | SD card configuration. |
void SdSpiAltDriver::deactivate |
( |
| ) |
|
void SdSpiAltDriver::end |
( |
| ) |
|
uint8_t SdSpiAltDriver::receive |
( |
| ) |
|
Receive a byte.
- Returns
- The byte.
uint8_t SdSpiAltDriver::receive |
( |
uint8_t * |
buf, |
|
|
size_t |
n |
|
) |
| |
Receive multiple bytes.
- Parameters
-
[out] | buf | Buffer to receive the data. |
[in] | n | Number of bytes to receive. |
- Returns
- Zero for no error or nonzero error code.
void SdSpiAltDriver::select |
( |
| ) |
|
|
inline |
void SdSpiAltDriver::send |
( |
uint8_t |
data | ) |
|
void SdSpiAltDriver::send |
( |
const uint8_t * |
buf, |
|
|
size_t |
n |
|
) |
| |
Send multiple bytes.
- Parameters
-
[in] | buf | Buffer for data to be sent. |
[in] | n | Number of bytes to send. |
void SdSpiAltDriver::setSpiSettings |
( |
SPISettings |
spiSettings | ) |
|
|
inline |
Save SPISettings.
- Parameters
-
[in] | spiSettings | SPI speed, mode, and byte order. |
void SdSpiAltDriver::unselect |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: