#[non_exhaustive]pub struct Config {
pub lanes: LaneCount,
pub data_rate_mbps: u32,
pub virtual_channels: u8,
pub config_clock_mhz: u32,
pub hs_freq_range_override: Option<u8>,
pub data_type_format: u8,
}Expand description
CSI-2 Host configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lanes: LaneCountNumber of data lanes in use.
data_rate_mbps: u32Nominal data rate per lane in Mbps. Used to look up the D-PHY band
table (PFCR.HSFR + the Synopsys oscillator target).
virtual_channels: u8Virtual channels to start together as one stream. Bit n enables VC
n (0..=3). Defaults to 0b0001 (VC0 only).
config_clock_mhz: u32Configuration-clock frequency in MHz feeding the D-PHY test/control interface. Recorded but unused — the BSP-correct CCFR value is hard-coded to 0x28 (matches the Synopsys D-PHY reference) so this field is not driven into the register today.
hs_freq_range_override: Option<u8>Override for the D-PHY high-speed frequency-range band
(PFCR.HSFR, 7 bits). None looks up the band from
data_rate_mbps.
data_type_format: u8VCxCFGR1.CDTFT — common data-type format for every enabled VC.
Encodes the bits-per-pixel of the incoming stream:
0=6, 1=7, 2=8, 3=10, 4=12, 5=14, 6=16. Defaults to 3 (RAW10),
the most common Bayer sensor format.