Go to the documentation of this file.
24 #ifndef __MODEM_MCONST_H
25 #define __MODEM_MCONST_H
47 #define MODEM_SPEED_AUTO 0x0
48 #define MODEM_SPEED_1200 0x0
49 #define MODEM_SPEED_2400 0x1
50 #define MODEM_SPEED_4800 0x2
51 #define MODEM_SPEED_7200 0x3
52 #define MODEM_SPEED_9600 0x4
53 #define MODEM_SPEED_12000 0x5
54 #define MODEM_SPEED_14400 0x6
55 #define MODEM_SPEED_16800 0x7
56 #define MODEM_SPEED_19200 0x8
57 #define MODEM_SPEED_21600 0x9
58 #define MODEM_SPEED_24000 0xA
59 #define MODEM_SPEED_26400 0xB
60 #define MODEM_SPEED_28000 0xC
61 #define MODEM_SPEED_31200 0xD
62 #define MODEM_SPEED_33600 0xE
77 #define MODEM_PROTOCOL_V17 0x0
78 #define MODEM_PROTOCOL_V22 0x1
79 #define MODEM_PROTOCOL_V22BIS 0x2
80 #define MODEM_PROTOCOL_V32 0x3
81 #define MODEM_PROTOCOL_V32BIS 0x4
82 #define MODEM_PROTOCOL_V34 0x5
83 #define MODEM_PROTOCOL_V8 0x6
91 #define MODEM_SPEED_GET_PROTOCOL(x) ((modem_speed_t)(x) >> 4)
98 #define MODEM_SPEED_GET_SPEED(x) ((modem_speed_t)(x) & 0xF)
107 #define MODEM_MAKE_SPEED(p, s) ((modem_speed_t)((((p) & 0xF) << 4) | ((s) & 0xF)))