mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
17 lines
408 B
C
17 lines
408 B
C
// Serial multiplexer definitions
|
|
|
|
#ifndef __SERMUX_H__
|
|
#define __SERMUX_H__
|
|
|
|
#define SERMUX_SERVICE_ID_FIRST 0xD0
|
|
#define SERMUX_SERVICE_ID_LAST 0xD7
|
|
#define SERMUX_SERVICE_MAX ( SERMUX_SERVICE_ID_LAST - SERMUX_SERVICE_ID_FIRST + 1 )
|
|
|
|
#define SERMUX_ESCAPE_CHAR 0xC0
|
|
#define SERMUX_FORCE_SID_CHAR 0xFF
|
|
|
|
#define SERMUX_ESCAPE_XOR_MASK 0x20
|
|
#define SERMUX_ESC_MASK 0x100
|
|
|
|
#endif
|