7 A Linux/Unix toolset and driver for Nokia mobile phones.
9 Copyright (C) 1999, 2000 Hugh Blemings & Pavel JanÃk ml.
11 Released under the terms of the GNU GPL, see file COPYING for more details.
13 Header file for the statemachine.
16 Revision 1.1.1.1 2001/11/25 21:59:20 short
17 :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
19 Revision 1.2 2001/06/27 23:52:52 pkot
20 7110/6210 updates (Marian Jancar)
22 Revision 1.1 2001/03/21 23:36:07 chris
23 Added the statemachine
24 This will break gnokii --identify and --monitor except for 6210/7110
29 #ifndef __gsm_statemachine_h
30 #define __gsm_statemachine_h
32 #include "gsm-common.h"
34 GSM_Error SM_Initialise(GSM_Statemachine *state);
35 GSM_State SM_Loop(GSM_Statemachine *state, int timeout);
36 GSM_Error SM_SendMessage(GSM_Statemachine *state, u16 messagesize, u8 messagetype, void *message);
37 GSM_Error SM_WaitFor(GSM_Statemachine *state, GSM_Data *data, unsigned char messagetype);
38 void SM_IncomingFunction(GSM_Statemachine *state, u8 messagetype, void *message, u16 messagesize);
39 void SM_Reset(GSM_Statemachine *state);
40 GSM_Error SM_GetError(GSM_Statemachine *state, unsigned char messagetype);
41 GSM_Error SM_Block(GSM_Statemachine *state, GSM_Data *data, int waitfor);
42 GSM_Error SM_Functions(GSM_Operation op, GSM_Data *data, GSM_Statemachine *sm);
44 #endif /* __gsm_statemachine_h */