Sample external SPI class.
More...
#include <SdSpiBaseClass.h>
Sample external SPI class.
◆ activate()
void MySpiClass::activate |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
void MySpiClass::begin |
( |
| ) |
|
|
inlinevirtual |
◆ deactivate()
void MySpiClass::deactivate |
( |
| ) |
|
|
inlinevirtual |
◆ receive() [1/2]
uint8_t MySpiClass::receive |
( |
| ) |
|
|
inlinevirtual |
◆ receive() [2/2]
uint8_t MySpiClass::receive |
( |
uint8_t * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
inlinevirtual |
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.
Implements SdSpiBaseClass.
◆ send() [1/2]
void MySpiClass::send |
( |
const uint8_t * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
inlinevirtual |
Send multiple bytes.
- Parameters
-
[in] | buf | Buffer for data to be sent. |
[in] | count | Number of bytes to send. |
Implements SdSpiBaseClass.
◆ send() [2/2]
void MySpiClass::send |
( |
uint8_t |
data | ) |
|
|
inlinevirtual |
◆ setSckSpeed()
void MySpiClass::setSckSpeed |
( |
uint32_t |
maxSck | ) |
|
|
inlinevirtual |
Save high speed SPISettings after SD initialization.
- Parameters
-
[in] | maxSck | Maximum SCK frequency. |
Reimplemented from SdSpiBaseClass.
The documentation for this class was generated from the following file: