My Project
|
Functions for device initialization and configuration. More...
Functions | |
nrf24l01_device | nrf24l01_get_default_config () |
Get default device configuration. | |
uint8_t | nrf24l01_init (nrf24l01_device *device) |
Initialize nRF24L01 device. | |
void | nrf24l01_deinit (nrf24l01_device *device) |
Deinitialize nRF24L01 device. | |
uint8_t | nrf24l01_init_data_pipe (nrf24l01_device *device, uint8_t pipe_number) |
Initialize specific data pipe. |
Functions for device initialization and configuration.
void nrf24l01_deinit | ( | nrf24l01_device * | device | ) |
Deinitialize nRF24L01 device.
device | Pointer to device configuration structure |
Powers down the device and resets control pins to safe states.
nrf24l01_device nrf24l01_get_default_config | ( | ) |
Get default device configuration.
Returns a device structure with sensible default values:
uint8_t nrf24l01_init | ( | nrf24l01_device * | device | ) |
Initialize nRF24L01 device.
device | Pointer to device configuration structure |
Initializes the nRF24L01 module with the provided configuration. This function configures all registers according to the device structure and verifies successful communication with the module.
uint8_t nrf24l01_init_data_pipe | ( | nrf24l01_device * | device, |
uint8_t | pipe_number ) |
Initialize specific data pipe.
device | Pointer to device configuration structure |
pipe_number | Data pipe number (0-5) |
Configures a specific data pipe according to the settings in the device structure's data_pipe array.