Cordio Stack and Cordio Profiles  r2p3-02rel0
wsf_timer.h File Reference

Timer service. More...

#include "wsf_os.h"
Include dependency graph for wsf_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  wsfTimer_t
 Timer structure. More...
 

Macros

#define WSF_MS_PER_TICK   10
 Default milliseconds per tick rate.
 

Typedefs

typedef uint32_t wsfTimerTicks_t
 Timer ticks data type.
 

Functions

void WsfTimerInit (void)
 Initialize the timer service. This function should only be called once upon system initialization. More...
 
void WsfTimerStartSec (wsfTimer_t *pTimer, wsfTimerTicks_t sec)
 Start a timer in units of seconds. Before this function is called parameter pTimer->handlerId must be set to the event handler for this timer and parameter pTimer->msg must be set to any application-defined timer event parameters. More...
 
void WsfTimerStartMs (wsfTimer_t *pTimer, wsfTimerTicks_t ms)
 Start a timer in units of milliseconds. More...
 
void WsfTimerStop (wsfTimer_t *pTimer)
 Stop a timer. More...
 
void WsfTimerUpdate (wsfTimerTicks_t ticks)
 Update the timer service with the number of elapsed ticks. This function is typically called only from timer porting code. More...
 
wsfTimerTicks_t WsfTimerNextExpiration (bool_t *pTimerRunning)
 Return the number of ticks until the next timer expiration. Note that this function can return zero even if a timer is running, indicating the timer has expired but has not yet been serviced. More...
 
wsfTimer_tWsfTimerServiceExpired (wsfTaskId_t taskId)
 Service expired timers for the given task. This function is typically called only WSF OS porting code. More...
 

Description

Timer service.

Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved. ARM Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact ARM Ltd. prior to any use, copying or further distribution of this software.

Definition in file wsf_timer.h.