Our website is under construction. Please stay tuned!

leaps_status_get

Get system status flags. Status flags can enable settings of the CORE_INT GPIO pin by leaps_int_cfg_set. All status flags are cleared after the call to leaps_status_get except the:

  • ble_conn_state

  • uwbmac_joined

  • bh_initialized

  • distance_alarm_th_1

  • distance_alarm_th_2


Input
  • (none)

Output
  • Status Code

  • status: loc_ready, uwbmac_joined, bh_data_ready, bh_initialized, bh_status_changed, uwb_scan_ready, uwb_usr_data_ready, uwb_usr_data_sent, fwup_in_progress, proxy_pos_ready, ble_usr_data_ready, ble_usr_data_sent, ble_conn_state, distance_alarm_th_1,distance_alarm_th_2

  • loc_ready: ‘0’ | ‘1’ (new location data are ready)

  • uwbmac_joined: ‘0’ | ‘1’ (node is connected to UWB network)

  • bh_data_ready: ‘0’ | ‘1’ (UWB MAC backhaul data ready)

  • bh_status_changed: ‘0’ | ‘1’ (UWB MAC status has changed, used in backhaul)

  • bh_initialized: ‘0’ | ‘1’ (node has initialized route via UWB backhaul)

  • uwb_scan_ready: ‘0’ | ‘1’ (UWB scan results are ready)

  • uwb_usr_data_ready: ‘0’ | ‘1’ (User data over UWB received)

  • uwb_usr_data_sent: ‘0’ | ‘1’ (User data over UWB sent)

  • fwup_in_progress: ‘0’ | ‘1’ (Firmware update is in progress)

  • proxy_pos_ready: ‘0’ | ‘1’ (proxy positions are ready, NOT SUPPORTED IN USER APPLICATION)

  • ble_usr_data_ready: ‘0’ | ‘1’ (User data over BLE received, NOT SUPPORTED IN USER APPLICATION)

  • ble_usr_data_sent: ‘0’ | ‘1’ (User data over BLE sent, NOT SUPPORTED IN USER APPLICATION)

  • ble_conn_state: ‘0’ | ‘1’ (NOT SUPPORTED IN USER APPLICATION)

  • distance_alarm_th_1: ‘0’ | ‘1’ (distance alarm for threshold 1)

  • distance_alarm_th_2: ‘0’ | ‘1’ (distance alarm for threshold 2)


Example

TLV Request

Type

Length

0x32

0x00

Type 0x32 means command leaps_status_get

TLV response

Type

Length

Value

Type

Length

Value

(bit 0) loc_ready
(bit 1) uwbmac_joined
(bit 2) bh_status_changed
(bit 3) bh_data_ready
(bit 4) bh_initialized
(bit 5) uwb_scan_ready
(bit 6) uwb_usr_data_ready
(bit 7) uwb_usr_data_sent
(bit 8) fwup_in_progress
(bit 9) proxy_pos_ready
(bit 10) ble_usr_data_ready
(bit 11) ble_usr_data_sent
(bit 12) ble_conn_state
(bit 13) distance_alarm_th_1
(bit 14) distance_alarm_th_2
(bit 15) reserved

0x40

0x01

0x00

0x5A

0x02

0x01

0x00

Type 0x5A means status

Type 0x40 means status code