Optimized high speed nRF24L01+ driver class documentation  V1.3.7
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Functions
Porting: SPI

Functions

 SPI ()
 
void begin (int busNo)
 
uint8_t transfer (uint8_t tx_)
 
void transfernb (char *tbuf, char *rbuf, uint32_t len)
 
void transfern (char *buf, uint32_t len)
 
virtual ~ SPI ()
 

Detailed Description

Example of spi.h class declaration for SPI portability

Function Documentation

◆ SPI()

SPI ( )

SPI constructor

Examples
timingSearch3pin.ino.

◆ begin()

void begin ( int  busNo)

Start SPI

Examples
timingSearch3pin.ino.

◆ transfer()

uint8_t transfer ( uint8_t  tx_)

Transfer a single byte

Parameters
tx_Byte to send
Returns
Data returned via spi
Examples
timingSearch3pin.ino.

◆ transfernb()

void transfernb ( char *  tbuf,
char *  rbuf,
uint32_t  len 
)

Transfer a buffer of data

Parameters
tbufTransmit buffer
rbufReceive buffer
lenLength of the data

◆ transfern()

void transfern ( char *  buf,
uint32_t  len 
)

Transfer a buffer of data without an rx buffer

Parameters
bufPointer to a buffer of data
lenLength of the data

◆ ~ SPI()

virtual ~ SPI ( )
virtual