This commit was manufactured by cvs2svn to create tag 'bp_uc'.
[gnokii.git] / include / protocol / fbus3110.h
1 /*
2
3   G N O K I I
4
5   A Linux/Unix toolset and driver for Nokia mobile phones.
6
7   Released under the terms of the GNU GPL, see file COPYING for more details.
8
9   Header file for the various functions, definitions etc. used to implement
10   the handset interface.
11
12 */
13
14 #ifndef __fbus3110_h
15 #define __fbus3110_h
16
17 #include "gsm-api.h"
18
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 */
23
24 #define FBUS3110_MAX_TRANSMIT_LENGTH (256)
25 #define FBUS3110_MAX_RECEIVE_LENGTH  (512)
26 #define FBUS3110_MAX_CONTENT_LENGTH  (120)
27
28 /* Global variables */
29 extern GSM_Protocol    FBUS3110_Functions;
30
31 GSM_Error FBUS3110_Initialise(char *port_device, char *initlength,
32                           GSM_ConnectionType connection,
33                           void (*rlp_callback)(RLP_F96Frame *frame));
34
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);
39
40 #endif /* __FBUS3110_h */