GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > VXW / V7-0-2

Constituent: vxw_extra     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

mk48T.h.vx-ppc-cots File Reference

MK48T Timekeeper Driver. More...

#include "vxWorks.h"
#include "time.h"

Include dependency graph for mk48T.h.vx-ppc-cots:


Data Structures

struct  MK48T_tod
 Structure to hold time-of-day information. More...

Device Status Definitions

#define MK48T_STATUS_WDOG_RESET   0x80
#define MK48T_STATUS_BATTERY_LOW   0x10

Typedefs

typedef MK48T_tod MK48T_TOD

Functions

int mk48TInit (void)
 Initialize the MK48T driver.
void mk48TTimeGet (MK48T_TOD *tod)
 Get the current time-of-day.
void mk48TTimeSet (MK48T_TOD *tod)
 Set the current time-of-day.
void mk48TTimeShow (void)
 Display the current time-of-day.
void mk48TTimePrompt (void)
 User interface to set the current time-of-day.
time_t mk48TTimeGetUTC (void)
 Get the current time-of-day in UTC format.
void mk48TWdogSet (int period)
 Set and enable the watchdog timer.
UINT8 mk48TStatusGet (void)
 Get the status of the MK48T device.
STATUS mk48TRamRead (UINT16 offset, UINT8 *buf, int numBytes)
 Read from non-volatile RAM.
STATUS mk48TRamWrite (UINT16 offset, UINT8 *buf, int numBytes)
 Write to non-volatile RAM.

Detailed Description

MK48T Timekeeper Driver.

The Motorolla MV2xxx series VME boards contain an MK48T device which provides the following functionallity:

This driver provides an interface to the time-of-day clock and watchdog timer and is intended as a supplement to VxWorks BSP's for these boards.

Because the MK48 device contains multiple registers and cannot guarantee atomic operations at the hardware level, the device is protected in software by a mutex. This means that none of the functions in this library should be called from interrupt level.


Define Documentation

#define MK48T_STATUS_BATTERY_LOW   0x10
 

The MK48T battery power is running low.

#define MK48T_STATUS_WDOG_RESET   0x80
 

The MK48T watchdog timer reset the board.


Typedef Documentation

MK48T_TOD
 

The typedef for MK48T_tod.


Generated on Wed Nov 28 01:34:29 2007 by  doxygen 1.4.4