ModbusMaster
v2.0.1
Arduino library for communicating with Modbus slaves over RS232/485 (via RTU protocol).
|
Functions | |
uint16_t | ModbusMaster::getResponseBuffer (uint8_t) |
Retrieve data from response buffer. More... | |
void | ModbusMaster::clearResponseBuffer () |
Clear Modbus response buffer. More... | |
uint8_t | ModbusMaster::setTransmitBuffer (uint8_t, uint16_t) |
Place data in transmit buffer. More... | |
void | ModbusMaster::clearTransmitBuffer () |
Clear Modbus transmit buffer. More... | |
uint16_t ModbusMaster::getResponseBuffer | ( | uint8_t | u8Index | ) |
Retrieve data from response buffer.
u8Index | index of response buffer array (0x00..0x3F) |
void ModbusMaster::clearResponseBuffer | ( | ) |
Clear Modbus response buffer.
uint8_t ModbusMaster::setTransmitBuffer | ( | uint8_t | u8Index, |
uint16_t | u16Value | ||
) |
Place data in transmit buffer.
u8Index | index of transmit buffer array (0x00..0x3F) |
u16Value | value to place in position u8Index of transmit buffer (0x0000..0xFFFF) |
void ModbusMaster::clearTransmitBuffer | ( | ) |
Clear Modbus transmit buffer.