MySensors Library & Examples  2.3.2
Public Member Functions | List of all members
SoftSPI< MisoPin, MosiPin, SckPin, Mode > Class Template Reference

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.

Definition at line 50 of file SoftSPI.h.

#include <SoftSPI.h>

+ Collaboration diagram for SoftSPI< MisoPin, MosiPin, SckPin, Mode >:

Public Member Functions

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

Member Function Documentation

◆ __attribute__() [1/3]

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

Soft SPI receive byte.

Returns
Data byte received.

Definition at line 65 of file SoftSPI.h.

◆ __attribute__() [2/3]

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

Soft SPI transfer byte.

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

Definition at line 100 of file SoftSPI.h.

◆ __attribute__() [3/3]

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

Soft SPI send byte.

Parameters
[in]dataData byte to send.

Definition at line 83 of file SoftSPI.h.

◆ begin()

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.

Definition at line 55 of file SoftSPI.h.


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