Lydia - Printhead
|
Functions | |
void | Modbus::buildException (uint8_t u8exception) |
This method builds an exception message. More... | |
uint16_t | Modbus::calcCRC (uint8_t u8length) |
This method calculates CRC. More... | |
uint16_t | Modbus::getErrCnt () |
error counter More... | |
uint16_t | Modbus::getInCnt () |
number of incoming messages More... | |
uint8_t | Modbus::getLastError () |
get last error message More... | |
uint16_t | Modbus::getOutCnt () |
number of outcoming messages More... | |
int8_t | Modbus::getRxBuffer () |
This method moves Serial buffer data to the Modbus au8Buffer. More... | |
uint8_t | Modbus::getState () |
void | Modbus::sendTxBuffer () |
This method transmits au8Buffer to Serial line. Only if u8txenpin != 0, there is a flow handling in order to keep the RS485 transceiver in output state as long as the message is being sent. This is done with UCSRxA register. The CRC is appended to the buffer before starting to send it. More... | |
uint8_t | Modbus::validateAnswer () |
This method validates master incoming messages. More... | |
uint8_t | Modbus::validateRequest () |
This method validates slave incoming messages. More... | |
|
private |
|
private |
This method calculates CRC.
Definition at line 1096 of file ModbusRtu.h.
uint16_t Modbus::getErrCnt | ( | ) |
error counter
Get errors counter value This can be useful to diagnose communication.
Definition at line 545 of file ModbusRtu.h.
uint16_t Modbus::getInCnt | ( | ) |
number of incoming messages
Get input messages counter value This can be useful to diagnose communication.
Definition at line 519 of file ModbusRtu.h.
uint8_t Modbus::getLastError | ( | ) |
get last error message
Get the last error in the protocol processor
@returnreturn NO_REPLY = 255 Time-out
Definition at line 575 of file ModbusRtu.h.
uint16_t Modbus::getOutCnt | ( | ) |
number of outcoming messages
Get transmitted messages counter value This can be useful to diagnose communication.
Definition at line 532 of file ModbusRtu.h.
|
private |
This method moves Serial buffer data to the Modbus au8Buffer.
Definition at line 905 of file ModbusRtu.h.
uint8_t Modbus::getState | ( | ) |
Get modbus master state
Definition at line 561 of file ModbusRtu.h.
|
private |
This method transmits au8Buffer to Serial line. Only if u8txenpin != 0, there is a flow handling in order to keep the RS485 transceiver in output state as long as the message is being sent. This is done with UCSRxA register. The CRC is appended to the buffer before starting to send it.
nothing |
Definition at line 962 of file ModbusRtu.h.
|
private |
This method validates master incoming messages.
Definition at line 1201 of file ModbusRtu.h.
|
private |
This method validates slave incoming messages.
Definition at line 1128 of file ModbusRtu.h.