leaps_dist_alarm_cfg_get
Reads configuration of distance alarm detection.
(none)
threshold_1: ? 32-bits unsigned integer ? (distance threshold in millimeters)
threshold_2: ? 32-bits unsigned integer ? (distance threshold in millimeters)
mincon: ? 8-bits unsigned integer ? (threshold hysteresis in multiple of update rate)
minnoconn: ? 8-bits unsigned integer ? (threshold hysteresis in multiple of update rate)
options: ? 8-bits unsigned integer ? (alarm indication options, 0 - LED (discrete), 1 - LED (continuous), 2 - Buzzer (continuous), 3 - Motor (continuous))
Example
TLV Request |
|
---|---|
Type |
Length |
0x31 |
0x00 |
Type 0x31 (49 dec) means command leaps_serial_cfg_get
TLV response |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Type |
Length |
Value |
Type |
Length |
Value |
|||||
distance
threshold nr.1
(millimeters)
|
distance
threshold nr.2
(millimeters)
|
mincon |
minnocon |
options
bits (3-7)
reserved
bits (0-2)
alarm
in
dication
options
|
reserved (8 bytes) |
|||||
0x40 |
0x01 |
0x00 |
0x52 |
0x13 |
0xDC 0x05 0x00 0x00 |
0xC4 0x09 0x00 0x00 |
0x02 |
0x02 |
0x01 |
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 |
Type 0x40 means status code
Type 0x52 (82) means distance alarm configuration