stepRocker servo 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) |
Write to the RS485 interface. More... | |
UCHAR | ReadRS485 (UCHAR *Byte) |
Read from the RS485 interface. More... | |
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.
ReadRS485 | ( | UCHAR * | Byte | ) |
Read from the RS485 interface.
Byte | Pointer to variable for result |
This function tries to read a byte from the RS485 receive buffer.
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.
WriteRS485 | ( | UCHAR | Byte | ) |
Write to the RS485 interface.
Byte | Byte to be written |
This function puts a byte into the RS485 transmit buffer and starts sending if not already done.