Skip to main content
Associate
Question

VL53L9CX CSI-2 csi status line data type clarification request

I see 2 potential values for CSI2_ISL_DATA_TYPE based on documentation and sample code: 0x12 or 0x2a

In STSW-IMG054 vl53l9-nucleo-n657-fmw-1.1.1

In app/ranging_csi/vl53l9_app.c, lines 93–94:
hw_config.csi_status_line_datatype = 0x2A;
hw_config.csi_frame_datatype = 0x2A;

The ST example assigns 0x2A to both the status-line and frame data-type configuration fields.

ST driver implementation

In drivers/vl53l9/vl53l9.c, the driver reads the two settings independently:
- csi_status_line_datatype is read from VL53L9_REGFIELD_CSI2_ISL_DATA_TYPE.
- csi_frame_datatype is read from VL53L9_REGFIELD_CSI2_FRAME_DATA_TYPE.
The driver also writes these fields independently:
- Status-line data type through VL53L9_REGFIELD_CSI2_ISL_DATA_TYPE.
- Frame data type through VL53L9_REGADDR_CSI2_FRAME_DATA_TYPE.

Datasheet information conflict

In the UM3683 Programming Guide V5 20-Oct-2026 in section 2.5.4.1.2
Tables 19 and 20 specify CSI format guidelines
The CSI-2 output-interface configuration specifies:
Data type    Value
CSI2_ISL_DATA_TYPE 0x12
CSI2_FRAME_DATA_TYPE    0x2A

This appears to conflict with the STSW-IMG054 example's assignment of 0x2A to both fields.

Questions
1) Should csi_status_line_datatype be configured as 0x12, as specified for ISL in the datasheet
    or
2) Is the 0x2A assignment in STSW-IMG054 the correct value?

3) Are there particular operating modes or configurations in which the status-line data type should be 0x2A?

4. Does the distinction between ISL and frame data types change under the AR_PRECISION use case?