Software SPI class for access to SD and SDHC flash memory cards.
More...
#include <SdSpi.h>
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
class SdSpiSoft< MisoPin, MosiPin, SckPin >
Software SPI class for access to SD and SDHC flash memory cards.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
void SdSpiSoft< MisoPin, MosiPin, SckPin >::begin |
( |
| ) |
|
|
inlinevirtual |
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
void SdSpiSoft< MisoPin, MosiPin, SckPin >::beginTransaction |
( |
uint8_t |
divisor | ) |
|
|
inlinevirtual |
Initialize hardware SPI - dummy for soft SPI
- Parameters
-
[in] | divisor | SCK divisor - ignored. |
Reimplemented from SdSpiBase.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
void SdSpiSoft< MisoPin, MosiPin, SckPin >::endTransaction |
( |
| ) |
|
|
inlinevirtual |
End SPI transaction - dummy for soft SPI
Reimplemented from SdSpiBase.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
uint8_t SdSpiSoft< MisoPin, MosiPin, SckPin >::receive |
( |
| ) |
|
|
inlinevirtual |
Receive a byte.
- Returns
- The byte.
Implements SdSpiBase.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
uint8_t SdSpiSoft< MisoPin, MosiPin, SckPin >::receive |
( |
uint8_t * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
inlinevirtual |
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.
Implements SdSpiBase.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
void SdSpiSoft< MisoPin, MosiPin, SckPin >::send |
( |
uint8_t |
data | ) |
|
|
inlinevirtual |
Send a byte.
- Parameters
-
Implements SdSpiBase.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
void SdSpiSoft< MisoPin, MosiPin, SckPin >::send |
( |
const uint8_t * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
inlinevirtual |
Send multiple bytes.
- Parameters
-
[in] | buf | Buffer for data to be sent. |
[in] | n | Number of bytes to send. |
Implements SdSpiBase.
The documentation for this class was generated from the following file:
- Arduino/libraries/SdFat/src/SdSpiCard/SdSpi.h