Gammu internals  1.38.0
GSM_Protocol_Functions Struct Reference

#include <gsmstate.h>

Data Fields

GSM_Error(* WriteMessage )(GSM_StateMachine *s, unsigned const char *buffer, int length, int type)
 
GSM_Error(* StateMachine )(GSM_StateMachine *s, unsigned char rx_char)
 
GSM_Error(* Initialise )(GSM_StateMachine *s)
 
GSM_Error(* Terminate )(GSM_StateMachine *s)
 

Detailed Description

Protocol functions, each protocol has to implement these.

Definition at line 343 of file gsmstate.h.

Field Documentation

§ Initialise

GSM_Error(* GSM_Protocol_Functions::Initialise) (GSM_StateMachine *s)

Protocol initialisation.

Definition at line 356 of file gsmstate.h.

Referenced by GSM_OpenConnection().

§ StateMachine

GSM_Error(* GSM_Protocol_Functions::StateMachine) (GSM_StateMachine *s, unsigned char rx_char)

This one is called when character is received from device.

Definition at line 352 of file gsmstate.h.

Referenced by GSM_ReadDevice().

§ Terminate

GSM_Error(* GSM_Protocol_Functions::Terminate) (GSM_StateMachine *s)

Protocol termination.

Definition at line 360 of file gsmstate.h.

Referenced by GSM_CloseConnection().

§ WriteMessage

GSM_Error(* GSM_Protocol_Functions::WriteMessage) (GSM_StateMachine *s, unsigned const char *buffer, int length, int type)

Writes message to device.

Definition at line 347 of file gsmstate.h.

Referenced by GSM_WaitFor(), and NOKIA_EncodeDateTime().


The documentation for this struct was generated from the following file: