Arduino SPI library class for access to SD and SDHC flash memory cards.
More...
#include <SdSpi.h>
Arduino SPI library class for access to SD and SDHC flash memory cards.
void SdSpiLib::begin |
( |
uint8_t |
chipSelectPin | ) |
|
|
inline |
Initialize the SPI bus.
- Parameters
-
[in] | chipSelectPin | SD card chip select pin. |
void SdSpiLib::beginTransaction |
( |
uint8_t |
divisor | ) |
|
|
inline |
Set SPI options for access to SD/SDHC cards.
- Parameters
-
[in] | divisor | SCK clock divider relative to the system clock. |
void SdSpiLib::endTransaction |
( |
| ) |
|
|
inline |
uint8_t SdSpiLib::receive |
( |
| ) |
|
|
inline |
Receive a byte.
- Returns
- The byte.
uint8_t SdSpiLib::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 SdSpiLib::send |
( |
uint8_t |
b | ) |
|
|
inline |
void SdSpiLib::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. |
The documentation for this class was generated from the following file:
- Arduino/libraries/SdFat/src/SdSpiCard/SdSpi.h