Optimized high speed nRF24L01+ driver class documentation v1.4.10
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Loading...
Searching...
No Matches
Porting: SPI

Functions

void begin (int busNo)
 
uint8_t transfer (uint8_t tx_)
 
void transfernb (char *txBuf, char *rxBuf, uint32_t len)
 
void transfern (char *buf, uint32_t len)
 

Detailed Description

Example of spi.h class declaration for SPI portability

Function Documentation

◆ begin()

void begin ( int busNo)

Start SPI

◆ transfer()

uint8_t transfer ( uint8_t tx_)

Transfer a single byte

Parameters
tx_Byte to send
Returns
Data returned via spi

◆ transfernb()

void transfernb ( char * txBuf,
char * rxBuf,
uint32_t len )

Transfer a buffer of data

Parameters
txBufTransmit buffer
rxBufReceive 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