Jump to main content

##

# 2.123.16 TMRx_GetTickCounter Function

## C

    /* x = TMR instance number */
    uint32_t TMRx_GetTickCounter(void);

## Summary

Returns current tick count.

## Description

This function returns current tick count.

## Precondition

Timer should be initialized properly.

## Parameters

None.

## Returns

Current tick count.

## Example

    uint16_t counter;

    TMR1_Initialize();
    TMR1_Start();
    counter = TMR1_GetTickCounter(timeout)

## Remarks

None.