Searched refs:di_qty (Results 1 – 2 of 2) sorted by relevance
| /Zephyr-latest/tests/subsys/modbus/src/ |
| D | test_modbus_client.c | 66 const uint8_t di_qty = 16; in test_di_rd() local 70 err = modbus_read_dinputs(client_iface, node, 0, di, di_qty); in test_di_rd() 76 err = modbus_read_dinputs(client_iface, node, 0, di, di_qty + 1); in test_di_rd() 79 err = modbus_read_dinputs(client_iface, node, offset_oor, di, di_qty); in test_di_rd()
|
| /Zephyr-latest/subsys/modbus/ |
| D | modbus_server.c | 214 uint16_t di_qty; in mbs_fc02_di_read() local 230 di_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc02_di_read() 233 if (di_qty == 0 || di_qty > di_limit) { in mbs_fc02_di_read() 240 num_bytes = ((di_qty - 1) / 8) + 1; in mbs_fc02_di_read() 260 while (di_cntr < di_qty) { in mbs_fc02_di_read()
|