1.2.15.23 PDECx_COUNTERCompare1Get Function

C

uint16_t PDECx_COUNTERCompare1Get ( void ) // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.

Summary

Reads Compare 1 register value

Description

This function reads Compare 1 (CC1) register value.

Precondition

PDECx_COUNTERInitialize function must have been called first for the given channel.

Parameters

None.

Returns

Returns Compare 1 register value.

Example

uint16_t value;
PDEC_COUNTERInitialize();
PDEC_COUNTERStart();
value = PDEC_COUNTERCompare1Get();

Remarks

None.