Home
last modified time | relevance | path

Searched full:coil (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/samples/subsys/modbus/rtu_client/src/
Dmain.c41 uint8_t coil[1] = {0}; in main() local
72 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in main()
78 LOG_INF("Coils state 0x%02x", coil[0]); in main()
101 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in main()
107 LOG_INF("Coils state 0x%02x", coil[0]); in main()
109 coil[0] = 0; in main()
110 err = modbus_write_coils(client_iface, node, 0, coil, coil_qty); in main()
/Zephyr-latest/tests/subsys/modbus/src/
Dtest_modbus_client.c28 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()
[all …]
Dtest_modbus_server.c37 LOG_DBG("Coil read, addr %u, %d", addr, (int)*state); in coil_rd()
54 LOG_DBG("Coil write, addr %u, %d", addr, (int)state); in coil_wr()
155 /** Coil read/write callback */
/Zephyr-latest/include/zephyr/modbus/
Dmodbus.h90 * @brief Coil read (FC01)
96 * @param start_addr Coil starting address
109 * Note that the array that will be receiving the coil
203 * @brief Write single coil (FC05)
205 * Sends a Modbus message to write the value of single coil to a server.
210 * @param coil_state Is the desired state of the coil
276 * Note that the array that will be receiving the coil
360 /** Coil read callback */
363 /** Coil write callback */
/Zephyr-latest/subsys/modbus/
Dmodbus_server.c105 * Coil status N * 1 Byte
158 /* Loop through each coil requested. */ in mbs_fc01_coil_read()
163 LOG_INF("Coil address not supported"); in mbs_fc01_coil_read()
173 /* Increment coil counter. */ in mbs_fc01_coil_read()
518 * FC 05 (0x05) Write Single Coil
549 /* Get the desired coil address and coil value */ in mbs_fc05_coil_write()
553 /* See if coil needs to be OFF? */ in mbs_fc05_coil_write()
563 LOG_INF("Coil address not supported"); in mbs_fc05_coil_write()
771 /* The 1st coil data byte is 6th element in payload */ in mbs_fc15_coils_write()
773 /* Loop through each coil to be forced. */ in mbs_fc15_coils_write()
[all …]
/Zephyr-latest/samples/subsys/modbus/rtu_server/src/
Dmain.c38 LOG_INF("Coil read, addr %u, %d", addr, (int)*state); in coil_rd()
62 LOG_INF("Coil write, addr %u, %d", addr, (int)state); in coil_wr()
/Zephyr-latest/dts/bindings/regulator/
Dnordic,npm2100-regulator.yaml81 DPS coil pulse limit per refresh cycle.
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/
Dmain.c98 LOG_INF("Coil read, addr %u, %d", addr, (int)*state); in coil_rd()
121 LOG_INF("Coil write, addr %u, %d", addr, (int)state); in coil_wr()
/Zephyr-latest/dts/bindings/stepper/adi/
Dadi,trinamic-ramp-generator.yaml86 In combination with StealthChop mode, setting IHOLD=0 allows to choose freewheeling or coil
/Zephyr-latest/drivers/stepper/
Dgpio_stepper_controller.c89 LOG_ERR("Failed to power down coil %d", i); in power_down_coils()