MT_GetRS485DuplexInfo

■Description

Get RS422/485 communication mode and termination resistance setting status of RAS port.

■Synopsis

int MT_GetRS485DuplexInfo(int fd,unsigned char *ucDuplexMode,unsigned char *ucDuplexTerminate)

■Argument

int fd
  Please specify handle acquired by MT_Open function.

unsigned char *ucDuplexMode
  Specify Pointer to the buffer that stores the communication mode setting information.
  0x00 : fullduplex(RS485_FULLDUPLEX)
  0x08 : halfduplex_rts(RS485_HALFDUPLEX_RTS)
  0x02 : halfduplex_ec_read(write desable)(RS485_HALFDUPLEX_EC_READ)
  0x01 : halfduplex_ec_write(read desable)(RS485_HALFDUPLEX_EC_WRITE)

unsigned char *ucDuplexTerminate
  Specify Pointer to the buffer that stores the termination resistance setting information.
  1:Terminating resistance enabled
  0:Terminating resistance disabled

■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-220D series, BX-830 series are supported.



Function List