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

Functions

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)
 

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 * 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