Lines Matching refs:num_regs
347 const uint16_t num_regs) in modbus_read_holding_regs() argument
360 sys_put_be16(num_regs, &ctx->tx_adu.data[2]); in modbus_read_holding_regs()
374 const uint16_t num_regs) in modbus_read_holding_regs_fp() argument
388 sys_put_be16(num_regs * 2, &ctx->tx_adu.data[2]); in modbus_read_holding_regs_fp()
401 const uint16_t num_regs) in modbus_read_input_regs() argument
414 sys_put_be16(num_regs, &ctx->tx_adu.data[2]); in modbus_read_input_regs()
550 const uint16_t num_regs) in modbus_write_holding_regs() argument
566 sys_put_be16(num_regs, &ctx->tx_adu.data[2]); in modbus_write_holding_regs()
567 length += sizeof(num_regs); in modbus_write_holding_regs()
569 num_bytes = num_regs * sizeof(uint16_t); in modbus_write_holding_regs()
582 for (uint16_t i = 0; i < num_regs; i++) { in modbus_write_holding_regs()
598 const uint16_t num_regs) in modbus_write_holding_regs_fp() argument
615 sys_put_be16(num_regs * 2, &ctx->tx_adu.data[2]); in modbus_write_holding_regs_fp()
616 length += sizeof(num_regs); in modbus_write_holding_regs_fp()
618 num_bytes = num_regs * sizeof(float); in modbus_write_holding_regs_fp()
631 for (uint16_t i = 0; i < num_regs; i++) { in modbus_write_holding_regs_fp()