1.16.20.3 TMR1_CounterGet Function

C

uint16_t TMR1_CounterGet(void);

Summary

Reads the timer counter value.

Description

This function reads the timer counter value.

Precondition

TMR1_Initialize() function must have been called first.

Parameters

None.

Returns

The timer's current count value.

Example

uint16_t counter;

TMR1_Initialize();
TMR1_Start();
counter = TMR1_CounterGet();

Remarks

None