MT_SetRS485HalfDuplex

■Description

Set RS422/485 of RAS port to half duplex communication mode.

■Synopsis

int MT_SetRS485HalfDuplex(int fd, unsigned char ucMode)

■Argument

int fd
  Please specify handle acquired by MT_Open function.

unsigned char ucMode
  0x08 : halfduplex_rts(RS485_HALFDUPLEX_RTS)
  0x02 : halfduplex_ec_read(write disable)(RS485_HALFDUPLEX_EC_READ)
  0x01 : halfduplex_ec_write(read disable)(RS485_HALFDUPLEX_EC_WRITE)

■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

■Note

Only BX-220 Series, BX-830 Series are supported.



Function List