PDK API Guide for J721E
CSITX private APIs

Introduction

Files

file  csitx_socPriv.h
 CSITX Low Level Driver SOC specific file.
 

Data Structures

struct  Csitx_StrmInfo
 This structure holds information about CSI Tx streams available in current SoC. More...
 
struct  Csitx_ModInfo
 This structure holds information about CSI Tx Module available in current SoC. More...
 
struct  Csitx_PlatformData
 This structure holds information about CSI Tx instances available in current SoC. More...
 
struct  Csitx_DphyRangeData
 This structure holds information about CSI Tx Range. Typically used for DPHY programming. More...
 

Functions

void CsitxDrv_initPlatData (Csitx_PlatformData *platformData)
 This function should be used to initialize platform data for the given SoC. More...
 
int32_t Csitx_dphyConfig (void *instHandle)
 This function configures DPHY. More...
 
int32_t CsirtxDrv_lpbkSel (uint32_t instId, uint32_t lpbkSel)
 This function Select the source for loopback stream of CSITX. More...
 

CSITX Stream support

CSITX Stream support status.

#define CSITX_STRM_SUPPORT_NOT_SUPPORTED   ((uint32_t) 0x0U)
 Stream support: not supported. More...
 
#define CSITX_STRM_SUPPORT_SUPPORTED   ((uint32_t) 0x1U)
 Stream support: supported. More...
 

CSITX Channel Type

Id for CSITX Channel/Stream type.

#define CSITX_STRM_CH_TYPE_TX   ((uint32_t) 0x1U)
 Stream type: transmit mode, frames will transmitted from internal memory or DDR. More...
 
#define CSITX_STRM_CH_TYPE_COLORBAR   ((uint32_t) 0x2U)
 Stream type: Color Bar mode, Pre-defined color bar pattern is sent out through CSI interface. More...
 
#define CSITX_STRM_CH_TYPE_LPBK   ((uint32_t) 0x4U)
 Stream type: Loopback mode, frames are accepted through CSI Tx trans PADs and will sent out. More...
 

CSITX Enable serialized transmission

Options for serialized transmission.

#define CSITX_ENABLE_SERIAL_TRANS_DISABLE   ((uint32_t) 0x0U)
 CSITX serialized transmission: Disable. More...
 
#define CSITX_ENABLE_SERIAL_TRANS_ENABLE   ((uint32_t) 0x1U)
 CSITX serialized transmission: Enable. More...
 

Macro Definition Documentation

◆ CSITX_STRM_SUPPORT_NOT_SUPPORTED

#define CSITX_STRM_SUPPORT_NOT_SUPPORTED   ((uint32_t) 0x0U)

Stream support: not supported.

◆ CSITX_STRM_SUPPORT_SUPPORTED

#define CSITX_STRM_SUPPORT_SUPPORTED   ((uint32_t) 0x1U)

Stream support: supported.

◆ CSITX_STRM_CH_TYPE_TX

#define CSITX_STRM_CH_TYPE_TX   ((uint32_t) 0x1U)

Stream type: transmit mode, frames will transmitted from internal memory or DDR.

◆ CSITX_STRM_CH_TYPE_COLORBAR

#define CSITX_STRM_CH_TYPE_COLORBAR   ((uint32_t) 0x2U)

Stream type: Color Bar mode, Pre-defined color bar pattern is sent out through CSI interface.

◆ CSITX_STRM_CH_TYPE_LPBK

#define CSITX_STRM_CH_TYPE_LPBK   ((uint32_t) 0x4U)

Stream type: Loopback mode, frames are accepted through CSI Tx trans PADs and will sent out.

◆ CSITX_ENABLE_SERIAL_TRANS_DISABLE

#define CSITX_ENABLE_SERIAL_TRANS_DISABLE   ((uint32_t) 0x0U)

CSITX serialized transmission: Disable.

◆ CSITX_ENABLE_SERIAL_TRANS_ENABLE

#define CSITX_ENABLE_SERIAL_TRANS_ENABLE   ((uint32_t) 0x1U)

CSITX serialized transmission: Enable.

Function Documentation

◆ CsitxDrv_initPlatData()

void CsitxDrv_initPlatData ( Csitx_PlatformData platformData)

This function should be used to initialize platform data for the given SoC.

Parameters
platformDataA pointer of type Csitx_PlatformData.
Returns
None

◆ Csitx_dphyConfig()

int32_t Csitx_dphyConfig ( void *  instHandle)

This function configures DPHY.

Parameters
instHandle[IN] Pointer to CSIRX Instance handle.

◆ CsirtxDrv_lpbkSel()

int32_t CsirtxDrv_lpbkSel ( uint32_t  instId,
uint32_t  lpbkSel 
)

This function Select the source for loopback stream of CSITX.

Parameters
instId[IN] CSITX instance.
lpbkSel[IN] Source for loopback stream (CSIRX0/1/2).
Returns
[OUT] Status of CsirtxDrv_lpbkSel.'FVID2_SOK' if success.