Diffstat (limited to 'gammu/emb/common/protocol/protocol.h') (more/less context) (show whitespace changes)
-rw-r--r-- | gammu/emb/common/protocol/protocol.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gammu/emb/common/protocol/protocol.h b/gammu/emb/common/protocol/protocol.h new file mode 100644 index 0000000..f8e1fe5 --- a/dev/null +++ b/gammu/emb/common/protocol/protocol.h @@ -0,0 +1,31 @@ +/* (c) 2002-2003 by Marcin Wiacek */ + +#ifndef protocol_common_h +#define protocol_common_h + +typedef enum { + RX_Sync, + RX_GetDestination, + RX_GetSource, + RX_GetType, + RX_GetLength1, + RX_GetLength2, + RX_GetMessage +} GSM_Protocol_RXState; + +typedef struct { + int Length; + int Count; + unsigned char Type; + unsigned char Source; + unsigned char Destination; + unsigned char *Buffer; + int BufferUsed; + unsigned char CheckSum[2]; +} GSM_Protocol_Message; + +#endif + +/* How should editor hadle tabs in this file? Add editor commands here. + * vim: noexpandtab sw=8 ts=8 sts=8: + */ |