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)
void CameraXClkSet(unsigned long ulBase, unsigned char bXClkFlags)
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
void CameraIntDisable(unsigned long ulBase, unsigned long ulIntFlags)
- Description: This function disables individual camera interrupt sources.
- Parameters:
- ulBase – Base address of the camera module
- ulIntFlags – Bit mask of the interrupt sources to be disabled
- Return: None
unsigned long CameraIntStatus(unsigned long ulBase)
- Description: This functions returns the current interrupt status for the camera.
- Parameters:
- ulBase – Base address of the camera module
- Return: Returns the current interrupt status, enumerated as a bit field of values described in CameraIntEnable().
void CameraIntClear(unsigned long ulBase, unsigned long ulIntFlags)
- Description: This function clears individual camera interrupt sources.
- Parameters:
- ulBase – Base address of the camera module
- ulIntFlags – Bit mask of the interrupt sources to be cleared
- Return: None
void CameraCaptureStart(unsigned long ulBase)
- Description: This function starts the image capture over the configured camera interface. This function should be called after completely configuring the camera module.
- Parameters:
- ulBase – Base address of the camera module
- Return: None
void CameraCaptureStop(unsigned long ulBase, tBoolean bImmediate)
- Description: This function stops the image capture over the camera interface. The capture is stopped either immediately or at the end of the current frame, based on the bImmediate parameter.
- Parameters:
- ulBase – Base address of the camera module
- bImmediate – True to stop capture immediately, False to stop at the end of the frame
- Return: None
void CameraBufferRead(unsigned long ulBase, unsigned long *pBuffer, unsigned char ucSize)
- Description: This function reads the camera buffer (FIFO).
- Parameters:
- ulBase – Base address of the camera module
- pBuffer – Pointer to the read buffer
- ucSize – Size of data to be read
- Return: None