1.12.6.4 CORETIMER_CounterGet Function

C

uint32_t CORETIMER_CounterGet(void);

Summary

Reads the Core timer counter value.

Description

This function reads the timer counter value.

Precondition

CORETIMER_Initialize() function must have been called first.

Parameters

None.

Returns

Timer's current count value.

Example

uint32_t counter;

CORETIMER_Initialize();
CORETIMER_Start();
counter = CORETIMER_CounterGet();

Remarks

This API is generated for non-periodic interrupt mode only.