TIComm.c File Reference

#include "TIComm.h"
#include "TIMotorLIB.h"

Go to the source code of this file.

Data Structures

struct  Commands
union  OnCommand

Functions

static char IsCommand (volatile char origin[], const char command[])
void InitTIComm (unsigned char isrMonitor)
interrupt void SCIARxInterrupt (void)
interrupt void SCIATxInterrupt (void)
char TICommProtocol (volatile char sciaRXDT, volatile union Msg *dspMsg)
void RTMonitor (void)

Variables

static const char writeCommand [] = "WVAR"
 write command
static const char readCommand [] = "RVAR"
 read command
static const char rtCommand [] = "CVAR"
 real time command
static const char delCommand [] = "DVAR"
 delete real time command
static const char rstCommand [] = "RSTM"
 reset real time memory
static const char startCommand [] = "INIT"
 starts real time
static const char stopCommand [] = "STOP"
 stops real time
static const char COMMAND_SIZE = 4
static const char MSG_SIZE = 12
static const char RTMSG_SIZE = 8
union Msg msg
union Msg dspMsg
union RTMsg rtMsg
union OnCommand onCommand
static struct RTVariables rtVariables [MAX_ACCSESIBLE_VARS]
volatile char usedVariables
volatile char isrMonitorEnabled = 0
volatile unsigned char RTMonitorStart = 0

Function Documentation

void InitTIComm ( unsigned char  isrMonitor  ) 

Definition at line 66 of file TIComm.c.

static char IsCommand ( volatile char  origin[],
const char  command[] 
) [inline, static]

Definition at line 249 of file TIComm.c.

void RTMonitor ( void   ) 

Definition at line 226 of file TIComm.c.

interrupt void SCIARxInterrupt ( void   ) 

Definition at line 82 of file TIComm.c.

interrupt void SCIATxInterrupt ( void   ) 

Definition at line 108 of file TIComm.c.

char TICommProtocol ( volatile char  sciaRXDT,
volatile union Msg dspMsg 
)

Definition at line 117 of file TIComm.c.


Variable Documentation

const char COMMAND_SIZE = 4 [static]

Definition at line 50 of file TIComm.c.

const char delCommand[] = "DVAR" [static]

delete real time command

Definition at line 30 of file TIComm.c.

union Msg dspMsg

Definition at line 54 of file TIComm.c.

volatile char isrMonitorEnabled = 0

Definition at line 59 of file TIComm.c.

union Msg msg

Definition at line 53 of file TIComm.c.

const char MSG_SIZE = 12 [static]

Definition at line 51 of file TIComm.c.

Definition at line 56 of file TIComm.c.

const char readCommand[] = "RVAR" [static]

read command

Definition at line 28 of file TIComm.c.

const char rstCommand[] = "RSTM" [static]

reset real time memory

Definition at line 31 of file TIComm.c.

const char rtCommand[] = "CVAR" [static]

real time command

Definition at line 29 of file TIComm.c.

volatile unsigned char RTMonitorStart = 0

Definition at line 60 of file TIComm.c.

union RTMsg rtMsg

Definition at line 55 of file TIComm.c.

const char RTMSG_SIZE = 8 [static]

Definition at line 52 of file TIComm.c.

struct RTVariables rtVariables[MAX_ACCSESIBLE_VARS] [static]

Definition at line 57 of file TIComm.c.

const char startCommand[] = "INIT" [static]

starts real time

Definition at line 32 of file TIComm.c.

const char stopCommand[] = "STOP" [static]

stops real time

Definition at line 33 of file TIComm.c.

volatile char usedVariables

Definition at line 58 of file TIComm.c.

const char writeCommand[] = "WVAR" [static]

write command

Definition at line 27 of file TIComm.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Mon Apr 23 12:59:21 2012 for TIMotorLIB by  doxygen 1.6.3