SdFat
Public Member Functions | List of all members
SoftSPI< MisoPin, MosiPin, SckPin, Mode > Class Template Reference

Fast software SPI. More...

#include <SoftSPI.h>

Public Member Functions

void begin ()
 
uint8_t receive ()
 
void send (uint8_t data)
 
uint8_t transfer (uint8_t txData)
 

Detailed Description

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0>
class SoftSPI< MisoPin, MosiPin, SckPin, Mode >

Fast software SPI.

Member Function Documentation

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0>
void SoftSPI< MisoPin, MosiPin, SckPin, Mode >::begin ( )
inline

Initialize SoftSPI pins.

template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0>
uint8_t SoftSPI< MisoPin, MosiPin, SckPin, Mode >::receive ( )
inline

Soft SPI receive byte.

Returns
Data byte received.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0>
void SoftSPI< MisoPin, MosiPin, SckPin, Mode >::send ( uint8_t  data)
inline

Soft SPI send byte.

Parameters
[in]dataData byte to send.
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin, uint8_t Mode = 0>
uint8_t SoftSPI< MisoPin, MosiPin, SckPin, Mode >::transfer ( uint8_t  txData)
inline

Soft SPI transfer byte.

Parameters
[in]txDataData byte to send.
Returns
Data byte received.

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