RAS port, DIO port input status is acquired.
int MT_GetDio(int fd, unsigned char *ucDioPort)
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. The acquired values correspond to PI 0 to PI 2 for the BX-220 Series and BX-830 Series, and bit 0 to bit 2 correspond to PI 0 to PI 2, respectively. The acquired values correspond to GPIO 0 to GPIO 5 for BX-956SD Series, BX-T210 Series, BX-M1500 Series, BX-M2500 Series, BX-T3000 Series, BX-T310-J Series and BX-M310-J Series, and bit 0 to bit 5 correspond to GPIO 0 to GPIO 5, respectively. The acquired values correspond to general-purpose input 1-general-purpose input 7 in the case of BX-825 Series, respectively. The acquired values correspond to DIO0 to DIO2 for BX-U200 Series, and bit 0 to bit 2 correspond to DIO0 to DIO2, respectively.
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