Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
#include <string.h>
#include <stdio.h>
#include "pru_hw_config.h"
#include "pru_test_mux.h"
#include "softdevice_handler.h"
#include "wireless_debug.h"
#include "nrf_gzll.h"
#include "pru_sensors.h"
#include "nrf_assert.h"
#include "bsp.h"
Go to the source code of this file.
Macros | |
#define | EVT_STRING_LENGTH_MAX 20 |
#define | DEBUG_LINE_LENGTH 80 |
#define | VRECT_INCREMENT 500 |
#define | IRECT_INCREMENT 100 |
#define | VOUT_INCREMENT 500 |
#define | IOUT_INCREMENT 100 |
#define | TEMPERATURE_INCREMENT 5 |
#define | PIPE_NUMBER 0 |
#define | TX_PAYLOAD_LENGTH 32 |
Functions | |
void | wpts_test_evt_handle_cb (ble_wpts_t *p_wpts, ble_wpts_evt_t *p_evt) |
Override weak wpts_test_evt_handle_cb() More... | |
static void | debug_print_string (const char *str) |
Function for writing a string to the debug packet. More... | |
bool | pru_process_command_board (uint8_t cmd) |
Function for processing board specific test commands. More... | |
bool | m_pru_process_command_common (uint8_t cmd) |
Function for processing common test commands. More... | |
static void | cmd_poll (void) |
Get and process uart commands. | |
static bool | debug_output_changed (void) |
Update m_debug_output variable. More... | |
void | debug (void) |
Process debug commands. | |
Variables | |
static char | temp_string [DEBUG_LINE_LENGTH] |
static debug_output_t | m_debug_output |
static char | m_evt_evt_string [EVT_STRING_LENGTH_MAX] = "" |
static pru_tmux_override_t | override_values |
static pru_control_t | m_latest_control_data_received |
static bool | m_transmission_stopped = false |
static bool | m_debug_print = false |
static uint8_t | debug_pkt [TX_PAYLOAD_LENGTH] |
bool | gzll_initialized |
#define EVT_STRING_LENGTH_MAX 20 |
Max length of event message string
Definition at line 27 of file pru_wireless_debug.c.
#define DEBUG_LINE_LENGTH 80 |
Width of debug output table
Definition at line 28 of file pru_wireless_debug.c.
#define VRECT_INCREMENT 500 |
Value by which VRECT is incremented/decremented for each call to the simulated measurement function.
Definition at line 29 of file pru_wireless_debug.c.
#define IRECT_INCREMENT 100 |
Value by which IRECT is incremented/decremented for each call to the simulated measurement function.
Definition at line 30 of file pru_wireless_debug.c.
#define VOUT_INCREMENT 500 |
Value by which VOUT is incremented/decremented for each call to the simulated measurement function.
Definition at line 31 of file pru_wireless_debug.c.
#define IOUT_INCREMENT 100 |
Value by which IOUT is incremented/decremented for each call to the simulated measurement function.
Definition at line 32 of file pru_wireless_debug.c.
#define TEMPERATURE_INCREMENT 5 |
Value by which the Temperature is incremented/decremented for each call to the simulated measurement function.
Definition at line 33 of file pru_wireless_debug.c.
#define PIPE_NUMBER 0 |
Use pipe 0 for the wireless debug interface (WDI)
Definition at line 34 of file pru_wireless_debug.c.
#define TX_PAYLOAD_LENGTH 32 |
Maximum PL length used by WDI
Definition at line 35 of file pru_wireless_debug.c.
void wpts_test_evt_handle_cb | ( | ble_wpts_t * | p_wpts, |
ble_wpts_evt_t * | p_evt | ||
) |
Override weak wpts_test_evt_handle_cb()
p_wpts | WPT Service |
p_evt | WPT Service event |
Definition at line 62 of file pru_wireless_debug.c.
|
static |
Function for writing a string to the debug packet.
[in] | str | String to write |
Definition at line 75 of file pru_wireless_debug.c.
bool pru_process_command_board | ( | uint8_t | cmd | ) |
Function for processing board specific test commands.
[in] | cmd | Command code to process. |
true | Command code was processed by this function. |
false | Command code was not processed by this function. |
bool m_pru_process_command_common | ( | uint8_t | cmd | ) |
Function for processing common test commands.
[in] | cmd | Command code to process. |
true | Command code was processed by this function. |
false | Command code was not processed by this function. |
Definition at line 108 of file pru_wireless_debug.c.
|
static |
Update m_debug_output variable.
Definition at line 340 of file pru_wireless_debug.c.
|
static |
Debug string
Definition at line 48 of file pru_wireless_debug.c.
|
static |
Debug output collection
Definition at line 49 of file pru_wireless_debug.c.
|
static |
Event message string
Definition at line 50 of file pru_wireless_debug.c.
|
static |
Local copy of override values
Definition at line 51 of file pru_wireless_debug.c.
|
static |
Local latest received control data
Definition at line 52 of file pru_wireless_debug.c.
|
static |
Is transmission stopped?
Definition at line 53 of file pru_wireless_debug.c.
|
static |
Used to signal that we are sending a string over air.
Definition at line 54 of file pru_wireless_debug.c.
|
static |
WDI packet
Definition at line 55 of file pru_wireless_debug.c.
bool gzll_initialized |
true when gzll is initialized