27 #include "app_timer.h"
33 #define APP_TIMER_PRESCALER 0
34 #define APP_TIMER_OP_QUEUE_SIZE 19
36 #define PTU_SM_CURRENT_STATE() ptu_sm_execute((ptu_sm_signal_type_t)NULL, NULL)
void(* ptu_sm_handler_t)(ptu_sm_signal_type_t signal)
void(* app_sm_evt_handler_t)(ptu_sm_signal_type_t signal, const ptu_sm_state_vars_t *p_state_vars)
State machine state variables.
ptu_sm_signal_type_t
PTU signal type.
void ptu_start(void)
Start ptu profile. Here "start" means that profile can start generating events through ptu_evt_handle...
void ptu_on_ble_evt(ble_evt_t *p_ble_evt)
Dispatches a BLE stack event to PTU.
void ptu_init(app_sm_evt_handler_t sm_evt_handler)
Initialize PTU. This function must be called before any other PTU function can be called...