RTEMS 6.1-rc6
|
Data Structures | |
struct | _flexio_camera_type |
Define structure of configuring the FlexIO Camera device. More... | |
struct | _flexio_camera_config |
Define FlexIO Camera user configuration structure. More... | |
struct | _flexio_camera_transfer |
Define FlexIO Camera transfer structure. More... | |
Variables | |
FLEXIO_Type * | _flexio_camera_type::flexioBase |
uint32_t | _flexio_camera_type::datPinStartIdx |
uint32_t | _flexio_camera_type::pclkPinIdx |
uint32_t | _flexio_camera_type::hrefPinIdx |
uint32_t | _flexio_camera_type::shifterStartIdx |
uint32_t | _flexio_camera_type::shifterCount |
uint32_t | _flexio_camera_type::timerIdx |
bool | _flexio_camera_config::enablecamera |
bool | _flexio_camera_config::enableInDoze |
bool | _flexio_camera_config::enableInDebug |
bool | _flexio_camera_config::enableFastAccess |
uint32_t | _flexio_camera_transfer::dataAddress |
uint32_t | _flexio_camera_transfer::dataNum |
Driver version | |
enum | { kStatus_FLEXIO_CAMERA_RxBusy = MAKE_STATUS(kStatusGroup_FLEXIO_CAMERA, 0) , kStatus_FLEXIO_CAMERA_RxIdle = MAKE_STATUS(kStatusGroup_FLEXIO_CAMERA, 1) } |
Error codes for the Camera driver. More... | |
enum | _flexio_camera_status_flags { kFLEXIO_CAMERA_RxDataRegFullFlag = 0x1U , kFLEXIO_CAMERA_RxErrorFlag = 0x2U } |
Define FlexIO Camera status mask. More... | |
typedef struct _flexio_camera_type | FLEXIO_CAMERA_Type |
Define structure of configuring the FlexIO Camera device. | |
typedef struct _flexio_camera_config | flexio_camera_config_t |
Define FlexIO Camera user configuration structure. | |
typedef struct _flexio_camera_transfer | flexio_camera_transfer_t |
Define FlexIO Camera transfer structure. | |
#define | FSL_FLEXIO_CAMERA_DRIVER_VERSION (MAKE_VERSION(2, 1, 3)) |
FlexIO Camera driver version 2.1.3. | |
#define | FLEXIO_CAMERA_PARALLEL_DATA_WIDTH (8U) |
Define the Camera CPI interface is constantly 8-bit width. | |
Initialization and configuration | |
void | FLEXIO_CAMERA_Init (FLEXIO_CAMERA_Type *base, const flexio_camera_config_t *config) |
Ungates the FlexIO clock, resets the FlexIO module, and configures the FlexIO Camera. | |
void | FLEXIO_CAMERA_Deinit (FLEXIO_CAMERA_Type *base) |
Resets the FLEXIO_CAMERA shifer and timer config. | |
void | FLEXIO_CAMERA_GetDefaultConfig (flexio_camera_config_t *config) |
Gets the default configuration to configure the FlexIO Camera. The configuration can be used directly for calling the FLEXIO_CAMERA_Init(). Example: | |
Status | |
uint32_t | FLEXIO_CAMERA_GetStatusFlags (FLEXIO_CAMERA_Type *base) |
Gets the FlexIO Camera status flags. | |
void | FLEXIO_CAMERA_ClearStatusFlags (FLEXIO_CAMERA_Type *base, uint32_t mask) |
Clears the receive buffer full flag manually. | |
Interrupts | |
void | FLEXIO_CAMERA_EnableInterrupt (FLEXIO_CAMERA_Type *base) |
Switches on the interrupt for receive buffer full event. | |
void | FLEXIO_CAMERA_DisableInterrupt (FLEXIO_CAMERA_Type *base) |
Switches off the interrupt for receive buffer full event. | |
anonymous enum |
void FLEXIO_CAMERA_ClearStatusFlags | ( | FLEXIO_CAMERA_Type * | base, |
uint32_t | mask | ||
) |
Clears the receive buffer full flag manually.
base | Pointer to the device. |
mask | status flag The parameter can be any combination of the following values:
|
void FLEXIO_CAMERA_Deinit | ( | FLEXIO_CAMERA_Type * | base | ) |
Resets the FLEXIO_CAMERA shifer and timer config.
base | Pointer to FLEXIO_CAMERA_Type structure |
void FLEXIO_CAMERA_DisableInterrupt | ( | FLEXIO_CAMERA_Type * | base | ) |
Switches off the interrupt for receive buffer full event.
base | Pointer to the device. |
void FLEXIO_CAMERA_EnableInterrupt | ( | FLEXIO_CAMERA_Type * | base | ) |
Switches on the interrupt for receive buffer full event.
base | Pointer to the device. |
void FLEXIO_CAMERA_GetDefaultConfig | ( | flexio_camera_config_t * | config | ) |
Gets the default configuration to configure the FlexIO Camera. The configuration can be used directly for calling the FLEXIO_CAMERA_Init(). Example:
config | Pointer to the flexio_camera_config_t structure |
uint32_t FLEXIO_CAMERA_GetStatusFlags | ( | FLEXIO_CAMERA_Type * | base | ) |
Gets the FlexIO Camera status flags.
base | Pointer to FLEXIO_CAMERA_Type structure |
void FLEXIO_CAMERA_Init | ( | FLEXIO_CAMERA_Type * | base, |
const flexio_camera_config_t * | config | ||
) |
Ungates the FlexIO clock, resets the FlexIO module, and configures the FlexIO Camera.
base | Pointer to FLEXIO_CAMERA_Type structure |
config | Pointer to flexio_camera_config_t structure |
uint32_t _flexio_camera_transfer::dataAddress |
Transfer buffer
uint32_t _flexio_camera_transfer::dataNum |
Transfer num
uint32_t _flexio_camera_type::datPinStartIdx |
First data pin (D0) index for flexio_camera. Then the successive following FLEXIO_CAMERA_DATA_WIDTH-1 pins are used as D1-D7.
bool _flexio_camera_config::enablecamera |
Enable/disable FlexIO Camera TX & RX.
bool _flexio_camera_config::enableFastAccess |
Enable/disable fast access to FlexIO registers, fast access requires the FlexIO clock to be at least twice the frequency of the bus clock.
bool _flexio_camera_config::enableInDebug |
Enable/disable FlexIO operation in debug mode
bool _flexio_camera_config::enableInDoze |
Enable/disable FlexIO operation in doze mode
FLEXIO_Type* _flexio_camera_type::flexioBase |
FlexIO module base address.
uint32_t _flexio_camera_type::hrefPinIdx |
Horizontal sync pin (HREF) index for flexio_camera.
uint32_t _flexio_camera_type::pclkPinIdx |
Pixel clock pin (PCLK) index for flexio_camera.
uint32_t _flexio_camera_type::shifterCount |
The count of shifters that are used as flexio_camera data FIFO.
uint32_t _flexio_camera_type::shifterStartIdx |
First shifter index used for flexio_camera data FIFO.
uint32_t _flexio_camera_type::timerIdx |
Timer index used for flexio_camera in FlexIO.