KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
mconst.h File Reference

Constants used in the modem driver. More...

Go to the source code of this file.

Macros

#define MODEM_SPEED_AUTO   0x0
 
#define MODEM_SPEED_1200   0x0
 
#define MODEM_SPEED_2400   0x1
 
#define MODEM_SPEED_4800   0x2
 
#define MODEM_SPEED_7200   0x3
 
#define MODEM_SPEED_9600   0x4
 
#define MODEM_SPEED_12000   0x5
 
#define MODEM_SPEED_14400   0x6
 
#define MODEM_SPEED_16800   0x7
 
#define MODEM_SPEED_19200   0x8
 
#define MODEM_SPEED_21600   0x9
 
#define MODEM_SPEED_24000   0xA
 
#define MODEM_SPEED_26400   0xB
 
#define MODEM_SPEED_28000   0xC
 
#define MODEM_SPEED_31200   0xD
 
#define MODEM_SPEED_33600   0xE
 
#define MODEM_PROTOCOL_V17   0x0
 
#define MODEM_PROTOCOL_V22   0x1
 
#define MODEM_PROTOCOL_V22BIS   0x2
 
#define MODEM_PROTOCOL_V32   0x3
 
#define MODEM_PROTOCOL_V32BIS   0x4
 
#define MODEM_PROTOCOL_V34   0x5
 
#define MODEM_PROTOCOL_V8   0x6
 
#define MODEM_SPEED_GET_PROTOCOL(x)   ((modem_speed_t)(x) >> 4)
 Extract the protocol from a full speed/protocol value.
 
#define MODEM_SPEED_GET_SPEED(x)   ((modem_speed_t)(x) & 0xF)
 Extract the speed from a full speed/protocol value.
 
#define MODEM_MAKE_SPEED(p, s)   ((modem_speed_t)((((p) & 0xF) << 4) | ((s) & 0xF)))
 Combine a protocol and speed into a single value.
 

Typedefs

typedef unsigned char modem_speed_t
 Modem speed/protocol value type.
 

Detailed Description

Constants used in the modem driver.

This file contains constants that are used for the modem driver. You should not ever need to include this file directly, as the main modem driver header file includes it automatically.

Generally, you will not need to use the stuff in this file yourself at all, as the main modem header file defines many useful combinations for you.

Author
Nick Kochakian