Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Nrf24l Class Reference

Public Member Functions

void init ()
 
void config ()
 
void send (uint8_t *value)
 
void setRADDR (uint8_t *adr)
 
void setTADDR (uint8_t *adr)
 
bool dataReady ()
 
bool isSending ()
 
bool rxFifoEmpty ()
 
bool txFifoEmpty ()
 
void getData (uint8_t *data)
 
uint8_t getStatus ()
 
void configRegister (uint8_t reg, uint8_t value)
 
void readRegister (uint8_t reg, uint8_t *value, uint8_t len)
 
void writeRegister (uint8_t reg, uint8_t *value, uint8_t len)
 
void flushTx ()
 
void powerUpRx ()
 
void powerUpTx ()
 
void powerDown ()
 
void nrfSpiWrite (uint8_t reg, uint8_t *data=0, boolean readData=false, uint8_t len=0)
 
void csnHi ()
 
void csnLow ()
 
void ceHi ()
 
void ceLow ()
 
void flushRx ()
 

Public Attributes

uint8_t PTX
 
uint8_t cePin
 
uint8_t csnPin
 
uint8_t channel
 
uint8_t payload
 
uint8_t baseConfig
 
MirfSpiDriverspi
 

Member Data Documentation

uint8_t Nrf24l::baseConfig

The base config register. When required PWR_UP and/or PRIM_RX will be OR'ed with this.

NOTE: Use "_BV(EN_CRC) | _BV(CRCO)" here if you want to connect to a device using the RF24 library.

uint8_t Nrf24l::cePin

CE Pin controls RX / TX, default 8.

uint8_t Nrf24l::channel

Channel 0 - 127 or 0 - 84 in the US.

uint8_t Nrf24l::csnPin

CSN Pin Chip Select Not, default 7.

uint8_t Nrf24l::payload

Payload width in bytes default 16 max 32.

uint8_t Nrf24l::PTX

In sending mode.

MirfSpiDriver* Nrf24l::spi

Spi interface (must extend spi).