SdLibSpiDriver - use standard SPI library.
More...
#include <SdSpiArduinoDriver.h>
SdLibSpiDriver - use standard SPI library.
◆ activate()
void SdLibSpiDriver::activate |
( |
| ) |
|
|
inline |
◆ begin()
Initialize the SPI bus.
- Parameters
-
[in] | spiConfig | SD card configuration. |
◆ deactivate()
void SdLibSpiDriver::deactivate |
( |
| ) |
|
|
inline |
◆ receive() [1/2]
uint8_t SdLibSpiDriver::receive |
( |
| ) |
|
|
inline |
Receive a byte.
- Returns
- The byte.
◆ receive() [2/2]
uint8_t SdLibSpiDriver::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.
◆ select()
void SdLibSpiDriver::select |
( |
| ) |
|
|
inline |
◆ send() [1/2]
void SdLibSpiDriver::send |
( |
uint8_t |
data | ) |
|
|
inline |
◆ send() [2/2]
void SdLibSpiDriver::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. |
◆ setHighSpeed()
void SdLibSpiDriver::setHighSpeed |
( |
SdSpiConfig |
spiConfig | ) |
|
|
inline |
Save high speed SPISettings after SD initialization.
- Parameters
-
[in] | spiConfig | SPI options. |
◆ unselect()
void SdLibSpiDriver::unselect |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: