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 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, BX-T210, BX-M1500, BX-M2500 and BX-T3000 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