Jetson Linux API Reference

39.2 Release
nvsipl::sensorconfig::MipiSettings Struct Reference

Detailed Description

MIPI configuration parameters for camera connections.

Definition at line 668 of file NvSIPLCameraTypes.hpp.

Data Fields

uint8_t lanes {4}
 Number of data lanes used. More...
 
bool lpBypassMode {false}
 LP bypass mode. More...
 
uint8_t tClkSettle {0}
 MIPI TCLK-SETTLE timing. More...
 
uint32_t mipiClockRate {0}
 MIPI clock rate for D-Phy. More...
 
uint8_t tHsSettle {0}
 THS settle time of the MIPI lane, in nanoseconds. More...
 
std::array< NvSiplMipiPolarity, 4 > lanePolarity
 Lane polarity configuration for each lane/trio. More...
 
NvSiplMipiSwizzle laneSwizzle {NvSiplMipiSwizzle::LANE_SWIZZLE_A0A1B0B1}
 Lane swizzle pattern. More...
 
uint32_t dphyRate {0}
 D-PHY clock rate in kbps. More...
 
uint32_t cphyRate {0}
 C-PHY symbol rate in ksps. More...
 
NvSiplCapCsiPhyMode phyMode {NVSIPL_CAP_CSI_DPHY_MODE}
 PHY mode (D-PHY or C-PHY). More...
 

Field Documentation

◆ cphyRate

uint32_t nvsipl::sensorconfig::MipiSettings::cphyRate {0}

C-PHY symbol rate in ksps.

Valid range for CPHY in ksps: [80000, 3000000]

Definition at line 767 of file NvSIPLCameraTypes.hpp.

◆ dphyRate

uint32_t nvsipl::sensorconfig::MipiSettings::dphyRate {0}

D-PHY clock rate in kbps.

Valid range for DPHY in kbps: [40000, 1250000]

Definition at line 760 of file NvSIPLCameraTypes.hpp.

◆ lanePolarity

std::array<NvSiplMipiPolarity, 4> nvsipl::sensorconfig::MipiSettings::lanePolarity
Initial value:

Lane polarity configuration for each lane/trio.

Index corresponds to lane/trio number (0-3):

  • lanePolarity[0]: Lane/Trio 0 polarity
  • lanePolarity[1]: Lane/Trio 1 polarity
  • lanePolarity[2]: Lane/Trio 2 polarity
  • lanePolarity[3]: Lane/Trio 3 polarity

For DPHY: Values are 0 (no swap) or 1 (swap) For CPHY: Each trio can have a polarity configuration 0-5:

  • 0: A-B-C (default configuration)
  • 1: A-C-B
  • 2: B-C-A
  • 3: B-A-C
  • 4: C-A-B
  • 5: C-B-A

See NvSiplMipiPolarity enum for reference values.

Definition at line 729 of file NvSIPLCameraTypes.hpp.

◆ lanes

uint8_t nvsipl::sensorconfig::MipiSettings::lanes {4}

Number of data lanes used.

Valid range: [1, 4]

Definition at line 675 of file NvSIPLCameraTypes.hpp.

◆ laneSwizzle

NvSiplMipiSwizzle nvsipl::sensorconfig::MipiSettings::laneSwizzle {NvSiplMipiSwizzle::LANE_SWIZZLE_A0A1B0B1}

Lane swizzle pattern.

Controls the ordering/remapping of physical MIPI lanes. Used to accommodate different PCB routing constraints and hardware designs.

The pattern defines how logical lanes (A0,A1,B0,B1) are mapped to physical lanes. For example:

  • LANE_SWIZZLE_A0A1B0B1 (0): Standard ordering (A0→A0, A1→A1, B0→B0, B1→B1)
  • LANE_SWIZZLE_A0B0A1B1 (3): Alternative (A0→A0, A1→B0, B0→A1, B1→B1)

The swizzle pattern applies to all lanes as a group and depends on the number of active lanes specified in the 'lanes' field.

Note
For 2-lane configurations, only the first two positions in the swizzle pattern are used. For 4-lane configurations, all positions are relevant.

Definition at line 753 of file NvSIPLCameraTypes.hpp.

◆ lpBypassMode

bool nvsipl::sensorconfig::MipiSettings::lpBypassMode {false}

LP bypass mode.

Definition at line 680 of file NvSIPLCameraTypes.hpp.

◆ mipiClockRate

uint32_t nvsipl::sensorconfig::MipiSettings::mipiClockRate {0}

MIPI clock rate for D-Phy.

Symbol rate for C-Phy.

Valid range for DPHY in kbps: [40000, 1250000] Valid range for CPHY in ksps: [80000, 3000000]

Definition at line 695 of file NvSIPLCameraTypes.hpp.

◆ phyMode

NvSiplCapCsiPhyMode nvsipl::sensorconfig::MipiSettings::phyMode {NVSIPL_CAP_CSI_DPHY_MODE}

PHY mode (D-PHY or C-PHY).

Definition at line 772 of file NvSIPLCameraTypes.hpp.

◆ tClkSettle

uint8_t nvsipl::sensorconfig::MipiSettings::tClkSettle {0}

MIPI TCLK-SETTLE timing.

Valid range: [0, UINT8_MAX]

Definition at line 687 of file NvSIPLCameraTypes.hpp.

◆ tHsSettle

uint8_t nvsipl::sensorconfig::MipiSettings::tHsSettle {0}

THS settle time of the MIPI lane, in nanoseconds.

If set to 0, the driver attempts to auto-calibrate according to the mclk_multiplier parameter. Calculate the range with: 85 ns + 6×ui < (tHsSettle+6) × (lp_clock_period) < 145 ns + 10×ui Where:

  • lp_clock_period is 1/(204 MHz)
  • ui is the unit interval (duration of HS state on clock lane)

Definition at line 707 of file NvSIPLCameraTypes.hpp.


The documentation for this struct was generated from the following file:
nvsipl::sensorconfig::NvSiplMipiPolarity::POLARITY_ABC
@ POLARITY_ABC
Default polarity configuration (A-B-C for CPHY, no swap for DPHY)