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

Backup register access. More...

#include "ch.h"
#include "hal.h"
#include "vex.h"

Functions

void vexBkupInit ()
 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.

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