5 A Linux/Unix toolset and driver for Nokia mobile phones.
7 Released under the terms of the GNU GPL, see file COPYING for more details.
9 Header file for the various functions, definitions etc. used to implement
10 the handset interface.
19 #define FBUS3110_FRAME_TO_PHONE 0x01 /* Command from PC to phone */
20 #define FBUS3110_DATAFRAME_TO_PHONE 0x02 /* Data call frame from PC to phone */
21 #define FBUS3110_FRAME_TO_PC 0x03 /* Command from phone to PC */
22 #define FBUS3110_DATAFRAME_TO_PC 0x04 /* Data call frame from phone to PC */
24 #define FBUS3110_MAX_TRANSMIT_LENGTH (256)
25 #define FBUS3110_MAX_RECEIVE_LENGTH (512)
26 #define FBUS3110_MAX_CONTENT_LENGTH (120)
28 /* Global variables */
29 extern GSM_Protocol FBUS3110_Functions;
31 GSM_Error FBUS3110_Initialise(char *port_device, char *initlength,
32 GSM_ConnectionType connection,
33 void (*rlp_callback)(RLP_F96Frame *frame));
35 int FBUS3110_SendMessage(u16 message_length, u8 message_type, u8 *buffer);
36 int FBUS3110_SendFrame(u16 message_length, u8 message_type, u8 *buffer);
37 void FBUS3110_Terminate(void);
38 void FBUS3110_RX_StateMachine(unsigned char rx_byte);
40 #endif /* __FBUS3110_h */