SdSpiLibDriver - use standard SPI library.
More...
#include <SdSpiDriver.h>
SdSpiLibDriver - use standard SPI library.
void SdSpiLibDriver::activate |
( |
| ) |
|
|
inline |
Initialize the SPI bus.
- Parameters
-
[in] | spiConfig | SD card configuration. |
void SdSpiLibDriver::deactivate |
( |
| ) |
|
|
inline |
uint8_t SdSpiLibDriver::receive |
( |
| ) |
|
|
inline |
Receive a byte.
- Returns
- The byte.
uint8_t SdSpiLibDriver::receive |
( |
uint8_t * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
inline |
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 SdSpiLibDriver::select |
( |
| ) |
|
|
inline |
void SdSpiLibDriver::send |
( |
uint8_t |
data | ) |
|
|
inline |
void SdSpiLibDriver::send |
( |
const uint8_t * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Send multiple bytes.
- Parameters
-
[in] | buf | Buffer for data to be sent. |
[in] | n | Number of bytes to send. |
void SdSpiLibDriver::setSpiSettings |
( |
SPISettings |
spiSettings | ) |
|
|
inline |
Save SPISettings.
- Parameters
-
[in] | spiSettings | SPI speed, mode, and byte order. |
void SdSpiLibDriver::unselect |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: