1.2.11.4 Library Interface

Time System Service library provides the following interfaces:

Functions

NameDescription
SYS_TIME_InitializeInitializes the System Time module
SYS_TIME_DeinitializeDeinitializes the specific module instance of the SYS TIMER module
SYS_TIME_StatusReturns System Time status
SYS_TIME_CallbackRegisterUSRegisters a function with the time system service to be called back when the requested number of microseconds have expired (either once or repeatedly)
SYS_TIME_CallbackRegisterMSRegisters a function with the time system service to be called back when the requested number of milliseconds has expired (either once or repeatedly)
SYS_TIME_DelayUSThis function is used to generate a delay of a given number of microseconds
SYS_TIME_DelayMSThis function is used to generate a delay of a given number of milliseconds
SYS_TIME_DelayIsCompleteDetermines if the given delay timer has completed
SYS_TIME_FrequencyGetGets the frequency at which the hardwaer timer counts
SYS_TIME_CounterGetGet the common 32-bit system counter value
SYS_TIME_Counter64GetGet the common 64-bit system counter value
SYS_TIME_CounterSetSets the common 32-bit system counter value
SYS_TIME_CountToUSConverts a counter value to time interval in microseconds
SYS_TIME_CountToMSConverts a counter value to time interval in milliseconds
SYS_TIME_USToCountConvert the given time interval in microseconds to an equivalent counter value
SYS_TIME_MSToCountConvert the given time interval in milliseconds to an equivalent counter value
SYS_TIME_TimerCreateCreates and initializes a new 32-bit software timer instance
SYS_TIME_TimerReloadReloads (or reinitializes) the software timer instance
SYS_TIME_TimerDestroyDestroys/deallocates a software timer instance
SYS_TIME_TimerCounterGetGets the elapsed counter value of a software timer
SYS_TIME_TimerStartStarts a software timer running
SYS_TIME_TimerStopStops a running software timer
SYS_TIME_TimerPeriodHasExpiredReports whether or not the current period of a software timer has expired

Data types and constants

NameTypeDescription
SYS_TIME_INITStructDefines the data required to initialize the TIME system service
SYS_TIME_RESULTEnumResult of a time service client interface operation
SYS_TIME_HANDLETypedefHandle to a software timer instance
SYS_TIME_HANDLE_INVALIDMacroInvalid handle value to a software timer instance
SYS_TIME_CALLBACK_TYPEEnumIdentifies the type of callback requested (single or periodic)
SYS_TIME_CALLBACKTypedefPointer to a time system service callback function