|
ModbusFunctionCode | esphome::modbus_controller::modbus_register_read_function (ModbusRegisterType reg_type) |
|
ModbusFunctionCode | esphome::modbus_controller::modbus_register_write_function (ModbusRegisterType reg_type) |
|
uint8_t | esphome::modbus_controller::c_to_hex (char c) |
|
uint8_t | esphome::modbus_controller::byte_from_hex_str (const std::string &value, uint8_t pos) |
| Get a byte from a hex string hex_byte_from_str("1122",1) returns uint_8 value 0x22 == 34 hex_byte_from_str("1122",0) returns 0x11. More...
|
|
uint16_t | esphome::modbus_controller::word_from_hex_str (const std::string &value, uint8_t pos) |
| Get a word from a hex string. More...
|
|
uint32_t | esphome::modbus_controller::dword_from_hex_str (const std::string &value, uint8_t pos) |
| Get a dword from a hex string. More...
|
|
uint64_t | esphome::modbus_controller::qword_from_hex_str (const std::string &value, uint8_t pos) |
| Get a qword from a hex string. More...
|
|
template<typename T > |
T | esphome::modbus_controller::get_data (const std::vector< uint8_t > &data, size_t buffer_offset) |
| Extract data from modbus response buffer. More...
|
|
bool | esphome::modbus_controller::coil_from_vector (int coil, const std::vector< uint8_t > &data) |
| Extract coil data from modbus response buffer Responses for coil are packed into bytes . More...
|
|
template<typename N > |
N | esphome::modbus_controller::mask_and_shift_by_rightbit (N data, uint32_t mask) |
| Extract bits from value and shift right according to the bitmask if the bitmask is 0x00F0 we want the values frrom bit 5 - 8. More...
|
|
void | esphome::modbus_controller::number_to_payload (std::vector< uint16_t > &data, int64_t value, SensorValueType value_type) |
| Convert float value to vector<uint16_t> suitable for sending. More...
|
|
int64_t | esphome::modbus_controller::payload_to_number (const std::vector< uint8_t > &data, SensorValueType sensor_value_type, uint8_t offset, uint32_t bitmask) |
| Convert vector<uint8_t> response payload to number. More...
|
|
float | esphome::modbus_controller::payload_to_float (const std::vector< uint8_t > &data, const SensorItem &item) |
| Convert vector<uint8_t> response payload to float. More...
|
|
std::vector< uint16_t > | esphome::modbus_controller::float_to_payload (float value, SensorValueType value_type) |
|