@CHIP-RTOS C Library V2.00 - Fossil API
fossil_set_rs485
Enable/Disable RS485 mode. void fossil_set_rs485 ( int port, RS485_MODE mode); Parameters
port
- Port specifier: FOSSIL_EXT = 0 for EXT port,
FOSSIL_COM = 1 for COM port
mode
- RS 485 mode enumerator:
FOSSIL_RS485_LOWACTIVE = 0: TxEnable low active
FOSSIL_RS485_HIGHACTIVE = 1: TxEnable high active
FOSSIL_RS485_DISABLE = 2: Disable RS485 mode
Return Value
- -- none --
Comments
- By default the RTS0 and RTS1 signals (pins) are used to
enable/disable the respective (EXT or COM) transmitter. (TxEnable)
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|