1.15.2.37 CCPx_Capture32bitBufferRead Function

C

/* x = CCP instance number */

uint32_t CCPx_Capture32bitBufferRead( void );

Summary

Reads 32 bit capture value.

Description

This function reads the 32 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

uint32_t - 32 bit Captured value.

Example

uint32_t captureValue = 0;
CCP1_CaptureInitialize();
CCP1_CaptureStart();
captureValue = CCP1_Capture32bitBufferRead();

Remarks

None.