uint32_t ble_gap_evt_rssi_changed_dec(uint8_t const * const p_buf, uint32_t packet_len, ble_evt_t * const p_event, uint32_t * const p_event_len) { SER_EVT_DEC_BEGIN(BLE_GAP_EVT_RSSI_CHANGED, gap, rssi_changed); SER_PULL_uint16(&p_event->evt.gap_evt.conn_handle); SER_PULL_int8(&p_event->evt.gap_evt.params.rssi_changed.rssi); SER_EVT_DEC_END; }
uint32_t ble_gap_evt_scan_req_report_dec(uint8_t const * const p_buf, uint32_t packet_len, ble_evt_t * const p_event, uint32_t * const p_event_len) { SER_EVT_DEC_BEGIN(BLE_GAP_EVT_SCAN_REQ_REPORT, gap, scan_req_report); SER_PULL_uint16(&p_event->evt.gap_evt.conn_handle); SER_PULL_FIELD(&p_event->evt.gap_evt.params.scan_req_report.peer_addr, ble_gap_addr_t_dec); SER_PULL_int8(&p_event->evt.gap_evt.params.scan_req_report.rssi); SER_EVT_DEC_END; }
uint32_t ble_gatts_char_pf_t_dec(uint8_t const * const p_buf, uint32_t buf_len, uint32_t * const p_index, void * const p_void_struct) { SER_STRUCT_DEC_BEGIN(ble_gatts_char_pf_t); SER_PULL_uint8(&p_struct->format); SER_PULL_int8(&p_struct->exponent); SER_PULL_uint16(&p_struct->unit); SER_PULL_uint8(&p_struct->name_space); SER_PULL_uint16(&p_struct->desc); SER_STRUCT_DEC_END; }