RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Data Structures | Enumerator | Variables
Csi2rx

Data Structures

struct  _csi2rx_config
 CSI2RX configuration.
More...
 

Variables

uint8_t _csi2rx_config::laneNum
 
uint8_t _csi2rx_config::tHsSettle_EscClk
 

Driver version

enum  _csi2rx_data_lane { kCSI2RX_DataLane0 = (1U << 0U) , kCSI2RX_DataLane1 = (1U << 1U) , kCSI2RX_DataLane2 = (1U << 2U) , kCSI2RX_DataLane3 = (1U << 3U) }
 CSI2RX data lanes.
More...
 
enum  _csi2rx_payload {
  kCSI2RX_PayloadGroup0Null = (1U << 0U) , kCSI2RX_PayloadGroup0Blank = (1U << 1U) , kCSI2RX_PayloadGroup0Embedded = (1U << 2U) , kCSI2RX_PayloadGroup0YUV420_8Bit = (1U << 10U) ,
  kCSI2RX_PayloadGroup0YUV422_8Bit = (1U << 14U) , kCSI2RX_PayloadGroup0YUV422_10Bit = (1U << 15U) , kCSI2RX_PayloadGroup0RGB444 = (1U << 16U) , kCSI2RX_PayloadGroup0RGB555 = (1U << 17U) ,
  kCSI2RX_PayloadGroup0RGB565 = (1U << 18U) , kCSI2RX_PayloadGroup0RGB666 = (1U << 19U) , kCSI2RX_PayloadGroup0RGB888 = (1U << 20U) , kCSI2RX_PayloadGroup0Raw6 = (1U << 24U) ,
  kCSI2RX_PayloadGroup0Raw7 = (1U << 25U) , kCSI2RX_PayloadGroup0Raw8 = (1U << 26U) , kCSI2RX_PayloadGroup0Raw10 = (1U << 27U) , kCSI2RX_PayloadGroup0Raw12 = (1U << 28U) ,
  kCSI2RX_PayloadGroup0Raw14 = (1U << 29U) , kCSI2RX_PayloadGroup1UserDefined1 = (1U << 0U) , kCSI2RX_PayloadGroup1UserDefined2 = (1U << 1U) , kCSI2RX_PayloadGroup1UserDefined3 = (1U << 2U) ,
  kCSI2RX_PayloadGroup1UserDefined4 = (1U << 3U) , kCSI2RX_PayloadGroup1UserDefined5 = (1U << 4U) , kCSI2RX_PayloadGroup1UserDefined6 = (1U << 5U) , kCSI2RX_PayloadGroup1UserDefined7 = (1U << 6U) ,
  kCSI2RX_PayloadGroup1UserDefined8 = (1U << 7U)
}
 CSI2RX payload type.
More...
 
enum  _csi2rx_bit_error { kCSI2RX_BitErrorEccTwoBit = (1U << 0U) , kCSI2RX_BitErrorEccOneBit = (1U << 1U) }
 MIPI CSI2RX bit errors. More...
 
enum  _csi2rx_ppi_error {
  kCSI2RX_PpiErrorSotHs , kCSI2RX_PpiErrorSotSyncHs , kCSI2RX_PpiErrorEsc , kCSI2RX_PpiErrorSyncEsc ,
  kCSI2RX_PpiErrorControl
}
 MIPI CSI2RX PPI error types. More...
 
enum  _csi2rx_interrupt {
  kCSI2RX_InterruptCrcError = (1U << 0U) , kCSI2RX_InterruptEccOneBitError = (1U << 1U) , kCSI2RX_InterruptEccTwoBitError = (1U << 2U) , kCSI2RX_InterruptUlpsStatusChange = (1U << 3U) ,
  kCSI2RX_InterruptErrorSotHs = (1U << 4U) , kCSI2RX_InterruptErrorSotSyncHs = (1U << 5U) , kCSI2RX_InterruptErrorEsc = (1U << 6U) , kCSI2RX_InterruptErrorSyncEsc = (1U << 7U) ,
  kCSI2RX_InterruptErrorControl = (1U << 8U)
}
 MIPI CSI2RX interrupt.
 
enum  _csi2rx_ulps_status {
  kCSI2RX_ClockLaneUlps = (1U << 0U) , kCSI2RX_DataLane0Ulps = (1U << 1U) , kCSI2RX_DataLane1Ulps = (1U << 2U) , kCSI2RX_DataLane2Ulps = (1U << 3U) ,
  kCSI2RX_DataLane3Ulps = (1U << 4U) , kCSI2RX_ClockLaneMark = (1U << 5U) , kCSI2RX_DataLane0Mark = (1U << 6U) , kCSI2RX_DataLane1Mark = (1U << 7U) ,
  kCSI2RX_DataLane2Mark = (1U << 8U) , kCSI2RX_DataLane3Mark = (1U << 9U)
}
 MIPI CSI2RX D-PHY ULPS state. More...
 
typedef struct _csi2rx_config csi2rx_config_t
 CSI2RX configuration.

 
typedef enum _csi2rx_ppi_error csi2rx_ppi_error_t
 MIPI CSI2RX PPI error types.
 
void CSI2RX_Init (MIPI_CSI2RX_Type *base, const csi2rx_config_t *config)
 Enables and configures the CSI2RX peripheral module.
 
void CSI2RX_Deinit (MIPI_CSI2RX_Type *base)
 Disables the CSI2RX peripheral module.
 
#define FSL_CSI2RX_DRIVER_VERSION   (MAKE_VERSION(2, 0, 4))
 CSI2RX driver version.
 
#define CSI2RX_REG_CFG_NUM_LANES(base)   (base)->CSI2RX_CFG_NUM_LANES
 
#define CSI2RX_REG_CFG_DISABLE_DATA_LANES(base)   (base)->CSI2RX_CFG_DISABLE_DATA_LANES
 
#define CSI2RX_REG_BIT_ERR(base)   (base)->CSI2RX_BIT_ERR
 
#define CSI2RX_REG_IRQ_STATUS(base)   (base)->CSI2RX_IRQ_STATUS
 
#define CSI2RX_REG_IRQ_MASK(base)   (base)->CSI2RX_IRQ_MASK
 
#define CSI2RX_REG_ULPS_STATUS(base)   (base)->CSI2RX_ULPS_STATUS
 
#define CSI2RX_REG_PPI_ERRSOT_HS(base)   (base)->CSI2RX_PPI_ERRSOT_HS
 
#define CSI2RX_REG_PPI_ERRSOTSYNC_HS(base)   (base)->CSI2RX_PPI_ERRSOTSYNC_HS
 
#define CSI2RX_REG_PPI_ERRESC(base)   (base)->CSI2RX_PPI_ERRESC
 
#define CSI2RX_REG_PPI_ERRSYNCESC(base)   (base)->CSI2RX_PPI_ERRSYNCESC
 
#define CSI2RX_REG_PPI_ERRCONTROL(base)   (base)->CSI2RX_PPI_ERRCONTROL
 
#define CSI2RX_REG_CFG_DISABLE_PAYLOAD_0(base)   (base)->CSI2RX_CFG_DISABLE_PAYLOAD_0
 
#define CSI2RX_REG_CFG_DISABLE_PAYLOAD_1(base)   (base)->CSI2RX_CFG_DISABLE_PAYLOAD_1
 
#define CSI2RX_REG_CFG_IGNORE_VC(base)   (base)->CSI2RX_CFG_IGNORE_VC
 
#define CSI2RX_REG_CFG_VID_VC(base)   (base)->CSI2RX_CFG_VID_VC
 
#define CSI2RX_REG_CFG_VID_P_FIFO_SEND_LEVEL(base)   (base)->CSI2RX_CFG_VID_P_FIFO_SEND_LEVEL
 
#define CSI2RX_REG_CFG_VID_VSYNC(base)   (base)->CSI2RX_CFG_VID_VSYNC
 
#define CSI2RX_REG_CFG_VID_HSYNC_FP(base)   (base)->CSI2RX_CFG_VID_HSYNC_FP
 
#define CSI2RX_REG_CFG_VID_HSYNC(base)   (base)->CSI2RX_CFG_VID_HSYNC
 
#define CSI2RX_REG_CFG_VID_HSYNC_BP(base)   (base)->CSI2RX_CFG_VID_HSYNC_BP
 
#define MIPI_CSI2RX_CSI2RX_CFG_NUM_LANES_csi2rx_cfg_num_lanes_MASK   MIPI_CSI2RX_CFG_NUM_LANES_CFG_NUM_LANES_MASK
 
#define MIPI_CSI2RX_CSI2RX_IRQ_MASK_csi2rx_irq_mask_MASK   MIPI_CSI2RX_IRQ_MASK_IRQ_MASK_MASK
 

Detailed Description

Enumeration Type Documentation

◆ _csi2rx_bit_error

MIPI CSI2RX bit errors.

Enumerator
kCSI2RX_BitErrorEccTwoBit 

ECC two bit error has occurred.

kCSI2RX_BitErrorEccOneBit 

ECC one bit error has occurred.

◆ _csi2rx_data_lane

CSI2RX data lanes.

Enumerator
kCSI2RX_DataLane0 

Data lane 0.

kCSI2RX_DataLane1 

Data lane 1.

kCSI2RX_DataLane2 

Data lane 2.

kCSI2RX_DataLane3 

Data lane 3.

◆ _csi2rx_payload

CSI2RX payload type.

Enumerator
kCSI2RX_PayloadGroup0Null 

NULL.

kCSI2RX_PayloadGroup0Blank 

Blank.

kCSI2RX_PayloadGroup0Embedded 

Embedded.

kCSI2RX_PayloadGroup0YUV420_8Bit 

Legacy YUV420 8 bit.

kCSI2RX_PayloadGroup0YUV422_8Bit 

YUV422 8 bit.

kCSI2RX_PayloadGroup0YUV422_10Bit 

YUV422 10 bit.

kCSI2RX_PayloadGroup0RGB444 

RGB444.

kCSI2RX_PayloadGroup0RGB555 

RGB555.

kCSI2RX_PayloadGroup0RGB565 

RGB565.

kCSI2RX_PayloadGroup0RGB666 

RGB666.

kCSI2RX_PayloadGroup0RGB888 

RGB888.

kCSI2RX_PayloadGroup0Raw6 

Raw 6.

kCSI2RX_PayloadGroup0Raw7 

Raw 7.

kCSI2RX_PayloadGroup0Raw8 

Raw 8.

kCSI2RX_PayloadGroup0Raw10 

Raw 10.

kCSI2RX_PayloadGroup0Raw12 

Raw 12.

kCSI2RX_PayloadGroup0Raw14 

Raw 14.

kCSI2RX_PayloadGroup1UserDefined1 

User defined 8-bit data type 1, 0x30.

kCSI2RX_PayloadGroup1UserDefined2 

User defined 8-bit data type 2, 0x31.

kCSI2RX_PayloadGroup1UserDefined3 

User defined 8-bit data type 3, 0x32.

kCSI2RX_PayloadGroup1UserDefined4 

User defined 8-bit data type 4, 0x33.

kCSI2RX_PayloadGroup1UserDefined5 

User defined 8-bit data type 5, 0x34.

kCSI2RX_PayloadGroup1UserDefined6 

User defined 8-bit data type 6, 0x35.

kCSI2RX_PayloadGroup1UserDefined7 

User defined 8-bit data type 7, 0x36.

kCSI2RX_PayloadGroup1UserDefined8 

User defined 8-bit data type 8, 0x37.

◆ _csi2rx_ppi_error

MIPI CSI2RX PPI error types.

Enumerator
kCSI2RX_PpiErrorSotHs 

CSI2RX DPHY PPI error ErrSotHS.

kCSI2RX_PpiErrorSotSyncHs 

CSI2RX DPHY PPI error ErrSotSync_HS.

kCSI2RX_PpiErrorEsc 

CSI2RX DPHY PPI error ErrEsc.

kCSI2RX_PpiErrorSyncEsc 

CSI2RX DPHY PPI error ErrSyncEsc.

kCSI2RX_PpiErrorControl 

CSI2RX DPHY PPI error ErrControl.

◆ _csi2rx_ulps_status

MIPI CSI2RX D-PHY ULPS state.

Enumerator
kCSI2RX_ClockLaneUlps 

Clock lane is in ULPS state.

kCSI2RX_DataLane0Ulps 

Data lane 0 is in ULPS state.

kCSI2RX_DataLane1Ulps 

Data lane 1 is in ULPS state.

kCSI2RX_DataLane2Ulps 

Data lane 2 is in ULPS state.

kCSI2RX_DataLane3Ulps 

Data lane 3 is in ULPS state.

kCSI2RX_ClockLaneMark 

Clock lane is in mark state.

kCSI2RX_DataLane0Mark 

Data lane 0 is in mark state.

kCSI2RX_DataLane1Mark 

Data lane 1 is in mark state.

kCSI2RX_DataLane2Mark 

Data lane 2 is in mark state.

kCSI2RX_DataLane3Mark 

Data lane 3 is in mark state.

Function Documentation

◆ CSI2RX_Deinit()

void CSI2RX_Deinit ( MIPI_CSI2RX_Type base)

Disables the CSI2RX peripheral module.

Parameters
baseCSI2RX peripheral address.

brief Disables the CSI2RX peripheral module.

param base CSI2RX peripheral address.

◆ CSI2RX_Init()

void CSI2RX_Init ( MIPI_CSI2RX_Type base,
const csi2rx_config_t config 
)

Enables and configures the CSI2RX peripheral module.

Parameters
baseCSI2RX peripheral address.
configCSI2RX module configuration structure.

brief Enables and configures the CSI2RX peripheral module.

param base CSI2RX peripheral address. param config CSI2RX module configuration structure.

Variable Documentation

◆ laneNum

uint8_t _csi2rx_config::laneNum

Number of active lanes used for receiving data.

◆ tHsSettle_EscClk

uint8_t _csi2rx_config::tHsSettle_EscClk

Number of rx_clk_esc clock periods for T_HS_SETTLE. The T_HS_SETTLE should be in the range of 85ns + 6UI to 145ns + 10UI.