Get RS422/485 communication mode and termination resistance setting status of RAS port.
int MT_GetRS485DuplexInfo(int fd, unsigned char *ucDuplexMode, unsigned char *ucDuplexTerminate)
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 disable)(RS485_HALFDUPLEX_EC_READ) 0x01 : halfduplex_ec_write(read disable)(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
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
Only BX-220 Series, BX-830 Series are supported.
Function List