Interface for the rf_test module. More...
#include "hal_nrf.h"
#include <stdbool.h>
#include <intrins.h>
Go to the source code of this file.
Defines | |
#define | RF_TEST_MAX_CHANNEL 81 |
Upper radio channel. | |
Enumerations | |
enum | rf_test_ret_t { RF_TEST_RC_OK, RF_TEST_RC_FINISHED, RF_TEST_RC_ERR_PARAM, RF_TEST_RC_ERR_BUFFER_FULL, RF_TEST_RC_ERR_NB_RX_BYTES } |
Function return codes. More... | |
Functions | |
void | rf_test_init () |
Initialisation function. | |
rf_test_ret_t | rf_test_sensitivity_init (uint8_t ch, hal_nrf_output_power_t pwr, hal_nrf_datarate_t datarate, uint8_t *address) |
Sensitivity test initialisation. | |
void | rf_test_sensitivity_set_expected_data (uint8_t data_size, uint8_t *p_expected_data) |
Function to define expected data for rx_sensitivity test. | |
rf_test_ret_t | rf_test_receive_and_compute_packet () |
Function to receive and evaluate the number of error in it. | |
uint16_t | rf_test_compute_error_rate () |
Function to calculate and update the overall error rate. | |
rf_test_ret_t | rf_test_init_rx_sweep (uint8_t pwr, uint8_t datarate, uint8_t *rx_mode_address, uint8_t first_channel, uint8_t last_channel) |
Function to initialize the RX sweep test. | |
rf_test_ret_t | rf_test_init_tx_sweep (uint8_t pwr, uint8_t datarate, uint8_t first_channel, uint8_t last_channel) |
Function to initialize the TX sweep test. | |
void | rf_test_txrx_sweep () |
Sweep function for RX and TX. | |
void | rf_test_set_modulation_payload () |
Function to set a modulation payload. | |
rf_test_ret_t | rf_test_start_mod_carrier (uint8_t channel, uint8_t pwr, uint8_t datarate) |
Function to start a modulated carrier. | |
void | rf_test_const_carrier_isr (void) |
RF interrupt function for TX modulated carrier. | |
rf_test_ret_t | rf_test_start_unmod_carrier (uint8_t channel, uint8_t pwr, uint8_t datarate) |
Function to start an unmodulated carrier. | |
rf_test_ret_t | rf_test_start_rx_carrier (uint8_t channel, uint8_t pwr, uint8_t datarate, uint8_t *rx_carrier_address) |
Function to start RX test. |
Interface for the rf_test module.
Definition in file rf_test.h.