Advantech ADAM-5511 Manual page 291

Table of Contents

Advertisement

Receive Error Check
Check whether receive error or not
int port_rx_error(int portno)
portno
void main ()
{
int Err_Value;
port_install(1);
:
:
//get error check value; if error, print out the message
Err_Value=port_rx_error(1);
If(Err_Value)
{
printf("\n Rx Error, The LSR value=%X", Err_Value);
}
}
The specified port number
0 : no error
0x00XX : receive error and return LSR value

Advertisement

Table of Contents
loading

Table of Contents