Advantech ADAM-5511 Manual page 270

Table of Contents

Advertisement

Detect Installed Port
Detects which ports have been installed
int which_has_been_installed(void)
portno
Port mask which has been installed
EX.
0x2353 (0010-0011-0101-0011B)
The port01,02,11,13,21,22,32 have been installed
0x0082 (0000-0000-1000-0010B)
The port02,14 have been installed
void main ()
{
int Flag;
//here we install port1, 12, 23
port_install(1);
port_install(12);
port_install(23);
//set flat as the return value
Flag=which_has_been_install();
//Flag must be 0000-0100-0010-0001B
}
The specified port number

Advertisement

Table of Contents
loading

Table of Contents