Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "nrf_assert.h"
#include "nrf_soc.h"
#include "nrf_gzll.h"
#include "app_error.h"
#include "debug.h"
#include "wireless_debug.h"
#include "wireless_debug_config.h"
#include "softdevice_handler.h"
Go to the source code of this file.
Macros | |
#define | PIPE_NUMBER 0 |
Use pipe 0 for the wireless debug interface (WDI) | |
#define | TX_PAYLOAD_LENGTH 32 |
GZLL Data payload length. | |
#define | ACK_PAYLOAD_LENGTH 32 |
GZLL Ack payload length. | |
#define | WDBG_TIMESLOT_LEN 25000 |
Radio timeslot length (PRU) | |
#define | WDBG_TIMESLOT_SUSPEND_GZLL 4000 |
Suspend GZLL 400us before radio timeslot ends. | |
#define | WDBG_TIMESLOT_REQUEST_END 1000 |
Request end 1000us before radio timeslot ends. | |
#define | WDBG_TIMESLOT_TIMEOUT 1000000 |
Radio timeslot timeout (us) | |
Functions | |
void | RADIO_IRQHandler (void) |
Radio IRQ Handler. | |
static void | m_configure_next_event (void) |
Fill in m_timeslot_request for next event. | |
void | sys_evt_dispatch (uint32_t evt_id) |
SOC events handler. | |
static void | m_on_start (void) |
Called when NRF_RADIO_CALLBACK_SIGNAL_TYPE_START received. | |
static void | m_on_multitimer (void) |
Called when NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0 received. | |
nrf_radio_signal_callback_return_param_t * | m_radio_callback (uint8_t signal_type) |
Radio session callback. | |
uint32_t | sd_radio_init (void) |
Initialize this module. More... | |
void | nrf_gzll_device_tx_success (uint32_t pipe, nrf_gzll_device_tx_info_t tx_info) |
GZLL ACK received callback. | |
void | nrf_gzll_device_tx_failed (uint32_t pipe, nrf_gzll_device_tx_info_t tx_info) |
GZLL Transmission failed callback. | |
void | nrf_gzll_host_rx_data_ready (uint32_t pipe, nrf_gzll_host_rx_info_t rx_info) |
GZLL data packet received callback. | |
void | nrf_gzll_disabled (void) |
GZLL Disabled callback. | |
bool | debug_cmd_available (void) |
Call this function to check if a command is received. More... | |
char | get_debug_cmd (void) |
Clear the m_cmd_received and return the received command. More... | |
Variables | |
static nrf_radio_request_t | m_timeslot_request |
Passed to the sd_radio_request function. | |
static uint32_t | m_slot_length |
Radio timeslot length. | |
static volatile bool | m_cmd_received = false |
Set to true when a command is received. | |
static volatile bool | m_gzll_initialized = false |
Set to true when gzll is initialized. | |
static nrf_radio_signal_callback_return_param_t | signal_callback_return_param |
Return value for the Radio session callback function. | |
static uint8_t | ack_payload [ACK_PAYLOAD_LENGTH] |
Buffer for the ACK payload. | |