stepRocker Open Source TMCL
1.00
|
Motor monitoring. More...
Go to the source code of this file.
Functions | |
void | InitRS485 (UCHAR Baudrate) |
Initalize RS485 interface. More... | |
void | WriteRS485 (UCHAR Byte) |
UCHAR | ReadRS485 (UCHAR *Byte) |
void | SetUARTTransmitDelay (UINT Delay) |
Set RS485 transmit delay. More... | |
UINT | CheckUARTTimeout (void) |
Check and reset RS485 timeout flag. More... | |
Motor monitoring.
This file contains the definitions of the RS485 functions.
UINT CheckUARTTimeout | ( | void | ) |
Check and reset RS485 timeout flag.
This function checks the timeout flag and then resets it.
void InitRS485 | ( | UCHAR | baudrateIndex | ) |
Initalize RS485 interface.
Baudrate | baud rate code (0..11) |
This function initializes the RS485 interface. The baud rate codes are the same as with TMCL.
void SetUARTTransmitDelay | ( | UINT | Delay | ) |
Set RS485 transmit delay.
Delay | Delay in ms |
This function sets the delay between receiving the last byte and sending the first byte. This can be necessary with some RS485 interfaces.