hal/nrf24l01p/hal_nrf.h File Reference

Interface functions for the on-chip radio transceiver. More...

#include <stdint.h>
#include <stdbool.h>
#include "hal_nrf_reg.h"
#include "hal_nrf_hw.h"

Go to the source code of this file.

Functions

Setup
void hal_nrf_set_irq_mode (hal_nrf_irq_source_t int_source, _Bool irq_state)
void hal_nrf_activate_features (void)
void hal_nrf_enable_dynamic_payload (_Bool enable)
void hal_nrf_enable_ack_payload (_Bool enable)
void hal_nrf_enable_dynamic_ack (_Bool enable)
void hal_nrf_setup_dynamic_payload (uint8_t setup)
uint8_t hal_nrf_read_rx_payload_width (void)
void hal_nrf_write_ack_payload (uint8_t pipe, const uint8_t *tx_pload, uint8_t length)
uint8_t hal_nrf_get_clear_irq_flags (void)
uint8_t hal_nrf_clear_irq_flags_get_status (void)
void hal_nrf_clear_irq_flag (hal_nrf_irq_source_t int_source)
void hal_nrf_set_crc_mode (hal_nrf_crc_mode_t crc_mode)
void hal_nrf_open_pipe (hal_nrf_address_t pipe_num, _Bool auto_ack)
void hal_nrf_close_pipe (hal_nrf_address_t pipe_num)
void hal_nrf_set_address (const hal_nrf_address_t address, const uint8_t *addr)
uint8_t hal_nrf_get_address (uint8_t address, uint8_t *addr)
void hal_nrf_set_auto_retr (uint8_t retr, uint16_t delay)
void hal_nrf_set_address_width (hal_nrf_address_width_t address_width)
uint8_t hal_nrf_get_address_width (void)
void hal_nrf_set_rx_payload_width (uint8_t pipe_num, uint8_t pload_width)
_Bool hal_nrf_get_irq_mode (uint8_t int_source)
uint8_t hal_nrf_get_irq_flags (void)
uint8_t hal_nrf_get_pipe_status (uint8_t pipe_num)
uint8_t hal_nrf_get_auto_retr_status (void)
uint8_t hal_nrf_get_packet_lost_ctr (void)
uint8_t hal_nrf_get_rx_payload_width (uint8_t pipe_num)
Operation
void hal_nrf_set_operation_mode (hal_nrf_operation_mode_t op_mode)
void hal_nrf_set_power_mode (hal_nrf_pwr_mode_t pwr_mode)
void hal_nrf_set_rf_channel (uint8_t channel)
void hal_nrf_set_output_power (hal_nrf_output_power_t power)
void hal_nrf_set_datarate (hal_nrf_datarate_t datarate)
uint8_t hal_nrf_get_tx_fifo_status (void)
_Bool hal_nrf_tx_fifo_empty (void)
_Bool hal_nrf_tx_fifo_full (void)
uint8_t hal_nrf_get_rx_fifo_status (void)
uint8_t hal_nrf_get_fifo_status (void)
_Bool hal_nrf_rx_fifo_empty (void)
_Bool hal_nrf_rx_fifo_full (void)
uint8_t hal_nrf_get_transmit_attempts (void)
_Bool hal_nrf_get_carrier_detect (void)
uint8_t hal_nrf_get_rx_data_source (void)
uint16_t hal_nrf_read_rx_payload (uint8_t *rx_pload)
void hal_nrf_write_tx_payload (const uint8_t *tx_pload, uint8_t length)
void hal_nrf_write_tx_payload_noack (const uint8_t *tx_pload, uint8_t length)
void hal_nrf_reuse_tx (void)
_Bool hal_nrf_get_reuse_tx_status (void)
void hal_nrf_flush_rx (void)
void hal_nrf_flush_tx (void)
uint8_t hal_nrf_nop (void)
Test
void hal_nrf_set_pll_mode (_Bool pll_lock)
void hal_nrf_set_lna_gain (_Bool lna_gain)
void hal_nrf_enable_continious_wave (_Bool enable)
SPI interface
uint8_t hal_nrf_rw (uint8_t value)

Detailed Description

Interface functions for the on-chip radio transceiver.

Definition in file hal_nrf.h.