All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vexbkup.h File Reference

Backup register access macros and prototypes. More...

Go to the source code of this file.

Functions

void vexBkupInit (void)
 Initialize access to backup registers. More...
 
void vexBkupRegisterWrite (int16_t index, uint16_t data)
 Write backup register. More...
 
uint16_t vexBkupRegisterRead (int16_t index)
 Read backup register at index and return data. More...
 
void vexBkupDebug (vexStream *chp, int argc, char *argv[])
 Dump all backup registers to console for debug. More...
 

Detailed Description

Backup register access macros and prototypes.

Function Documentation

void vexBkupInit ( void  )

Initialize access to backup registers.

void vexBkupRegisterWrite ( int16_t  index,
uint16_t  data 
)

Write backup register.

Parameters
[in]indexThe index of the backup register( 0 to 41 )
[in]dataThe data to write to the backup register
uint16_t vexBkupRegisterRead ( int16_t  index)

Read backup register at index and return data.

Parameters
[in]indexThe index of the backup register( 0 to 41 )
Returns
The value of the indexed backup register
void vexBkupDebug ( vexStream chp,
int  argc,
char *  argv[] 
)

Dump all backup registers to console for debug.

Parameters
[in]chpA pointer to a vexStream object
[in]argcThe number of command line arguments
[in]argvAn array of pointers to the command line args