GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-12
Constituent: pbs     Tag: linux-gcc
#include "PBS/TOV.h"
#include "PBS/WUT_cb.h"
Include dependency graph for WUT.h:
This graph shows which files directly or indirectly include this file:
Defines | |
#define | WUT_INIT(_wut) (_wut)->state = WUT_K_ALLOCATED |
Initializes a user allocated timer for use. | |
Typedefs | |
typedef enum _WUT_state | WUT_state |
Typedef for enum _WUT_state. | |
Enumerations | |
enum | _WUT_state { WUT_K_FREE = -2, WUT_K_ACTIVE = -1, WUT_K_QUEUED = 0, WUT_K_ALLOCATED = 1, WUT_K_CANCELLED = 2, WUT_K_EXPIRED = 3 } |
Enumerate the possible states of a WakeUp Timer entry. More... | |
Functions | |
int | WUT_sys_adjust (long long int dnsecx) |
Adjusts all the current entries on the WUT timer que in response to a change in the base time. | |
int | WUT_sys_init (int count) |
One time WUT services initialization routine. | |
int | WUT_sys_connect (unsigned int keepalive, unsigned int update) |
One time WUT connection routine to start WUT system. | |
int | WUT_sys_reset (unsigned int keepalive, unsigned int update) |
Resets the keepalive and update times. | |
int | WUT_sys_shutdown (void) |
Shuts down the WUT routine. | |
WUT_state | WUT_cancel (WUT_tmr *wut) |
Cancels a WUT timer entry. | |
WUT_tmr * | WUT_create (void) |
Allocate a WUT timer entry. | |
WUT_state | WUT_expire (WUT_tmr *wut) |
Marks a wut timer as expire. | |
WUT_state | WUT_destroy (WUT_tmr *wut) |
Destroys, ie frees, an unused WUT timer entry. | |
WUT_state | WUT_restart (WUT_tmr *wut, register TOV tov) |
Restarts a WUT timer entry. | |
WUT_state | WUT_start (WUT_tmr *wut, register TOV tov, WUT_cb_routine cb, void *prm) |
Establishes and starts a WUT timer entry. | |
WUT_state | WUT_state_get (const WUT_tmr *wut) |
Gets the current state of the WUT timer entry. | |
TOV | WUT_tov_get (const WUT_tmr *wut) |
Gets the current TOV of the WUT timer entry. | |
int | WUT_dec_get (void) |
Gets the current time left till the next timer expiration. | |
unsigned int | WUT_frequency (void) |
Gets frequency, in Hertz of the WUT clock. |
CVS $Id: WUT.h,v 1.7 2005/10/01 01:00:12 russell Exp $
Interface file for the WakeUp Timer interrupt facility.
|
Initializes a user allocated timer for use.
|
|
Typedef for enum _WUT_state. The ownership of a timer handle is divided into two pieces. When the value of the state is >= WUT_K_ALLOCATED, the user has ownership of the WUT timer handle. When the user has ownership of the WUT timer handle, it's state will not change except by user request. The user is allowed to request state changes, for example, by WUT_cancel, but there is no guarantee that these state changes will be granted. When the value of the state is < WUT_K_ALLOCATED, the WUT services have ownership of the WUT handle. When the WUT services have ownership, the state may spontaneously change due to WUT activity. |
|
Enumerate the possible states of a WakeUp Timer entry.
|
|
Cancels a WUT timer entry.
|
|
Allocate a WUT timer entry.
|
|
Gets the current time left till the next timer expiration. This primarily used as a debugging aid. |
|
Destroys, ie frees, an unused WUT timer entry.
|
|
Marks a wut timer as expire.
|
|
Gets frequency, in Hertz of the WUT clock.
|
|
Restarts a WUT timer entry.
|
|
Establishes and starts a WUT timer entry.
|
|
Gets the current state of the WUT timer entry.
|
|
Adjusts all the current entries on the WUT timer que in response to a change in the base time.
|
|
One time WUT connection routine to start WUT system.
|
|
One time WUT services initialization routine.
|
|
Resets the keepalive and update times.
|
|
Shuts down the WUT routine.
|
|
Gets the current TOV of the WUT timer entry.
|