Lines Matching refs:num_bytes
511 size_t num_bytes; in modbus_write_coils() local
525 num_bytes = (uint8_t)(((num_coils - 1) / 8) + 1); in modbus_write_coils()
526 ctx->tx_adu.data[4] = num_bytes; in modbus_write_coils()
527 length += num_bytes + 1; in modbus_write_coils()
538 memcpy(data_ptr, coil_tbl, num_bytes); in modbus_write_coils()
555 size_t num_bytes; in modbus_write_holding_regs() local
569 num_bytes = num_regs * sizeof(uint16_t); in modbus_write_holding_regs()
570 ctx->tx_adu.data[4] = num_bytes; in modbus_write_holding_regs()
571 length += num_bytes + 1; in modbus_write_holding_regs()
603 size_t num_bytes; in modbus_write_holding_regs_fp() local
618 num_bytes = num_regs * sizeof(float); in modbus_write_holding_regs_fp()
619 ctx->tx_adu.data[4] = num_bytes; in modbus_write_holding_regs_fp()
620 length += num_bytes + 1; in modbus_write_holding_regs_fp()