User manual
143
ctrl
-
pointer to CHAPI serial line controller instance
p_serial_l_i
–
place to put created CHAPI serial line instance
line_id
–
CHAPI serial line instance number
In implemented CHAPI serial line controllers and CHAPI serial lines used predefined
options.
Modem signals definitions:
#define R_T_S (0x01 << 0)
#define D_T_R (0x01 << 1)
#define D_C_D (0x01 << 2)
#define C_T_S (0x01 << 3)
#define D_S_R (0x01 << 4)
#define R_I_N_G (0x01 << 5)
RX errors definitions:
#define LINE_ERROR_BREAK (0x01 << 0)
#define LINE_ERROR_OVER (0x01 << 1)
#define LINE_ERROR_FRAMING (0x01 << 2)
#define LINE_ERROR_PARITY (0x01 << 3)
Break controls definitions:
#define START_BREAK 1
#define STOP_BREAK 0
Flow control definitions:
#define NONE_FLOW_CONTROL 0x00
#define XON_XOFF_FLOW_CONTROL (0x01 << 0)
#define DTR_DSR_FLOW_CONTROL (0x01 << 1)
#define RTS_CTS_FLOW_CONTROL (0x01 << 2)
Parity control definitions:
#define PARITY_CONTROL_NONE 0x00
#define PARITY_CONTROL_EVEN (0x01 << 0)
#define PARITY_CONTROL_ODD (0x01 << 1)
#define PARITY_CONTROL_MARK (0x01 << 2)
#define PARITY_CONTROL_SPACE (0x01 << 3)
Extra features definition:
#define EXTRA_LINE_SETUP (0x01 << 0)










