Optimized SPI class for access to SD and SDHC flash memory cards.
More...
#include <SdSpiBareUnoDriver.h>
|
|
static uint8_t | transfer (uint8_t data) |
| |
Optimized SPI class for access to SD and SDHC flash memory cards.
◆ activate()
| void SdSpiDriverBareUno::activate |
( |
| ) |
|
|
inline |
◆ begin()
| void SdSpiDriverBareUno::begin |
( |
SdSpiConfig | spiConfig | ) |
|
|
inline |
Initialize the SPI bus.
- Parameters
-
| [in] | spiConfig | SD card configuration. |
◆ deactivate()
| void SdSpiDriverBareUno::deactivate |
( |
| ) |
|
|
inline |
◆ end()
| void SdSpiDriverBareUno::end |
( |
| ) |
|
|
inline |
◆ receive() [1/2]
| uint8_t SdSpiDriverBareUno::receive |
( |
| ) |
|
|
inline |
Receive a byte.
- Returns
- The byte.
◆ receive() [2/2]
| uint8_t SdSpiDriverBareUno::receive |
( |
uint8_t * | buf, |
|
|
size_t | count ) |
|
inline |
Receive multiple bytes.
- Parameters
-
| [out] | buf | Buffer to receive the data. |
| [in] | count | Number of bytes to receive. |
- Returns
- Zero for no error or nonzero error code.
◆ select()
| void SdSpiDriverBareUno::select |
( |
| ) |
|
|
inline |
◆ send() [1/2]
| void SdSpiDriverBareUno::send |
( |
const uint8_t * | buf, |
|
|
size_t | count ) |
|
inline |
Send multiple bytes.
- Parameters
-
| [in] | buf | Buffer for data to be sent. |
| [in] | count | Number of bytes to send. |
◆ send() [2/2]
| void SdSpiDriverBareUno::send |
( |
uint8_t | data | ) |
|
|
inline |
◆ setSckSpeed()
| void SdSpiDriverBareUno::setSckSpeed |
( |
uint32_t | maxSck | ) |
|
|
inline |
Save high speed SPISettings after SD initialization.
- Parameters
-
| [in] | spiConfig | SPI options. |
◆ unselect()
| void SdSpiDriverBareUno::unselect |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: