SdFat
Public Member Functions | List of all members
SdSoftSpiDriver Class Reference

Class for SdSoftSpiDriver. More...

#include <SdSpiSoftDriver.h>

Public Member Functions

void activate ()
 
void begin (SdSpiConfig spiConfig)
 
void deactivate ()
 
uint8_t receive ()
 
uint8_t receive (uint8_t *buf, size_t count)
 
void send (const uint8_t *buf, size_t count)
 
void send (uint8_t data)
 
void setSckSpeed (uint32_t maxSck)
 

Detailed Description

Class for SdSoftSpiDriver.

Member Function Documentation

◆ activate()

void SdSoftSpiDriver::activate ( )
inline

Activate SPI hardware.

◆ begin()

void SdSoftSpiDriver::begin ( SdSpiConfig  spiConfig)
inline

Initialize the SPI bus.

Parameters
[in]spiConfigSD card configuration.

◆ deactivate()

void SdSoftSpiDriver::deactivate ( )
inline

Deactivate SPI hardware.

◆ receive() [1/2]

uint8_t SdSoftSpiDriver::receive ( )
inline

Receive a byte.

Returns
The byte.

◆ receive() [2/2]

uint8_t SdSoftSpiDriver::receive ( uint8_t *  buf,
size_t  count 
)
inline

Receive multiple bytes.

Parameters
[out]bufBuffer to receive the data.
[in]countNumber of bytes to receive.
Returns
Zero for no error or nonzero error code.

◆ send() [1/2]

void SdSoftSpiDriver::send ( const uint8_t *  buf,
size_t  count 
)
inline

Send multiple bytes.

Parameters
[in]bufBuffer for data to be sent.
[in]countNumber of bytes to send.

◆ send() [2/2]

void SdSoftSpiDriver::send ( uint8_t  data)
inline

Send a byte.

Parameters
[in]dataByte to send

◆ setSckSpeed()

void SdSoftSpiDriver::setSckSpeed ( uint32_t  maxSck)
inline

Save high speed SPISettings after SD initialization.

Parameters
[in]maxSckMaximum SCK frequency.

The documentation for this class was generated from the following file: