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. See mbus-6110.c for more details.
19 /* This byte is at the beginning of all GSM Frames sent over MBUS to Nokia
21 #define MBUS_FRAME_ID 0x1f
24 #define MBUS_DEVICE_PC1 0x10
25 #define MBUS_DEVICE_PC2 0x1d
27 #define MBUS_MAX_TRANSMIT_LENGTH (1000)
28 #define MBUS_MAX_RECEIVE_LENGTH (1000)
29 #define MBUS_MAX_CONTENT_LENGTH (1000)
31 /* Global variables */
32 extern GSM_Protocol MBUS_Functions;
34 GSM_Error MBUS_Initialise(char *port_device, char *initlength,
35 GSM_ConnectionType connection,
36 void (*rlp_callback)(RLP_F96Frame *frame));
38 int MBUS_SendMessage(u16 message_length, u8 message_type, u8 *buffer);
39 int MBUS_SendFrame(u16 message_length, u8 message_type, u8 *buffer);
40 void MBUS_Terminate(void);
41 bool MBUS_WritePhone (u16 length, u8 *buffer);
42 void MBUS_RX_StateMachine(unsigned char rx_byte);