[Tinyos-commits] CVS: tinyos-1.x/tos/lib/Rpc Rpc.h,1.1,1.2

Kamin Whitehouse kaminw at users.sourceforge.net
Fri Oct 7 16:48:34 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/tos/lib/Rpc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2641/Rpc

Modified Files:
	Rpc.h 
Log Message:
reducing the transactionID, commandID, and errorCode to only 1 byte.  This might cause problems if there are more than 256 commands or transactions, but for now it is necessary because the Drain headers are so big.

Index: Rpc.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/lib/Rpc/Rpc.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Rpc.h	23 Sep 2005 10:13:55 -0000	1.1
--- Rpc.h	7 Oct 2005 23:48:31 -0000	1.2
***************
*** 57,63 ****
  
  typedef struct RpcCommandMsg {
!   uint16_t     transactionID;   /*the id of the complete transaction*/
  //uint16_t     msgSeqNo;       /*the number of this message within this transaction*/
!   uint16_t     commandID;       /*the command that should be run*/
    uint16_t     address;        /*the address that this msg should be received by*/
    uint16_t     returnAddress;  /*the address that the return val should be sent to*/
--- 57,63 ----
  
  typedef struct RpcCommandMsg {
!   uint8_t     transactionID;   /*the id of the complete transaction*/
  //uint16_t     msgSeqNo;       /*the number of this message within this transaction*/
!   uint8_t     commandID;       /*the command that should be run*/
    uint16_t     address;        /*the address that this msg should be received by*/
    uint16_t     returnAddress;  /*the address that the return val should be sent to*/
***************
*** 68,76 ****
  
  typedef struct RpcResponseMsg {
!   uint16_t     transactionID;  /*the id of the complete transaction*/
  //uint16_t     msgSeqNo;      /*the number of this message within this transaction*/
!   uint16_t     commandID;      /*the command that should be run*/
    uint16_t     sourceAddress; /*the address that the return val came from*/
!   uint16_t     errorCode;     /*see error codes above*/
    uint8_t      dataLength;
    uint8_t      data[0];
--- 68,76 ----
  
  typedef struct RpcResponseMsg {
!   uint8_t     transactionID;  /*the id of the complete transaction*/
  //uint16_t     msgSeqNo;      /*the number of this message within this transaction*/
!   uint8_t     commandID;      /*the command that should be run*/
    uint16_t     sourceAddress; /*the address that the return val came from*/
!   uint8_t      errorCode;     /*see error codes above*/
    uint8_t      dataLength;
    uint8_t      data[0];



More information about the Tinyos-commits mailing list