Advantech ADAM-5511 Manual page 277

Table of Contents

Advertisement

Read LSR
Set LCR
Read from specified port line status register (LSR)
Write to specific port line control register (LCR)
int port_get_line_status(int portno)
int port_set_line_params(int portno, int lineparams)
portno
lineparams
port_get_line_status
port_set_line_params
The specified port number
Line control register parameter
(see UART Register Description Table)
:
0x00XX
:
LSR value
0xFF00
:
bad command or parameter
:
0x00
:
write success
0x01
:
LCR read back error
0xFE00
:
LCR write not able
0xFF00
:
bad command or parameter

Advertisement

Table of Contents
loading

Table of Contents