![]() |
LibDriver NRF24L01
|
nrf24l01 basic driver modules More...
Data Structures | |
| struct | nrf24l01_handle_s |
| nrf24l01 handle structure definition More... | |
| struct | nrf24l01_info_s |
| nrf24l01 information structure definition More... | |
Typedefs | |
| typedef struct nrf24l01_handle_s | nrf24l01_handle_t |
| nrf24l01 handle structure definition | |
| typedef struct nrf24l01_info_s | nrf24l01_info_t |
| nrf24l01 information structure definition | |
Functions | |
| uint8_t | nrf24l01_info (nrf24l01_info_t *info) |
| get chip's information | |
| uint8_t | nrf24l01_irq_handler (nrf24l01_handle_t *handle) |
| irq handler | |
| uint8_t | nrf24l01_init (nrf24l01_handle_t *handle) |
| initialize the chip | |
| uint8_t | nrf24l01_deinit (nrf24l01_handle_t *handle) |
| close the chip | |
| uint8_t | nrf24l01_send (nrf24l01_handle_t *handle, uint8_t *buf, uint8_t len) |
| send data | |
| uint8_t | nrf24l01_set_active (nrf24l01_handle_t *handle, nrf24l01_bool_t enable) |
| enable or disable the chip | |
| uint8_t | nrf24l01_set_config (nrf24l01_handle_t *handle, nrf24l01_config_t config, nrf24l01_bool_t enable) |
| enable or disable configure | |
| uint8_t | nrf24l01_get_config (nrf24l01_handle_t *handle, nrf24l01_config_t config, nrf24l01_bool_t *enable) |
| get the configure | |
| uint8_t | nrf24l01_set_mode (nrf24l01_handle_t *handle, nrf24l01_mode_t mode) |
| set the chip mode | |
| uint8_t | nrf24l01_get_mode (nrf24l01_handle_t *handle, nrf24l01_mode_t *mode) |
| get the chip mode | |
| uint8_t | nrf24l01_set_auto_acknowledgment (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, nrf24l01_bool_t enable) |
| enable or disable auto acknowledgment | |
| uint8_t | nrf24l01_get_auto_acknowledgment (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, nrf24l01_bool_t *enable) |
| get the auto acknowledgment status | |
| uint8_t | nrf24l01_set_rx_pipe (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, nrf24l01_bool_t enable) |
| enable or disable rx pipe | |
| uint8_t | nrf24l01_get_rx_pipe (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, nrf24l01_bool_t *enable) |
| get the rx pipe status | |
| uint8_t | nrf24l01_set_address_width (nrf24l01_handle_t *handle, nrf24l01_address_width_t width) |
| set the address width | |
| uint8_t | nrf24l01_get_address_width (nrf24l01_handle_t *handle, nrf24l01_address_width_t *width) |
| get the address width | |
| uint8_t | nrf24l01_set_auto_retransmit_delay (nrf24l01_handle_t *handle, uint8_t delay) |
| set the auto retransmit delay | |
| uint8_t | nrf24l01_get_auto_retransmit_delay (nrf24l01_handle_t *handle, uint8_t *delay) |
| get the auto retransmit delay | |
| uint8_t | nrf24l01_auto_retransmit_delay_convert_to_register (nrf24l01_handle_t *handle, uint32_t us, uint8_t *reg) |
| convert the delay to the register raw data | |
| uint8_t | nrf24l01_auto_retransmit_delay_convert_to_data (nrf24l01_handle_t *handle, uint8_t reg, uint32_t *us) |
| convert the register raw data to the delay | |
| uint8_t | nrf24l01_set_auto_retransmit_count (nrf24l01_handle_t *handle, uint8_t count) |
| set the auto retransmit count | |
| uint8_t | nrf24l01_get_auto_retransmit_count (nrf24l01_handle_t *handle, uint8_t *count) |
| get the auto retransmit count | |
| uint8_t | nrf24l01_set_channel_frequency (nrf24l01_handle_t *handle, uint8_t freq) |
| set the channel frequency | |
| uint8_t | nrf24l01_get_channel_frequency (nrf24l01_handle_t *handle, uint8_t *freq) |
| get the channel frequency | |
| uint8_t | nrf24l01_set_continuous_carrier_transmit (nrf24l01_handle_t *handle, nrf24l01_bool_t enable) |
| enable or disable continuous carrier transmit | |
| uint8_t | nrf24l01_get_continuous_carrier_transmit (nrf24l01_handle_t *handle, nrf24l01_bool_t *enable) |
| get the continuous carrier transmit status | |
| uint8_t | nrf24l01_set_force_pll_lock_signal (nrf24l01_handle_t *handle, nrf24l01_bool_t enable) |
| enable or disable force pll lock signal | |
| uint8_t | nrf24l01_get_force_pll_lock_signal (nrf24l01_handle_t *handle, nrf24l01_bool_t *enable) |
| get the force pll lock signal status | |
| uint8_t | nrf24l01_set_data_rate (nrf24l01_handle_t *handle, nrf24l01_data_rate_t rate) |
| set the data rate | |
| uint8_t | nrf24l01_get_data_rate (nrf24l01_handle_t *handle, nrf24l01_data_rate_t *rate) |
| get the data rate | |
| uint8_t | nrf24l01_set_output_power (nrf24l01_handle_t *handle, nrf24l01_output_power_t power) |
| set the output power | |
| uint8_t | nrf24l01_get_output_power (nrf24l01_handle_t *handle, nrf24l01_output_power_t *power) |
| get the output power | |
| uint8_t | nrf24l01_get_interrupt (nrf24l01_handle_t *handle, nrf24l01_interrupt_t type, nrf24l01_bool_t *enable) |
| get the interrupt status | |
| uint8_t | nrf24l01_clear_interrupt (nrf24l01_handle_t *handle, nrf24l01_interrupt_t type) |
| clear the interrupt status | |
| uint8_t | nrf24l01_get_data_pipe_number (nrf24l01_handle_t *handle, uint8_t *number) |
| get the data pipe number | |
| uint8_t | nrf24l01_get_lost_packet_count (nrf24l01_handle_t *handle, uint8_t *count) |
| get the lost packet count | |
| uint8_t | nrf24l01_get_retransmitted_packet_count (nrf24l01_handle_t *handle, uint8_t *count) |
| get the retransmitted packet count | |
| uint8_t | nrf24l01_get_received_power_detector (nrf24l01_handle_t *handle, nrf24l01_bool_t *enable) |
| get the received power detector | |
| uint8_t | nrf24l01_set_rx_pipe_0_address (nrf24l01_handle_t *handle, uint8_t *addr, uint8_t len) |
| set the rx pipe 0 address | |
| uint8_t | nrf24l01_get_rx_pipe_0_address (nrf24l01_handle_t *handle, uint8_t *addr, uint8_t *len) |
| get the rx pipe 0 address | |
| uint8_t | nrf24l01_set_rx_pipe_1_address (nrf24l01_handle_t *handle, uint8_t *addr, uint8_t len) |
| set the rx pipe 1 address | |
| uint8_t | nrf24l01_get_rx_pipe_1_address (nrf24l01_handle_t *handle, uint8_t *addr, uint8_t *len) |
| get the rx pipe 1 address | |
| uint8_t | nrf24l01_set_rx_pipe_2_address (nrf24l01_handle_t *handle, uint8_t addr) |
| set the rx pipe 2 address | |
| uint8_t | nrf24l01_get_rx_pipe_2_address (nrf24l01_handle_t *handle, uint8_t *addr) |
| get the rx pipe 2 address | |
| uint8_t | nrf24l01_set_rx_pipe_3_address (nrf24l01_handle_t *handle, uint8_t addr) |
| set the rx pipe 3 address | |
| uint8_t | nrf24l01_get_rx_pipe_3_address (nrf24l01_handle_t *handle, uint8_t *addr) |
| get the rx pipe 3 address | |
| uint8_t | nrf24l01_set_rx_pipe_4_address (nrf24l01_handle_t *handle, uint8_t addr) |
| set the rx pipe 4 address | |
| uint8_t | nrf24l01_get_rx_pipe_4_address (nrf24l01_handle_t *handle, uint8_t *addr) |
| get the rx pipe 4 address | |
| uint8_t | nrf24l01_set_rx_pipe_5_address (nrf24l01_handle_t *handle, uint8_t addr) |
| set the rx pipe 5 address | |
| uint8_t | nrf24l01_get_rx_pipe_5_address (nrf24l01_handle_t *handle, uint8_t *addr) |
| get the rx pipe 5 address | |
| uint8_t | nrf24l01_set_tx_address (nrf24l01_handle_t *handle, uint8_t *addr, uint8_t len) |
| set the tx address | |
| uint8_t | nrf24l01_get_tx_address (nrf24l01_handle_t *handle, uint8_t *addr, uint8_t *len) |
| get the tx address | |
| uint8_t | nrf24l01_set_pipe_0_payload_number (nrf24l01_handle_t *handle, uint8_t num) |
| set the pipe 0 payload number | |
| uint8_t | nrf24l01_get_pipe_0_payload_number (nrf24l01_handle_t *handle, uint8_t *num) |
| get the pipe 0 payload number | |
| uint8_t | nrf24l01_set_pipe_1_payload_number (nrf24l01_handle_t *handle, uint8_t num) |
| set the pipe 1 payload number | |
| uint8_t | nrf24l01_get_pipe_1_payload_number (nrf24l01_handle_t *handle, uint8_t *num) |
| get the pipe 1 payload number | |
| uint8_t | nrf24l01_set_pipe_2_payload_number (nrf24l01_handle_t *handle, uint8_t num) |
| set the pipe 2 payload number | |
| uint8_t | nrf24l01_get_pipe_2_payload_number (nrf24l01_handle_t *handle, uint8_t *num) |
| get the pipe 2 payload number | |
| uint8_t | nrf24l01_set_pipe_3_payload_number (nrf24l01_handle_t *handle, uint8_t num) |
| set the pipe 3 payload number | |
| uint8_t | nrf24l01_get_pipe_3_payload_number (nrf24l01_handle_t *handle, uint8_t *num) |
| get the pipe 3 payload number | |
| uint8_t | nrf24l01_set_pipe_4_payload_number (nrf24l01_handle_t *handle, uint8_t num) |
| set the pipe 4 payload number | |
| uint8_t | nrf24l01_get_pipe_4_payload_number (nrf24l01_handle_t *handle, uint8_t *num) |
| get the pipe 4 payload number | |
| uint8_t | nrf24l01_set_pipe_5_payload_number (nrf24l01_handle_t *handle, uint8_t num) |
| set the pipe 5 payload number | |
| uint8_t | nrf24l01_get_pipe_5_payload_number (nrf24l01_handle_t *handle, uint8_t *num) |
| get the pipe 5 payload number | |
| uint8_t | nrf24l01_get_fifo_status (nrf24l01_handle_t *handle, uint8_t *status) |
| get the fifo status | |
| uint8_t | nrf24l01_set_pipe_dynamic_payload (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, nrf24l01_bool_t enable) |
| enable or disable the pipe dynamic payload | |
| uint8_t | nrf24l01_get_pipe_dynamic_payload (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, nrf24l01_bool_t *enable) |
| get the pipe dynamic payload status | |
| uint8_t | nrf24l01_set_dynamic_payload (nrf24l01_handle_t *handle, nrf24l01_bool_t enable) |
| enable or disable the dynamic payload | |
| uint8_t | nrf24l01_get_dynamic_payload (nrf24l01_handle_t *handle, nrf24l01_bool_t *enable) |
| get the dynamic payload status | |
| uint8_t | nrf24l01_set_payload_with_ack (nrf24l01_handle_t *handle, nrf24l01_bool_t enable) |
| enable or disable the payload with ack | |
| uint8_t | nrf24l01_get_payload_with_ack (nrf24l01_handle_t *handle, nrf24l01_bool_t *enable) |
| get the payload with ack status | |
| uint8_t | nrf24l01_set_tx_payload_with_no_ack (nrf24l01_handle_t *handle, nrf24l01_bool_t enable) |
| enable or disable the tx payload with no ack | |
| uint8_t | nrf24l01_get_tx_payload_with_no_ack (nrf24l01_handle_t *handle, nrf24l01_bool_t *enable) |
| get the tx payload with no ack status | |
| uint8_t | nrf24l01_read_rx_payload (nrf24l01_handle_t *handle, uint8_t *buf, uint8_t len) |
| read the rx payload | |
| uint8_t | nrf24l01_write_tx_payload (nrf24l01_handle_t *handle, uint8_t *buf, uint8_t len) |
| write the tx payload | |
| uint8_t | nrf24l01_flush_tx (nrf24l01_handle_t *handle) |
| flush tx | |
| uint8_t | nrf24l01_flush_rx (nrf24l01_handle_t *handle) |
| flush rx | |
| uint8_t | nrf24l01_reuse_tx_payload (nrf24l01_handle_t *handle) |
| reuse the tx payload | |
| uint8_t | nrf24l01_get_rx_payload_width (nrf24l01_handle_t *handle, uint8_t *width) |
| get the rx payload width | |
| uint8_t | nrf24l01_write_payload_with_ack (nrf24l01_handle_t *handle, nrf24l01_pipe_t pipe, uint8_t *buf, uint8_t len) |
| write the payload with ack | |
| uint8_t | nrf24l01_write_payload_with_no_ack (nrf24l01_handle_t *handle, uint8_t *buf, uint8_t len) |
| write the payload with no ack | |
| uint8_t | nrf24l01_nop (nrf24l01_handle_t *handle) |
| nop | |
nrf24l01 basic driver modules
| typedef struct nrf24l01_handle_s nrf24l01_handle_t |
nrf24l01 handle structure definition
| typedef struct nrf24l01_info_s nrf24l01_info_t |
nrf24l01 information structure definition
nrf24l01 address width enumeration definition
| Enumerator | |
|---|---|
| NRF24L01_ADDRESS_WIDTH_ILLEGAL | illegal |
| NRF24L01_ADDRESS_WIDTH_3_BYTES | 3 bytes |
| NRF24L01_ADDRESS_WIDTH_4_BYTES | 4 bytes |
| NRF24L01_ADDRESS_WIDTH_5_BYTES | 5 bytes |
Definition at line 106 of file driver_nrf24l01.h.
| enum nrf24l01_bool_t |
nrf24l01 bool enumeration definition
| Enumerator | |
|---|---|
| NRF24L01_BOOL_FALSE | disable function |
| NRF24L01_BOOL_TRUE | enable function |
Definition at line 62 of file driver_nrf24l01.h.
| enum nrf24l01_config_t |
nrf24l01 config enumeration definition
Definition at line 71 of file driver_nrf24l01.h.
| enum nrf24l01_data_rate_t |
nrf24l01 data rate enumeration definition
| Enumerator | |
|---|---|
| NRF24L01_DATA_RATE_1M | 1 Mbps |
| NRF24L01_DATA_RATE_2M | 2 Mbps |
| NRF24L01_DATA_RATE_250K | 250 Kbps |
Definition at line 117 of file driver_nrf24l01.h.
nrf24l01 fifo status enumeration definition
Definition at line 149 of file driver_nrf24l01.h.
| enum nrf24l01_interrupt_t |
nrf24l01 interrupt enumeration definition
Definition at line 138 of file driver_nrf24l01.h.
| enum nrf24l01_mode_t |
nrf24l01 mode enumeration definition
| Enumerator | |
|---|---|
| NRF24L01_MODE_TX | tx mode |
| NRF24L01_MODE_RX | rx mode |
Definition at line 84 of file driver_nrf24l01.h.
nrf24l01 output power enumeration definition
| Enumerator | |
|---|---|
| NRF24L01_OUTPUT_POWER_NEGATIVE_18_DBM | -18 dBm |
| NRF24L01_OUTPUT_POWER_NEGATIVE_12_DBM | -12 dBm |
| NRF24L01_OUTPUT_POWER_NEGATIVE_6_DBM | -6 dBm |
| NRF24L01_OUTPUT_POWER_0_DBM | 0 dBm |
Definition at line 127 of file driver_nrf24l01.h.
| enum nrf24l01_pipe_t |
nrf24l01 pipe enumeration definition
| Enumerator | |
|---|---|
| NRF24L01_PIPE_0 | pipe 0 |
| NRF24L01_PIPE_1 | pipe 1 |
| NRF24L01_PIPE_2 | pipe 2 |
| NRF24L01_PIPE_3 | pipe 3 |
| NRF24L01_PIPE_4 | pipe 4 |
| NRF24L01_PIPE_5 | pipe 5 |
Definition at line 93 of file driver_nrf24l01.h.
| uint8_t nrf24l01_auto_retransmit_delay_convert_to_data | ( | nrf24l01_handle_t * | handle, |
| uint8_t | reg, | ||
| uint32_t * | us ) |
convert the register raw data to the delay
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | reg | register raw data |
| [out] | *us | pointer to a delay buffer |
Definition at line 1108 of file driver_nrf24l01.c.
| uint8_t nrf24l01_auto_retransmit_delay_convert_to_register | ( | nrf24l01_handle_t * | handle, |
| uint32_t | us, | ||
| uint8_t * | reg ) |
convert the delay to the register raw data
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | us | delay |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1081 of file driver_nrf24l01.c.
| uint8_t nrf24l01_clear_interrupt | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_interrupt_t | type ) |
clear the interrupt status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | type | interrupt type |
Definition at line 1681 of file driver_nrf24l01.c.
| uint8_t nrf24l01_deinit | ( | nrf24l01_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 249 of file driver_nrf24l01.c.
| uint8_t nrf24l01_flush_rx | ( | nrf24l01_handle_t * | handle | ) |
flush rx
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 3584 of file driver_nrf24l01.c.
| uint8_t nrf24l01_flush_tx | ( | nrf24l01_handle_t * | handle | ) |
flush tx
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 3550 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_address_width | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_address_width_t * | width ) |
get the address width
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *width | pointer to an address width buffer |
Definition at line 955 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_auto_acknowledgment | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| nrf24l01_bool_t * | enable ) |
get the auto acknowledgment status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | rf pipe |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 789 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_auto_retransmit_count | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | count ) |
get the auto retransmit count
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *count | pointer to an auto retransmit count buffer |
Definition at line 1187 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_auto_retransmit_delay | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | delay ) |
get the auto retransmit delay
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *delay | pointer to an auto retransmit delay buffer |
Definition at line 1044 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_channel_frequency | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | freq ) |
get the channel frequency
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *freq | pointer to a channel freq buffer |
Definition at line 1276 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_config | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_config_t | config, | ||
| nrf24l01_bool_t * | enable ) |
get the configure
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | config | config type |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 623 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_continuous_carrier_transmit | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t * | enable ) |
get the continuous carrier transmit status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1358 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_data_pipe_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | number ) |
get the data pipe number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *number | pointer to a number buffer |
Definition at line 1726 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_data_rate | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_data_rate_t * | rate ) |
get the data rate
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *rate | pointer to a data rate buffer |
Definition at line 1524 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_dynamic_payload | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t * | enable ) |
get the dynamic payload status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3239 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_fifo_status | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | status ) |
get the fifo status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *status | pointer to a fifo status buffer |
Definition at line 3075 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_force_pll_lock_signal | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t * | enable ) |
get the force pll lock signal status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1440 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_interrupt | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_interrupt_t | type, | ||
| nrf24l01_bool_t * | enable ) |
get the interrupt status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | type | interrupt type |
| [out] | *enable | pointer to a bool buffer |
Definition at line 1644 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_lost_packet_count | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | count ) |
get the lost packet count
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *count | pointer to a count buffer |
Definition at line 1763 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_mode | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_mode_t * | mode ) |
get the chip mode
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *mode | pointer to a chip mode buffer |
Definition at line 705 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_output_power | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_output_power_t * | power ) |
get the output power
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *power | pointer to an output power buffer |
Definition at line 1606 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_payload_with_ack | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t * | enable ) |
get the payload with ack status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3321 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_0_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | num ) |
get the pipe 0 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *num | pointer to a payload number buffer |
Definition at line 2649 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_1_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | num ) |
get the pipe 1 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *num | pointer to a payload number buffer |
Definition at line 2727 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_2_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | num ) |
get the pipe 2 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *num | pointer to a payload number buffer |
Definition at line 2805 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_3_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | num ) |
get the pipe 3 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *num | pointer to a payload number buffer |
Definition at line 2883 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_4_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | num ) |
get the pipe 4 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *num | pointer to a payload number buffer |
Definition at line 2961 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_5_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | num ) |
get the pipe 5 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *num | pointer to a payload number buffer |
Definition at line 3039 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_pipe_dynamic_payload | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| nrf24l01_bool_t * | enable ) |
get the pipe dynamic payload status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | pipe number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3157 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_received_power_detector | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t * | enable ) |
get the received power detector
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 1837 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_retransmitted_packet_count | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | count ) |
get the retransmitted packet count
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *count | pointer to a count buffer |
Definition at line 1800 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_payload_width | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | width ) |
get the rx payload width
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *width | pointer to a width buffer |
Definition at line 3653 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| nrf24l01_bool_t * | enable ) |
get the rx pipe status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | rf pipe |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 873 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe_0_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr, | ||
| uint8_t * | len ) |
get the rx pipe 0 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *addr | pointer to an address buffer |
| [in,out] | *len | pointer to an address length buffer |
Definition at line 1952 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe_1_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr, | ||
| uint8_t * | len ) |
get the rx pipe 1 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *addr | pointer to an address buffer |
| [in,out] | *len | pointer to an address length buffer |
Definition at line 2103 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe_2_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr ) |
get the rx pipe 2 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *addr | pointer to an rx pipe 2 address buffer |
Definition at line 2211 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe_3_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr ) |
get the rx pipe 3 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *addr | pointer to an rx pipe 3 address buffer |
Definition at line 2281 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe_4_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr ) |
get the rx pipe 4 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *addr | pointer to an rx pipe 4 address buffer |
Definition at line 2351 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_rx_pipe_5_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr ) |
get the rx pipe 5 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *addr | pointer to an rx pipe 5 address buffer |
Definition at line 2421 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_tx_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr, | ||
| uint8_t * | len ) |
get the tx address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *addr | pointer to an address buffer |
| [in,out] | *len | pointer to an address length buffer |
Definition at line 2534 of file driver_nrf24l01.c.
| uint8_t nrf24l01_get_tx_payload_with_no_ack | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t * | enable ) |
get the tx payload with no ack status
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3403 of file driver_nrf24l01.c.
| uint8_t nrf24l01_info | ( | nrf24l01_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an nrf24l01 info structure |
Definition at line 3892 of file driver_nrf24l01.c.
| uint8_t nrf24l01_init | ( | nrf24l01_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 153 of file driver_nrf24l01.c.
| uint8_t nrf24l01_irq_handler | ( | nrf24l01_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 436 of file driver_nrf24l01.c.
| uint8_t nrf24l01_nop | ( | nrf24l01_handle_t * | handle | ) |
nop
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 3806 of file driver_nrf24l01.c.
| uint8_t nrf24l01_read_rx_payload | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint8_t | len ) |
read the rx payload
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [out] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 3442 of file driver_nrf24l01.c.
| uint8_t nrf24l01_reuse_tx_payload | ( | nrf24l01_handle_t * | handle | ) |
reuse the tx payload
| [in] | *handle | pointer to an nrf24l01 handle structure |
Definition at line 3618 of file driver_nrf24l01.c.
| uint8_t nrf24l01_send | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint8_t | len ) |
send data
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 350 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_active | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t | enable ) |
enable or disable the chip
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | enable | bool value |
Definition at line 315 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_address_width | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_address_width_t | width ) |
set the address width
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | width | address width |
Definition at line 910 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_auto_acknowledgment | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| nrf24l01_bool_t | enable ) |
enable or disable auto acknowledgment
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | rf pipe |
| [in] | enable | bool value |
Definition at line 743 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_auto_retransmit_count | ( | nrf24l01_handle_t * | handle, |
| uint8_t | count ) |
set the auto retransmit count
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | count | auto retransmit count |
Definition at line 1136 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_auto_retransmit_delay | ( | nrf24l01_handle_t * | handle, |
| uint8_t | delay ) |
set the auto retransmit delay
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | delay | auto retransmit delay |
Definition at line 993 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_channel_frequency | ( | nrf24l01_handle_t * | handle, |
| uint8_t | freq ) |
set the channel frequency
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | freq | channel freq |
Definition at line 1225 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_config | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_config_t | config, | ||
| nrf24l01_bool_t | enable ) |
enable or disable configure
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | config | config type |
| [in] | enable | bool value |
Definition at line 577 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_continuous_carrier_transmit | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t | enable ) |
enable or disable continuous carrier transmit
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | enable | bool value |
Definition at line 1313 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_data_rate | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_data_rate_t | rate ) |
set the data rate
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | rate | data rate |
Definition at line 1477 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_dynamic_payload | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t | enable ) |
enable or disable the dynamic payload
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | enable | bool value |
Definition at line 3194 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_force_pll_lock_signal | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t | enable ) |
enable or disable force pll lock signal
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | enable | bool value |
Definition at line 1395 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_mode | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_mode_t | mode ) |
set the chip mode
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | mode | chip mode |
Definition at line 660 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_output_power | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_output_power_t | power ) |
set the output power
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | power | output power |
Definition at line 1561 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_payload_with_ack | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t | enable ) |
enable or disable the payload with ack
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | enable | bool value |
Definition at line 3276 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_0_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t | num ) |
set the pipe 0 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | num | payload number |
Definition at line 2608 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_1_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t | num ) |
set the pipe 1 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | num | payload number |
Definition at line 2686 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_2_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t | num ) |
set the pipe 2 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | num | payload number |
Definition at line 2764 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_3_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t | num ) |
set the pipe 3 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | num | payload number |
Definition at line 2842 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_4_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t | num ) |
set the pipe 4 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | num | payload number |
Definition at line 2920 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_5_payload_number | ( | nrf24l01_handle_t * | handle, |
| uint8_t | num ) |
set the pipe 5 payload number
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | num | payload number |
Definition at line 2998 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_pipe_dynamic_payload | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| nrf24l01_bool_t | enable ) |
enable or disable the pipe dynamic payload
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | pipe number |
| [in] | enable | bool value |
Definition at line 3111 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| nrf24l01_bool_t | enable ) |
enable or disable rx pipe
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | rf pipe |
| [in] | enable | bool value |
Definition at line 827 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe_0_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr, | ||
| uint8_t | len ) |
set the rx pipe 0 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *addr | pointer to an address buffer |
| [in] | len | address length |
Definition at line 1876 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe_1_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr, | ||
| uint8_t | len ) |
set the rx pipe 1 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *addr | pointer to an address buffer |
| [in] | len | address length |
Definition at line 2027 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe_2_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t | addr ) |
set the rx pipe 2 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | addr | rx pipe 2 address |
Definition at line 2176 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe_3_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t | addr ) |
set the rx pipe 3 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | addr | rx pipe 3 address |
Definition at line 2246 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe_4_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t | addr ) |
set the rx pipe 4 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | addr | rx pipe 4 address |
Definition at line 2316 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_rx_pipe_5_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t | addr ) |
set the rx pipe 5 address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | addr | rx pipe 5 address |
Definition at line 2386 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_tx_address | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | addr, | ||
| uint8_t | len ) |
set the tx address
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *addr | pointer to an address buffer |
| [in] | len | address length |
Definition at line 2458 of file driver_nrf24l01.c.
| uint8_t nrf24l01_set_tx_payload_with_no_ack | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_bool_t | enable ) |
enable or disable the tx payload with no ack
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | enable | bool value |
Definition at line 3358 of file driver_nrf24l01.c.
| uint8_t nrf24l01_write_payload_with_ack | ( | nrf24l01_handle_t * | handle, |
| nrf24l01_pipe_t | pipe, | ||
| uint8_t * | buf, | ||
| uint8_t | len ) |
write the payload with ack
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | pipe | pipe number |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 3691 of file driver_nrf24l01.c.
| uint8_t nrf24l01_write_payload_with_no_ack | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint8_t | len ) |
write the payload with no ack
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 3750 of file driver_nrf24l01.c.
| uint8_t nrf24l01_write_tx_payload | ( | nrf24l01_handle_t * | handle, |
| uint8_t * | buf, | ||
| uint8_t | len ) |
write the tx payload
| [in] | *handle | pointer to an nrf24l01 handle structure |
| [in] | *buf | pointer to a data buffer |
| [in] | len | buffer length |
Definition at line 3495 of file driver_nrf24l01.c.