stepRocker Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Functions
RS485.h File Reference

Motor monitoring. More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Motor monitoring.

Author
Trinamic Motion Control GmbH & Co KG
Version
2.20

This file contains the definitions of the RS485 functions.

Function Documentation

UINT CheckUARTTimeout ( void  )

Check and reset RS485 timeout flag.

Returns
TRUE if there has been a timeout (>5ms after last received byte)
FALSE if there has not been a timeout since the last call of this function

This function checks the timeout flag and then resets it.

Here is the caller graph for this function:

void InitRS485 ( UCHAR  baudrateIndex)

Initalize RS485 interface.

Parameters
Baudratebaud rate code (0..11)

This function initializes the RS485 interface. The baud rate codes are the same as with TMCL.

Here is the caller graph for this function:

void SetUARTTransmitDelay ( UINT  Delay)

Set RS485 transmit delay.

Parameters
DelayDelay 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.

Here is the caller graph for this function: