MT_SetDio

■Description

Controls the output state of RAS port or DIO port.

■Synopsis

int MT_SetDio(int fd,unsigned char ucDioPort)

■Argument

int fd
  Please specify handle acquired by MT_Open function.

unsigned char ucDioPort
  Set the output value.
  For BX-220 series, BX-830 series, bit0-bit2 of ucDoPort corresponds to PO0-PO2, respectively.
  For BX-956SD series, BX-T210 series, BX-M1500 series, BX-M2500 series and BX-T3000 series, bit0-bit5 of ucDoPort correspond to GPIO0-GPIO5, respectively. Also, the output value can be set only for the bit set as output by MT_SetDIODirection.
  For the BX-825 series, ucDoPort's bit0-bit7 correspond to GPO1-GPO8 respectively.
  For the BX-U200 series, ucDoPort's bit0-bit2 correspond to DIO0-DIO2 respectively.

■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