NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char RS485Uart ( byte  baud,
unsigned int  mode 
)
inline

Configure RS485 UART.

Configure the RS485 UART parameters, including baud rate, data bits, stop bits, and parity.

Parameters
baudThe baud rate for the RS485 port. See Hi-speed port baud rate constants.
modeThe RS485 port mode (data bits, stop bits, parity). See Hi-speed port data bits constants, Hi-speed port stop bits constants, Hi-speed port parity constants, and Hi-speed port combined UART constants.
Returns
A char value indicating whether the function call succeeded or not.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_RS485Receive.nxc, and ex_RS485Send.nxc.