PDK API Guide for J721E
Csitx_ChCfg Struct Reference

Detailed Description

Structure containing Channels configurations.

Data Fields

uint32_t chId
 
uint32_t chType
 
uint32_t vcNum
 
uint32_t outCsiDataType
 
Fvid2_Format inFmt
 
uint32_t vBlank
 
uint32_t hBlank
 
uint32_t startDelayPeriod
 
Udma_ChTxPrms txChParams
 
uint8_t ringOrderId
 

Field Documentation

◆ chId

uint32_t Csitx_ChCfg::chId

Channel ID. It should be unique and start with '0' and continue without any gaps. It should be less than 'CSITX_NUM_CH'.

◆ chType

uint32_t Csitx_ChCfg::chType

Channel type See CSITX_ChType for details.

◆ vcNum

uint32_t Csitx_ChCfg::vcNum

Specify the virtual channel number to be used. Valid rage 0 - 3 when v2p0 support is disabled and 0 - 15 when v2p0 support is enabled

◆ outCsiDataType

uint32_t Csitx_ChCfg::outCsiDataType

Data Type as per FVID2_CSI2DF

◆ inFmt

Fvid2_Format Csitx_ChCfg::inFmt

Specify the characteristics of streams that has to be sent out. Output format described using FVID2 frame format Fvid2_Format Valid member of this structure are width:
Input width, in pixels. WARNING - Sufficient buffer should be allocated to accommodate max line length. For CSITX_CH_TYPE_COLORBAR channel, it should be in units of pixel pairs

height:
Expected number of lines, 0x0 for unknown WARNING - Sufficient buffer should be allocated to accommodate max lines.

pitch:
Pitch in bytes between two lines.

dataFormat:
Output Data format, valid options are:
FVID2_DF_YUV422I_UYVY
FVID2_DF_YUV422I_YUYV
FVID2_DF_YUV422I_YVYU
FVID2_DF_YUV422I_VYUY

ccsFormat:
Valid values are :'' FVID2_CCSF_BITS12_PACKED
FVID2_CCSF_BITS12_UNPACKED16
This valid only when outCsiDataType is 'CSI2_DATA_FORMAT_RAW12' and when chType is CSITX_CH_TYPE_TX.

Unused Parameters:
.bpp - unused parameter for CSI2TX
For OTF mode, following parameters are not used: .bpp, .pitch
For loop-back mode, only .dataFormat is used. Rest of the parameters are unused.

◆ vBlank

uint32_t Csitx_ChCfg::vBlank

Vertical blanking in terms of number of line.

◆ hBlank

uint32_t Csitx_ChCfg::hBlank

Horizontal blanking in terms of number of pixels

◆ startDelayPeriod

uint32_t Csitx_ChCfg::startDelayPeriod

Delay in terms of micro-seconds before sending first line after enabling. Note: This is only applicable if chType is CSITX_CH_TYPE_COLORBAR.

◆ txChParams

Udma_ChTxPrms Csitx_ChCfg::txChParams

UDMA Tx channel configuration parameters

◆ ringOrderId

uint8_t Csitx_ChCfg::ringOrderId

Ring bus order ID value to be programmed into the orderid field of the ring's RING_ORDERID register.