MT_GetDio

■Description

DIO port input/output status is acquired.

■Synopsis

int MT_GetDio(int fd, unsigned char *ucDioPort)

■Argument

  int fd
    Please specify handle acquired by MT_Open function.

  unsigned char *ucDioPort
    You can specify a Pointer to a variable that stores the input state to be acquired.

    About VPC-5000-J, VPC-3100, VPC-1700, VPC-3200, VPC-1800
    (DIO)
      
bit 7 6 5 4 3 2 1 0
PORT - - O1 O0 I3 I2 I1 I0

■RETURN VALUE

If the function succeeds, NO_ERROR is returned.
If the function fails, a code other than NO_ERROR is returned.
The other errors : Error code details



Function List