Lydia - Printhead
|
Functions | |
void | Modbus::begin (long u32speed) |
Initialize class object. More... | |
void | Modbus::begin (long u32speed, uint8_t u8config) |
Initialize class object. More... | |
void | Modbus::begin (SoftwareSerial *sPort, long u32speed) |
Initialize class object. More... | |
uint8_t | Modbus::getID () |
get slave ID between 1 and 247 More... | |
Modbus::Modbus () | |
Default Constructor for Master through Serial. More... | |
void | Modbus::setID (uint8_t u8id) |
write new ID for the slave More... | |
void | Modbus::setTimeOut (uint16_t u16timeout) |
write communication watch-dog timer More... | |
void Modbus::begin | ( | long | u32speed | ) |
Initialize class object.
Sets up the serial port using specified baud rate. Call once class has been instantiated, typically within setup().
speed | baud rate, in standard increments (300..115200) |
Definition at line 298 of file ModbusRtu.h.
void Modbus::begin | ( | long | u32speed, |
uint8_t | u8config | ||
) |
Initialize class object.
Sets up the serial port using specified baud rate. Call once class has been instantiated, typically within setup().
speed | baud rate, in standard increments (300..115200) |
config | data frame settings (data length, parity and stop bits) |
Definition at line 395 of file ModbusRtu.h.
void Modbus::begin | ( | SoftwareSerial * | sPort, |
long | u32speed | ||
) |
Initialize class object.
Sets up the software serial port using specified baud rate and SoftwareSerial object. Call once class has been instantiated, typically within setup().
speed | *softPort, pointer to SoftwareSerial class object |
speed | baud rate, in standard increments (300..115200) |
Definition at line 360 of file ModbusRtu.h.
uint8_t Modbus::getID | ( | ) |
get slave ID between 1 and 247
Method to read current slave ID address.
Definition at line 477 of file ModbusRtu.h.
Modbus::Modbus | ( | ) |
Default Constructor for Master through Serial.
Definition at line 228 of file ModbusRtu.h.
void Modbus::setID | ( | uint8_t | u8id | ) |
void Modbus::setTimeOut | ( | uint16_t | u16timeOut | ) |
write communication watch-dog timer
Initialize time-out parameter.
Call once class has been instantiated, typically within setup(). The time-out timer is reset each time that there is a successful communication between Master and Slave. It works for both.
time-out | value (ms) |
Definition at line 493 of file ModbusRtu.h.