author | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
commit | 88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22 (patch) (side-by-side diff) | |
tree | 6331418973714243beb674abc87692277b83869d /gammu/emb/common/protocol/protocol.h | |
parent | ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf (diff) | |
download | kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.zip kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.gz kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.bz2 |
Initial revision
Diffstat (limited to 'gammu/emb/common/protocol/protocol.h') (more/less context) (ignore 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: + */ |