Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

commands.h

00001 #ifndef __COMMANDS_H__
00002 #define __COMMANDS_H__
00003 
00004 typedef struct {
00005   unsigned char id[4] __attribute__ ((packed));
00006   unsigned int address __attribute__ ((packed));
00007   unsigned int size __attribute__ ((packed));
00008   unsigned char data[1] __attribute__ ((packed));
00009 } command_t;
00010 
00011 #define CMD_EXECUTE  "EXEC" /* execute */
00012 #define CMD_LOADBIN  "LBIN" /* begin receiving binary */
00013 #define CMD_PARTBIN  "PBIN" /* part of a binary */
00014 #define CMD_DONEBIN  "DBIN" /* end receiving binary */
00015 #define CMD_SENDBIN  "SBIN" /* send a binary */
00016 #define CMD_SENDBINQ "SBIQ" /* send a binary, quiet */
00017 #define CMD_VERSION  "VERS" /* send version info */
00018 
00019 #define CMD_RETVAL   "RETV" /* return value */
00020 
00021 #define CMD_REBOOT   "RBOT"  /* reboot */
00022 
00023 #define COMMAND_LEN  12
00024 
00025 extern unsigned int tool_ip;
00026 extern unsigned char tool_mac[6];
00027 extern unsigned short tool_port;
00028 
00029 #endif

dcplaya documentation version 2.0 Generated on November 2004 by doxygen 1.3.6