![]() |
NUC472_NUC442_BSP V3.03.005
The Board Support Package for NUC472/NUC442
|
Macros | |
#define | CAP_IS_STOPPED() |
Is CAP module Enable. More... | |
#define | CAP_CLR_INT_FLAG(u32IntMask) |
Clear CAP flag. More... | |
#define | CAP_GET_INT_STS() |
Get CAP Interrupt status. More... | |
Functions | |
void | CAP_Open (uint32_t u32InFormat, uint32_t u32OutFormet) |
Open engine clock and sensor clock. More... | |
void | CAP_SetCroppingWindow (uint32_t u32VStart, uint32_t u32HStart, uint32_t u32Height, uint32_t u32Width) |
Set Cropping Window Starting Address and Size. More... | |
void | CAP_SetPacketBuf (uint32_t u32Address) |
Set System Memory Packet Base Address0 Register. More... | |
void | CAP_SetPlanarBuf (uint32_t u32YAddr, uint32_t u32UAddr, uint32_t u32VAddr) |
Set System Memory Planar Y, U and V Base Address Registers. More... | |
void | CAP_Close (void) |
Close Image Capture Interface. More... | |
void | CAP_EnableInt (uint32_t u32IntMask) |
Set CAP Interrupt. More... | |
void | CAP_DisableInt (uint32_t u32IntMask) |
Disable CAP Interrupt. More... | |
void | CAP_Start (void) |
Start Image Capture Interface. More... | |
void | CAP_Stop (uint32_t u32FrameComplete) |
Stop Image Capture Interface. More... | |
void | CAP_SetPacketScaling (uint32_t u32VNumerator, uint32_t u32VDenominator, uint32_t u32HNumerator, uint32_t u32HDenominator) |
Set Packet Scaling Vertical and Horizontal Factor Register. More... | |
void | CAP_SetPlanarScaling (uint32_t u32VNumerator, uint32_t u32VDenominator, uint32_t u32HNumerator, uint32_t u32HDenominator) |
Set Planar Scaling Vertical and Horizontal Factor Register. More... | |
void | CAP_SetPacketStride (uint32_t u32Stride) |
Set Packet Frame Output Pixel Stride Width. More... | |
void | CAP_SetPlanarStride (uint32_t u32Stride) |
Set Planar Frame Output Pixel Stride Width. More... | |
void | CAP_EnableMotionDet (uint32_t u32Freq, uint32_t u32BlockSize, uint32_t u32Format, uint32_t u32Threshold, uint32_t u32YDetAddr, uint32_t u32DetAddr) |
Enable Motion Detection Function. More... | |
void | CAP_DisableMotionDet (void) |
Enable Motion Detection Function. More... | |
#define CAP_CLR_INT_FLAG | ( | u32IntMask | ) |
Clear CAP flag.
[in] | u32IntMask | interrupt flags settings. It could be |
Clear Image Capture Interface interrupt flag
#define CAP_GET_INT_STS | ( | ) |
Get CAP Interrupt status.
Get Image Capture Interface interrupt status.
#define CAP_IS_STOPPED | ( | ) |
Is CAP module Enable.
Check Image Capture Interface module Enable or Disable
void CAP_Close | ( | void | ) |
void CAP_DisableInt | ( | uint32_t | u32IntMask | ) |
Disable CAP 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 CAP_DisableMotionDet | ( | void | ) |
void CAP_EnableInt | ( | uint32_t | u32IntMask | ) |
Set CAP 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 CAP_EnableMotionDet | ( | uint32_t | u32Freq, |
uint32_t | u32BlockSize, | ||
uint32_t | u32Format, | ||
uint32_t | u32Threshold, | ||
uint32_t | u32YDetAddr, | ||
uint32_t | u32DetAddr | ||
) |
Enable Motion Detection Function.
[in] | u32Freq | Motion Detection Detect Frequency. It should be 0x0 ~ 0x3. |
[in] | u32BlockSize | Motion Detection Block Size FALSE : 16x16 TRUE : 8x8 |
[in] | u32Format | Motion Detection Save Mode FALSE : 1 bit DIFF + 7 Y Differential TRUE : 1 bit DIFF only |
[in] | u32Threshold | Motion Detection Detect Threshold. It should be 0x0 ~ 0x1F. |
[in] | u32YDetAddr | : Motion Detection Detect Temp Y Output Address |
[in] | u32DetAddr | Motion Detection Detect Address |
Set Planar Frame Output Pixel Stride Width
void CAP_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 CAP_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 CAP_SetPacketBuf | ( | uint32_t | u32Address | ) |
void CAP_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 CAP_SetPacketStride | ( | uint32_t | u32Stride | ) |
void CAP_SetPlanarBuf | ( | uint32_t | u32YAddr, |
uint32_t | u32UAddr, | ||
uint32_t | u32VAddr | ||
) |
Set System Memory Planar Y, U and V Base Address Registers.
[in] | u32YAddr | : set YBA register, It should be 0x0 ~ 0xFFFFFFFF |
[in] | u32UAddr | : set UBA register, It should be 0x0 ~ 0xFFFFFFFF |
[in] | u32VAddr | : set VBA register, It should be 0x0 ~ 0xFFFFFFFF |
Set System Memory Planar Y,U and V Base Address Registers
void CAP_SetPlanarScaling | ( | uint32_t | u32VNumerator, |
uint32_t | u32VDenominator, | ||
uint32_t | u32HNumerator, | ||
uint32_t | u32HDenominator | ||
) |
Set Planar Scaling Vertical and Horizontal Factor Register.
[in] | u32VNumerator | Planar Scaling Vertical Factor N. It should be 0 ~ FFFF. |
[in] | u32VDenominator | Planar Scaling Vertical Factor M. It should be 0 ~ FFFF. |
[in] | u32HNumerator | Planar Scaling Vertical Factor N. It should be 0 ~ FFFF. |
[in] | u32HDenominator | Planar Scaling Vertical Factor M. It should be 0 ~ FFFF. |
void CAP_SetPlanarStride | ( | uint32_t | u32Stride | ) |
void CAP_Start | ( | void | ) |
void CAP_Stop | ( | uint32_t | u32FrameComplete | ) |
Stop Image Capture Interface.
[in] | u32FrameComplete | : TRUE: Capture module automatically disable the CAP 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 CAP module