Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
Macros | |
#define | APP_TIMER_PRESCALER 0 |
#define | APP_TIMER_OP_QUEUE_SIZE 10 |
Typedefs | |
typedef void(* | app_sm_evt_handler_t) (pru_sm_signal_type_t signal, const pru_sm_state_vars_t *p_state_vars) |
typedef void(* | pru_sm_handler_t) (pru_sm_signal_type_t evt) |
General API functions | |
void | pru_init (app_sm_evt_handler_t sm_evt_handler) |
Initialize PRU. This function must be called before any other PRU function can be called. More... | |
void | pru_start (void) |
Enable the PRU profile. When enabled sensor reading and signal generation will be enabled. | |
void | pru_on_ble_evt (ble_evt_t *p_ble_evt) |
Handle BLE event. | |
API implementation | |
void | terminate (void) |
Needs to be implemented by application. Perform all requried actions before jump to DFU application can be done. | |
bool | dfu_check (void) |
Needs to be implemented by application. Check if it is OK to jump to the DFU application. More... | |
#define APP_TIMER_OP_QUEUE_SIZE 10 |
typedef void(* app_sm_evt_handler_t) (pru_sm_signal_type_t signal, const pru_sm_state_vars_t *p_state_vars) |
typedef void(* pru_sm_handler_t) (pru_sm_signal_type_t evt) |
void pru_init | ( | app_sm_evt_handler_t | sm_evt_handler | ) |
Initialize PRU. This function must be called before any other PRU function can be called.
sm_evt_handler | Optional handle state machine event callback. Set to NULL if no callback is required. |
Definition at line 480 of file pru.c.
bool dfu_check | ( | void | ) |
Needs to be implemented by application. Check if it is OK to jump to the DFU application.
Definition at line 523 of file pru.c.