User Manual

Table Of Contents
Page 59 of 129 54A0028-6 042019 © LeddarTech Inc.
Table 27: Read input register messages
Address
Description
1
Detection status for polling mode:
0 = Detections not ready
1 = Detections ready: this status flag is reset to 0 after reading this
register
2
Number of segments (N)
11
Number of detections
12
Current percentage of light source power
13
Bit field of acquisition status: Reserved
14
Low 16 bits of timestamp (number of milliseconds since the module was
started)
15
High 16 bits of timestamp
16 to
16 + N-1
Distance of first detection for each segment, zero if no detection in a
segment. The distance unit is defined by the serial port parameters.
16 + N to
16 + (2*N) - 1
Amplitude of first detection for each segment times 64 (that is,
amplitude = this register/64), zero if no detection in a segment
16 + (2*N) to
16 + (3*N) - 1
Flag of the first detection for each segment:
Bit 0: Detection is valid (will always be set)
Bit 1: Detection is the result of object demerging
Bit 2: Reserved
Bit 3: Detection is saturated
Bit 4: Reserved
Bit 5: Reserved
Bit 6: Detection is within the crosstalk zone
Bit 7: Reserved
16 + (3*N) to
16 + (4*N) - 1
Distance of the second detection for each segment
16 + (4*N) to
16 + (5*N) - 1
Amplitude of the second detection for each segment
16 + (5*N) to
16 + (6*N) - 1
Flag of the second detection for each segment
16 + (6*N) to
16 + (7*N) - 1
Distance of the third detection
16 + (7*N) to
16 + (8*N) - 1
Amplitude of the third detection
16 + (8*N) to
16 + (9*N) - 1
Flag of the third detection