1.10.6.4 1.11.7.4 1.12.6.4 1.13.6.4 1.14.7.4 1.15.7.4 1.16.4.4 1.17.4.4 1.18.5.4 1.19.4.4 1.20.4.4 1.21.5.4 1.22.6.4 1.23.6.4 1.24.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.