1.15.2.21 CCPx_Compare32bitValueGet Function

C

/* x = CCP instance number */

uint32_t CCPx_Compare32bitValueGet( void )

Summary

Reads the 32bit comapre value.

Description

This function reads the 32bit comapre value.

Precondition

CCPx_CompareInitialize() function must have been called first.

Parameters

None.

Returns

uint32_t - 32bit compare value

Example

uint32_t counter = 0;
CCP1_CompareInitialize();
CCP1_CompareStart();
counter = CCP1_Compare32bitValueGet();

Remarks

The caller must know the number of significant bytes of timer. Period value is right-aligned.