![]() |
M480 BSP V3.05.006
The Board Support Package for M480 Series
|
Macros | |
#define | CCAP_IS_STOPPED() |
Is CCAP module Enable. More... | |
#define | CCAP_CLR_INT_FLAG(u32IntMask) |
Clear CCAP flag. More... | |
#define | CCAP_GET_INT_STS() |
Get CCAP Interrupt status. More... | |
Functions | |
void | CCAP_Open (uint32_t u32InFormat, uint32_t u32OutFormet) |
Open engine clock and sensor clock. More... | |
void | CCAP_SetCroppingWindow (uint32_t u32VStart, uint32_t u32HStart, uint32_t u32Height, uint32_t u32Width) |
Set Cropping Window Starting Address and Size. More... | |
void | CCAP_SetPacketBuf (uint32_t u32Address) |
Set System Memory Packet Base Address0 Register. More... | |
void | CCAP_Close (void) |
Close Camera Capture Interface. More... | |
void | CCAP_EnableInt (uint32_t u32IntMask) |
Set CCAP Interrupt. More... | |
void | CCAP_DisableInt (uint32_t u32IntMask) |
Disable CCAP Interrupt. More... | |
void | CCAP_Start (void) |
Start Camera Capture Interface. More... | |
void | CCAP_Stop (uint32_t u32FrameComplete) |
Stop Camera Capture Interface. More... | |
void | CCAP_SetPacketScaling (uint32_t u32VNumerator, uint32_t u32VDenominator, uint32_t u32HNumerator, uint32_t u32HDenominator) |
Set Packet Scaling Vertical and Horizontal Factor Register. More... | |
void | CCAP_SetPacketStride (uint32_t u32Stride) |
Set Packet Frame Output Pixel Stride Width. More... | |
void | CCAP_EnableMono (uint32_t u32Interface) |
Enable Monochrome CMOS Sensor. More... | |
void | CCAP_DisableMono (void) |
Disable Monochrome CMOS Sensor. More... | |
void | CCAP_EnableLumaYOne (uint32_t u32th) |
Enable Luminance 8-bit Y to 1-bit Y Conversion. More... | |
void | CCAP_DisableLumaYOne (void) |
Disable Luminance 8-bit Y to 1-bit Y Conversion. More... | |
#define CCAP_CLR_INT_FLAG | ( | u32IntMask | ) |
Clear CCAP flag.
[in] | u32IntMask | interrupt flags settings. It could be |
Clear Image Capture Interface interrupt flag
#define CCAP_GET_INT_STS | ( | ) |
Get CCAP Interrupt status.
Get Image Capture Interface interrupt status.
#define CCAP_IS_STOPPED | ( | ) |
Is CCAP module Enable.
Check Camera Capture Interface module Enable or Disable
void CCAP_Close | ( | void | ) |
void CCAP_DisableInt | ( | uint32_t | u32IntMask | ) |
Disable CCAP Interrupt.
[in] | u32IntMask | Interrupt settings. It could be |
Disable Video Frame End Interrupt , System Memory Error Interrupt , Address Match Interrupt and Motion Detection Output Finish Interrupt .
void CCAP_DisableLumaYOne | ( | void | ) |
void CCAP_DisableMono | ( | void | ) |
void CCAP_EnableInt | ( | uint32_t | u32IntMask | ) |
Set CCAP Interrupt.
[in] | u32IntMask | Interrupt settings. It could be |
Set Video Frame End Interrupt Enable, System Memory Error Interrupt Enable, Address Match Interrupt Enable, Motion Detection Output Finish Interrupt Enable.
void CCAP_EnableLumaYOne | ( | uint32_t | u32th | ) |
void CCAP_EnableMono | ( | uint32_t | u32Interface | ) |
Enable Monochrome CMOS Sensor.
[in] | u32Interface | I/O interface settings. It could be |
void CCAP_Open | ( | uint32_t | u32InFormat, |
uint32_t | u32OutFormet | ||
) |
Open engine clock and sensor clock.
[in] | u32InFormat | The bits corresponding VSP, HSP, PCLK, INFMT, SNRTYPE, OUTFMT, PDORD and PNFMT configurations.
|
[in] | u32OutFormet | Capture output format, should be one of following setting |
Initialize the Image Capture Interface. Register a call back for driver internal using
void CCAP_SetCroppingWindow | ( | uint32_t | u32VStart, |
uint32_t | u32HStart, | ||
uint32_t | u32Height, | ||
uint32_t | u32Width | ||
) |
Set Cropping Window Starting Address and Size.
[in] | u32VStart | Cropping Window Vertical Starting Address. It should be 0 ~ 0x7FF. |
[in] | u32HStart | Cropping Window Horizontal Starting Address. It should be 0 ~ 0x7FF. |
[in] | u32Height | Cropping Window Height . It should be 0 ~ 0x7FF. |
[in] | u32Width | Cropping Window Width. It should be 0 ~ 0x7FF. |
Set Cropping Window Starting Address Register
void CCAP_SetPacketBuf | ( | uint32_t | u32Address | ) |
void CCAP_SetPacketScaling | ( | uint32_t | u32VNumerator, |
uint32_t | u32VDenominator, | ||
uint32_t | u32HNumerator, | ||
uint32_t | u32HDenominator | ||
) |
Set Packet Scaling Vertical and Horizontal Factor Register.
[in] | u32VNumerator | Packet Scaling Vertical Factor N. It should be 0 ~ FFFF. |
[in] | u32VDenominator | Packet Scaling Vertical Factor M. It should be 0 ~ FFFF. |
[in] | u32HNumerator | Packet Scaling Vertical Factor N. It should be 0 ~ FFFF. |
[in] | u32HDenominator | Packet Scaling Vertical Factor M. It should be 0 ~ FFFF. |
void CCAP_SetPacketStride | ( | uint32_t | u32Stride | ) |
void CCAP_Start | ( | void | ) |
void CCAP_Stop | ( | uint32_t | u32FrameComplete | ) |
Stop Camera Capture Interface.
[in] | u32FrameComplete | : TRUE: Capture module automatically disable the CCAP module after a frame had been captured FALSE: Stop Capture module now |
if u32FrameComplete is set to TRUE then get a new frame and disable CCAP module.