Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/freemodbus/common/
Desp_modbus_slave.c432 eMBErrorCode mbc_reg_discrete_slave_cb(UCHAR* reg_buffer, USHORT address, USHORT n_discrete) in mbc_reg_discrete_slave_cb() argument
446 mb_descr_entry_t* it = mbc_slave_find_reg_descriptor(MB_PARAM_DISCRETE, address, n_discrete); in mbc_reg_discrete_slave_cb()
449 n_reg = (n_discrete >> 3) + 1; in mbc_reg_discrete_slave_cb()
460 n_discrete = n_discrete % 8; in mbc_reg_discrete_slave_cb()
462 *reg_buffer = *reg_buffer << (8 - n_discrete); in mbc_reg_discrete_slave_cb()
463 *reg_buffer = *reg_buffer >> (8 - n_discrete); in mbc_reg_discrete_slave_cb()
467 (uint8_t*)temp_buf, (uint16_t)n_discrete); in mbc_reg_discrete_slave_cb()