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-956S Series, BX-T210 Series, BX-M1500 Series, BX-M2500 Series, BX-T3000 Series, BX-T310-J Series and BX-M310-J 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