|
satnogs-rotator-firmware
|
Class that functions for interacting with a RS485 transceiver. More...
#include <rs485.h>
Public Member Functions | |
| rs485 (uint8_t pin_dir, uint16_t tx_time) | |
| void | begin (uint16_t baudrate) |
| Initialize the RS485 transceiver. | |
| void | print (String str) |
| Print a string to RS485 bus. | |
| uint8_t | read () |
| Read a char/uint8_t from RS485 bus. | |
| uint8_t | available (void) |
| The number of chars/uint8_t that are available in RS485 buffer. | |
| void | flush () |
| Waits for the transmission of outgoing serial data to complete. | |
| void | end () |
| Disables RS485 communication. | |
Private Attributes | |
| uint8_t | _pin_dir |
| uint16_t | _tx_time |
Class that functions for interacting with a RS485 transceiver.
| pin_dir | Digital pin, to set read or write to RS485 bus |
| tx_time | Time delay in ms in order to transmit and change the status of direction pin |
|
inline |
|
inline |
The number of chars/uint8_t that are available in RS485 buffer.
Definition at line 75 of file rs485.h.
Referenced by easycomm::easycomm_proc().
|
inline |
Initialize the RS485 transceiver.
| baudrate | Set the baudrate of RS485 bus |
Definition at line 40 of file rs485.h.
References _pin_dir.
Referenced by easycomm::easycomm_init().
|
inline |
Waits for the transmission of outgoing serial data to complete.
Definition at line 84 of file rs485.h.
Referenced by easycomm::easycomm_proc().
|
inline |
Print a string to RS485 bus.
| str | A String to transmit |
Definition at line 52 of file rs485.h.
References _pin_dir, and _tx_time.
Referenced by easycomm::easycomm_proc().
|
inline |
Read a char/uint8_t from RS485 bus.
Definition at line 65 of file rs485.h.
Referenced by easycomm::easycomm_proc().
|
private |
|
private |