Our website is under construction. Please stay tuned!

leaps_int_cfg_set

Enables/disables setting of the dedicated GPIO pin in case of an event. Interrupts/events are communicated to the user by setting the GPIO pin CORE_INT. User can use the pin as a source of an external interrupt. The interrupt can be processed by reading the status (leaps_status_get) and reacting according to the new status. The status is cleared automatically after it is read. This call writes internal flash in case of new values being set, hence should not be used frequently and can take in worst case hundreds of milliseconds!


Input
  • spi_data_ready: ‘0’ | ‘1’ (new SPI data ready event , 0=disable, 1=enable)

  • loc_ready: ‘0’ | ‘1’ (new location data ready event, 0=disable, 1=enable)

  • bh_status_changed: ‘0’ | ‘1’ (UWBMAC status changed, 0=disable, 1=enable)

  • bh_data_ready: ‘0’ | ‘1’ (UWBMAC backhaul data ready, 0=disable, 1=enable)

  • bh_initialized_changed: ‘0’ | ‘1’ (UWBMAC route configured, 0=disable, 1=enable)

  • uwb_scan_ready: ‘0’ | ‘1’ (UWB scan result is available)

  • uwb_usr_data_ready: ‘0’ | ‘1’ (event when new user data is received over UWBMAC, 0=disable, 1=enable)

  • uwbmac_joined_changed: ‘0’ | ‘1’ (UWBMAC joined event, 0=disable, 1=enable)

  • uwb_usr_data_sent: ‘0’ | ‘1’ (user data transmission completed over UWBMAC, 0=disable, 1=enable)

  • proxy_pos_ready: ‘0’ | ‘1’ (event when proxy positions are ready, 0=disable, 1=enable)

  • ble_usr_data_ready: ‘0’ | ‘1’ (event when user data is received on BLE, 0=disable, 1=enable)

  • ble_usr_data_sent: ‘0’ | ‘1’ (event when user data over BLE are sent, 0=disable, 1=enable)

  • ble_conn_state_changed: ‘0’ | ‘1’ (event when BLE connection state change, 0=disable, 1=enable)

  • distance_alarm_th_1: ‘0’ | ‘1’ (event when distance alarm occur for threshold 1, 0=disable, 1=enable)

  • distance_alarm_th_2: ‘0’ | ‘1’ (event when distance alarm occur for threshold 2, 0=disable, 1=enable)

Output

Example

TLV request

Type

Length

Value

(bit 15) reserved
(bit 14) distance_alarm_th_2
(bit 13) distance_alarm_th_1
(bit 12) ble_conn_state_changed
(bit 11) ble_usr_data_sent
(bit 10) ble_usr_data_ready
(bit 9) proxy_pos_ready
(bit 8) uwb_usr_data_sent
(bit 7) uwbmac_joined_changed
(bit 6) uwb_usr_data_ready
(bit 5) uwb_scan_ready
(bit 4) bh_initialize d_changed
(bit 3) bh_data_ready
(bit 2) bh_status_changed
(bit 1) spi_data_ready
(bit 0) loc_ready

0x34

0x02

0x0F 0x01

Type 0x34 means command leaps_int_cfg_set

TLV response

Type

Length

Value

0x40

0x01

0x00

Type 0x40 means status code