MCUXpresso SDK API Reference Manual
Rev. 1
NXP Semiconductors
|
The MCUXpresso SDK provides a peripheral driver for the MIPI CSI-2 RX.
Data Structures | |
struct | csi2rx_config_t |
CSI2RX configuration. More... | |
Functions | |
void | CSI2RX_Init (MIPI_CSI2RX_Type *base, const csi2rx_config_t *config) |
Enables and configures the CSI2RX peripheral module. More... | |
void | CSI2RX_Deinit (MIPI_CSI2RX_Type *base) |
Disables the CSI2RX peripheral module. More... | |
static uint32_t | CSI2RX_GetBitError (MIPI_CSI2RX_Type *base) |
Gets the MIPI CSI2RX bit error status. More... | |
static uint32_t | CSI2RX_GetEccBitErrorPosition (uint32_t bitError) |
Get ECC one bit error bit position. More... | |
static uint32_t | CSI2RX_GetUlpsStatus (MIPI_CSI2RX_Type *base) |
Gets the MIPI CSI2RX D-PHY ULPS status. More... | |
static uint32_t | CSI2RX_GetPpiErrorDataLanes (MIPI_CSI2RX_Type *base, csi2rx_ppi_error_t errorType) |
Gets the MIPI CSI2RX D-PHY PPI error lanes. More... | |
static void | CSI2RX_EnableInterrupts (MIPI_CSI2RX_Type *base, uint32_t mask) |
Enable the MIPI CSI2RX interrupts. More... | |
static void | CSI2RX_DisableInterrupts (MIPI_CSI2RX_Type *base, uint32_t mask) |
Disable the MIPI CSI2RX interrupts. More... | |
static uint32_t | CSI2RX_GetInterruptStatus (MIPI_CSI2RX_Type *base) |
Get the MIPI CSI2RX interrupt status. More... | |
Driver version | |
#define | FSL_CSI2RX_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
CSI2RX driver version 2.0.0. More... | |
struct csi2rx_config_t |
Data Fields | |
uint8_t | laneNum |
Number of active lanes used for receiving data. More... | |
uint8_t | tHsSettle_EscClk |
Number of rx_clk_esc clock periods for T_HS_SETTLE. More... | |
uint8_t csi2rx_config_t::laneNum |
uint8_t csi2rx_config_t::tHsSettle_EscClk |
The T_HS_SETTLE should be in the range of 85ns + 6UI to 145ns + 10UI.
#define FSL_CSI2RX_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
enum _csi2rx_data_lane |
enum _csi2rx_payload |
enum _csi2rx_bit_error |
enum csi2rx_ppi_error_t |
enum _csi2rx_interrupt |
enum _csi2rx_ulps_status |
void CSI2RX_Init | ( | MIPI_CSI2RX_Type * | base, |
const csi2rx_config_t * | config | ||
) |
base | CSI2RX peripheral address. |
config | CSI2RX module configuration structure. |
void CSI2RX_Deinit | ( | MIPI_CSI2RX_Type * | base | ) |
base | CSI2RX peripheral address. |
|
inlinestatic |
This function gets the RX bit error status, the return value could be compared with _csi2rx_bit_error. If one bit ECC error detected, the return value could be passed to the function CSI2RX_GetEccBitErrorPosition to get the position of the ECC error bit.
Example:
base | CSI2RX peripheral address. |
|
inlinestatic |
If CSI2RX_GetBitError detects ECC one bit error, this function could extract the error bit position from the return value of CSI2RX_GetBitError.
bitError | The bit error returned by CSI2RX_GetBitError. |
|
inlinestatic |
Example:
base | CSI2RX peripheral address. |
|
inlinestatic |
This function checks the PPI error occurred on which data lanes, the returned value is OR'ed value of csi2rx_ppi_error_t. For example, if the ErrSotHS is detected, to check the ErrSotHS occurred on which data lanes, use like this:
base | CSI2RX peripheral address. |
errorType | What kind of error to check. |
errorType
occurred.
|
inlinestatic |
This function enables the MIPI CSI2RX interrupts. The interrupts to enable are passed in as an OR'ed value of _csi2rx_interrupt. For example, to enable one bit and two bit ECC error interrupts, use like this:
base | CSI2RX peripheral address. |
mask | OR'ed value of _csi2rx_interrupt. |
|
inlinestatic |
This function disables the MIPI CSI2RX interrupts. The interrupts to disable are passed in as an OR'ed value of _csi2rx_interrupt. For example, to disable one bit and two bit ECC error interrupts, use like this:
base | CSI2RX peripheral address. |
mask | OR'ed value of _csi2rx_interrupt. |
|
inlinestatic |
This function returns the MIPI CSI2RX interrupts status as an OR'ed value of _csi2rx_interrupt.
base | CSI2RX peripheral address. |