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 fbus-6110.c for more details.
19 /* This byte is at the beginning of all GSM Frames sent over FBUS to Nokia
21 #define FBUS_FRAME_ID 0x1e
23 /* This byte is at the beginning of all GSM Frames sent over infrared to Nokia
25 #define FBUS_IR_FRAME_ID 0x1c
27 #define FBUS_DEVICE_PHONE 0x00 /* Nokia mobile phone. */
28 #define FBUS_DEVICE_PC 0x0c /* Our PC (FBUS). */
30 #define FBUS_FRTYPE_ACK 0x7f /* Acknowledge of the received frame. */
32 #define FBUS_MAX_TRANSMIT_LENGTH (256)
33 #define FBUS_MAX_RECEIVE_LENGTH (512)
34 #define FBUS_MAX_CONTENT_LENGTH (120)
36 /* Global variables */
37 extern GSM_Protocol FBUS_Functions;
39 /* States for receive code. */
44 FBUS_RX_GetDestination,
52 GSM_Error FBUS_Initialise(char *port_device, char *initlength,
53 GSM_ConnectionType connection,
54 void (*rlp_callback)(RLP_F96Frame *frame));
56 int FBUS_SendMessage(u16 message_length, u8 message_type, u8 *buffer);
57 int FBUS_SendFrame(u16 message_length, u8 message_type, u8 *buffer);
58 void FBUS_Terminate(void);
59 void FBUS_RX_StateMachine(unsigned char rx_byte);