Peripheral Library APIs
www.ti.com
508
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Parallel Camera Interface Module
14.7 Peripheral Library APIs
This section lists the software APIs hosted in the CC32xx SDK (peripheral library) for configuring and
using the camera interface module.
void CameraReset(unsigned long ulBase)
• Description: This function resets the camera core.
• Parameters:
– ulBase – Base address of the camera module
• Return: None
void CameraXClkConfig(unsigned long ulBase, unsigned long ulCamClkIn, unsigned long ulXClk)
• Description: This function sets the internal clock divider based on ulCamClkIn to generate XCLK as
specified be ulXClk. The maximum supported division is 30.
• Parameters:
– ulBase – Base address of the camera module
– ulCamClkIn – Input clock frequency to camera module
– ulXClk – Required XCLK frequency
• Return: None
void CameraParamsConfig(unsigned long ulBase, unsigned long ulHSPol, unsigned long ulVSPol,
unsigned long ulFlags)
• Description: This function sets different camera parameters.
• Parameters:
– ulBase –Base address of the camera module
– ulHSPol – Sets the HSync polarity
– ulVSPol – Sets the VSync polarity
– ulFlags – Configuration flags
The parameter ulHSPol should be on the following:
– CAM_HS_POL_HI HSYNC – Polarity is active high.
– CAM_HS_POL_LO HSYNC – Polarity is active low.
The parameter ulVSPol should be on the following:
– CAM_VS_POL_HI VSYNC – Polarity is active high.
– CAM_VS_POL_LO VSYNC – Polarity is active low.
The parameter ulFlags can be logical OR of one or more of the following or 0:
– CAM_PCLK_RISE_EDGE PCLK – Polarity is active high.
– CAM_PCLK_FALL_EDGE PCLK – Polarity is active low.
– CAM_ORDERCAM_SWAP – Swap the byte order.
– CAM_NOBT_SYNCHRO – Enable to start capture at start of frame.
– CAM_IF_SYNCHRO – Synchronize all sensor inputs.
• Return: None
void CameraXClkSet(unsigned long ulBase, unsigned char bXClkFlags)
• Description: This function sets the internal divide in specified mode.
• Parameters:
– ulBase – Base address of the camera module
– bXClkFlags – Sets the divider mode
The parameter bXClkFlags should be one of the following:
– CAM_XCLK_STABLE_LO XCLK line will be pulled low.
– CAM_XCLK_STABLE_HI XCLK line will be pulled high.
– CAM_XCLK_DIV_BYPASS XCLK divider is in bypass mode.