1.14.2.38 1.15.2.38 CCPx_Capture16bitBufferRead Function
C
/* x = CCP instance number */
uint16_t CCPx_Capture16bitBufferRead( void )
Summary
Reads 16 bit capture value.
Description
This function reads the 16 bit captured value. Value can be read from interrupt routine or by polling.
Precondition
CCPx_CaptureInitialize() function must have been called first.
Parameters
None.
Returns
uint16_t - 16 bit Captured value
Example
uint16_t captureValue = 0;
CCP1_CaptureInitialize();
CCP1_CaptureStart();
captureValue = CCP1_Capture16bitBufferRead();
Remarks
None