Export the GSM 07.10 status flags

This commit is contained in:
Marcel Holtmann 2009-09-08 08:26:48 +02:00
parent 2ee7f4a6f8
commit 3a0518ec27
2 changed files with 9 additions and 8 deletions

View File

@ -40,14 +40,6 @@
#define GSM0710_TERMINATE_BYTE1 0xC3
#define GSM0710_TERMINATE_BYTE2 0x01
/* Status flags */
#define GSM0710_FC 0x02
#define GSM0710_DTR 0x04
#define GSM0710_DSR 0x04
#define GSM0710_RTS 0x08
#define GSM0710_CTS 0x08
#define GSM0710_DCD 0x80
/* Initialize a GSM 07.10 context, in preparation for startup */
void gsm0710_initialize(struct gsm0710_context *ctx)
{

View File

@ -31,9 +31,18 @@ extern "C" {
#define GSM0710_DEFAULT_FRAME_SIZE 31
#define GSM0710_MAX_CHANNELS 63
/* Multiplexer modes */
#define GSM0710_MODE_BASIC 0
#define GSM0710_MODE_ADVANCED 1
/* Status flags */
#define GSM0710_FC 0x02
#define GSM0710_DTR 0x04
#define GSM0710_DSR 0x04
#define GSM0710_RTS 0x08
#define GSM0710_CTS 0x08
#define GSM0710_DCD 0x80
struct gsm0710_context
{
/* GSM 07.10 implementation details */