Implementation of the rf_test module. More...
#include "hal_nrf.h"#include "hal_nrf_hw.h"#include "pn9.h"#include "rf_test.h"#include <stdbool.h>#include <intrins.h>Go to the source code of this file.
| Defines | |
| #define | DEFAULT_SIZE_PACKET 32 | 
| #define | NB_BITS_FOR_ERROR_RATE_CALC 100000 | 
| #define | NB_BYTES_FOR_ERROR_RATE_CALC 12500 | 
| #define | MAX_SIZE_PACKET 32 | 
| #define | ADDR_WIDTH 5 | 
| #define | RF_ENABLE() (RFCKEN = 1); | 
| #define | RF_IRQ_ENABLE() (RF = 1); | 
| #define | RF_IRQ_DISABLE() (RF = 0); | 
| Typedefs | |
| typedef struct rf_test_ctx_t | rf_test_ctx_t | 
| Functions | |
| void | rf_test_init () | 
| Initialisation function. | |
| 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_sensitivity_init (uint8_t ch, hal_nrf_output_power_t pwr, hal_nrf_datarate_t datarate, uint8_t *address) | 
| Sensitivity test initialisation. | |
| 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. | |
Implementation of the rf_test module.
Definition in file rf_test.c.
| typedef struct rf_test_ctx_t rf_test_ctx_t | 
 1.7.2
 1.7.2