My Project
Loading...
Searching...
No Matches
Low Level Functions

Hardware abstraction and low-level communication functions. More...

Functions

void nrf24l01_delay (nrf24l01_device *device, uint16_t us)
 Generate microsecond delay.
uint8_t nrf24l01_chip_select (nrf24l01_device *device)
 Select nRF24L01 chip (CSN low)
uint8_t nrf24l01_chip_deselect (nrf24l01_device *device)
 Deselect nRF24L01 chip (CSN high)
uint8_t nrf24l01_chip_enable (nrf24l01_device *device)
 Enable nRF24L01 chip (CE high)
uint8_t nrf24l01_chip_disable (nrf24l01_device *device)
 Disable nRF24L01 chip (CE low)
uint8_t nrf24l01_send_command (nrf24l01_device *device, uint8_t command)
 Send single byte command.

Detailed Description

Hardware abstraction and low-level communication functions.

Function Documentation

◆ nrf24l01_chip_deselect()

uint8_t nrf24l01_chip_deselect ( nrf24l01_device * device)
inline

Deselect nRF24L01 chip (CSN high)

Parameters
devicePointer to device configuration structure
Returns
0 on success, non-zero on error

◆ nrf24l01_chip_disable()

uint8_t nrf24l01_chip_disable ( nrf24l01_device * device)
inline

Disable nRF24L01 chip (CE low)

Parameters
devicePointer to device configuration structure
Returns
0 on success, non-zero on error

◆ nrf24l01_chip_enable()

uint8_t nrf24l01_chip_enable ( nrf24l01_device * device)
inline

Enable nRF24L01 chip (CE high)

Parameters
devicePointer to device configuration structure
Returns
0 on success, non-zero on error

◆ nrf24l01_chip_select()

uint8_t nrf24l01_chip_select ( nrf24l01_device * device)
inline

Select nRF24L01 chip (CSN low)

Parameters
devicePointer to device configuration structure
Returns
0 on success, non-zero on error

◆ nrf24l01_delay()

void nrf24l01_delay ( nrf24l01_device * device,
uint16_t us )

Generate microsecond delay.

Parameters
devicePointer to device configuration structure
usDelay in microseconds

Uses the configured timer to generate precise microsecond delays.

◆ nrf24l01_send_command()

uint8_t nrf24l01_send_command ( nrf24l01_device * device,
uint8_t command )

Send single byte command.

Parameters
devicePointer to device configuration structure
commandCommand byte to send
Returns
Status register value