Handle service events.
957 if (reg_item_p != NULL)
959 switch (p_wpts_c_evt->
type)
981 APP_ERROR_CHECK(err_code);
996 m_device_registration_complete(reg_item_p);
998 err_code = app_timer_stop(reg_item_p->
timer_id);
999 APP_ERROR_CHECK(err_code);
1006 APP_ERROR_CHECK(err_code);
1022 m_on_wpt_alert(p_wpts_c, p_wpts_c_evt);
static void m_scan_maintain(void)
union ble_wpts_c_evt_t::@1 data
uint32_t ble_wpts_c_enable_pru_alert_notification(ble_wpts_c_t *p_wpts_c)
Enable alert notifications to be sent from PRU.
uint32_t ble_wpts_c_write_ptu_static(ble_wpts_c_t *p_wpts_c, ptu_static_t *p_wpts_ptu_static)
Write the PTU Static characteristic to the PRU server.
uint8_t enable_pru_output
#define PTU_TIME_SET_CHECK_INTERVAL_MS
#define APP_ERROR_CHECK_ALLOW_DISCONNECT(ERR_CODE)
Macro equivalent to APP_ERROR_CHECK, except that error codes returned if connection is lost will be a...
uint32_t ble_wpts_c_read_pru_dynamic(ble_wpts_c_t *p_wpts_c)
Read the PRU Dynamic characterisic value from the PRU server.
void ptu_power_ctrl_set_disable_power_amplifier_adjustments(bool val)
Enable/Disable adjustments of power amplifier (I_TX_COIL).
ble_wpts_c_evt_type_t type
pru_static_t prev_pru_static
#define APP_TIMER_PRESCALER
ptu_reg_item_t * ptu_reg_item_get_from_conn_handle(uint16_t conn_handle)
Get registry item from connection handle.
static ptu_sm_handler_t m_sm_handler
State machine event handler.
uint32_t ptu_sensors_data_get(const ptu_sensor_data_t **sensors_data)
Get the latest data read from the PTU sensors.
static ptu_cm_status_t m_status
#define BLE_WPTS_BITFIELD_READ(bitfield, msk, pos)
Read bitfield.
ptu_reg_item_state_t state
static ptu_static_t m_ptu_static
Definition of PTU sensor data.
#define BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITMSK
#define BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITPOS