MCUXpresso SDK API Reference Manual  Rev 2.15.000
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
TSTMR: Timestamp Timer Driver

Overview

The MCUXpresso SDK provides a driver for the TSTMR module of MCUXpresso SDK devices.

Functions

static uint64_t TSTMR_ReadTimeStamp (TSTMR_Type *base)
 Reads the time stamp. More...
 
static void TSTMR_DelayUs (TSTMR_Type *base, uint32_t delayInUs)
 Delays for a specified number of microseconds. More...
 

Driver version

#define FSL_TSTMR_DRIVER_VERSION   (MAKE_VERSION(2, 0, 1))
 Version 2.0.1.
 

Function Documentation

static uint64_t TSTMR_ReadTimeStamp ( TSTMR_Type *  base)
inlinestatic

This function reads the low and high registers and returns the 56-bit free running counter value. This can be read by software at any time to determine the software ticks. TSTMR registers can be read with 32-bit accesses only. The TSTMR LOW read should occur first, followed by the TSTMR HIGH read.

Parameters
baseTSTMR peripheral base address.
Returns
The 56-bit time stamp value.
static void TSTMR_DelayUs ( TSTMR_Type *  base,
uint32_t  delayInUs 
)
inlinestatic

This function repeatedly reads the timestamp register and waits for the user-specified delay value.

Parameters
baseTSTMR peripheral base address.
delayInUsDelay value in microseconds.