|
Commonly used RS485-related functions used by drivers. More...
#include "timer.h"
Go to the source code of this file.
Functions | |
bool | RS485write (tMassiveArray &buf, ubyte len) |
bool | RS485read (tMassiveArray &buf, int &len, int timeout=100) |
bool | RS485readLargeResponse (tMassiveArray &buf, int &len, int timeout=100) |
int | RS485appendToBuff (tMassiveArray &buf, const short index, const ubyte *pData, const short nLength) |
int | RS485appendToBuff (tMassiveArray &buf, const short index, string pData) |
void | RS485initLib (long baudrate=230400) |
void | RS485clearRead (bool sendnewline=false) |
bool | RS485sendString (string &data) |
bool | RS485sendString (char *data) |
Variables | |
int | rxTimer |
const ubyte | newline [1] = '\n' |
tMassiveArray | RS485rxbuffer |
tMassiveArray | RS485txbuffer |
Commonly used RS485-related functions used by drivers.
common-rs485.h provides a number of frequently used RS485-related functions that are useful for writing drivers. License: You may use this code as you wish, provided you give credit where its due.
THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.
Changelog:
Definition in file common-rs485.h.