www.ti.com
Peripheral Library APIs
509
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Parallel Camera Interface Module
• Return: None
void CameraDMAEnable(unsigned long ulBase)
• Description: This function enables a transfer request to DMA from the camera. DMA-specific
configuration must be done separately.
• Parameters:
– ulBase – Base address of the camera module
• Return: None
void CameraDMADisable(unsigned long ulBase)
• Description: This function masks a transfer request to DMA from the camera.
• Parameters:
– ulBase – Base address of the camera module
• Return: None
void CameraThresholdSet(unsigned long ulBase, unsigned long ulThreshold)
• Description: This function sets the FIFO threshold for a DMA transfer request.
• Parameters:
– ulBase – Base address of the camera module
– ulThreshold – Specifies the FIFO level at which a DMA request is generated. This can be in the
range of 1 to 64.
• Return: None
void CameraIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
• Description: This function registers and enables a global camera interrupt from the interrupt controller.
Individual camera interrupts source should be enabled using CameraIntEnable().
• Parameters:
– ulBase – Base address of the camera module
• Return: None
void CameraIntUnregister(unsigned long ulBase)
• Description: This function unregisters and disables the global camera interrupt from the interrupt
controller.
• Parameters:
– ulBase – Base address of the camera module
• Return: None
void CameraIntEnable(unsigned long ulBase, unsigned long ulIntFlags)
• Description: This function enables individual camera interrupt sources.
• Parameters:
– ulBase – Base address of the camera module
– ulIntFlags – Bit mask of the interrupt sources to be enabled
The parameter ulIntFlags should be logical OR of one or more of the following:
– CAM_INT_DMA – DMA done interrupt
– CAM_INT_FE – Frame end interrupt
– CAM_INT_FSC_ERR – Frame-sync error interrupt
– CAM_INT_FIFO_NOEMPTY – FIFO empty interrupt
– CAM_INT_FIFO_FULL – FIFO full interrupt
– CAM_INT_FIFO_THR – FIFO reached threshold interrupt
– CAM_INT_FIFO_OF – FIFO overflow interrupt
– CAN_INT_FIFO_UR – FIFO underflow interrupt
• Return: None