Home
last modified time | relevance | path

Searched refs:reg_discrete_start (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/common/
Desp_modbus_slave.c448 uint16_t reg_discrete_start = (uint16_t)it->start_offset; // MB offset of registers in mbc_reg_discrete_slave_cb() local
451 …reg_index = (uint16_t) (address - reg_discrete_start) / 8; // Get register index in the buffer for… in mbc_reg_discrete_slave_cb()
452 reg_bit_index = (uint16_t)(address - reg_discrete_start) % 8; // Get bit index in mbc_reg_discrete_slave_cb()