Lines Matching full:coil
28 uint8_t coil[3] = {0}; in test_coil_wr_rd() local
36 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in test_coil_wr_rd()
39 zassert_equal(coil[0], 0xff, "FC05 verify coil 0-7 failed"); in test_coil_wr_rd()
40 zassert_equal(coil[1], 0xff, "FC05 verify coil 8-15 failed"); in test_coil_wr_rd()
43 err = modbus_write_coils(client_iface, node, 0, coil, numof); in test_coil_wr_rd()
47 coil[0] = 0xaa; coil[1] = 0xbb; in test_coil_wr_rd()
48 err = modbus_write_coils(client_iface, node, 0, coil, coil_qty); in test_coil_wr_rd()
51 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in test_coil_wr_rd()
54 zassert_equal(coil[0], 0xaa, "FC15 verify coil 0-7 failed"); in test_coil_wr_rd()
55 zassert_equal(coil[1], 0xbb, "FC15 verify coil 8-15 failed"); in test_coil_wr_rd()
60 err = modbus_write_coils(client_iface, node, offset_oor, coil, coil_qty); in test_coil_wr_rd()