Home
last modified time | relevance | path

Searched refs:coils_state (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/subsys/modbus/rtu_server/src/
Dmain.c18 static uint8_t coils_state; variable
32 if (coils_state & BIT(addr)) { in coil_rd()
53 coils_state |= BIT(addr); in coil_wr()
56 coils_state &= ~BIT(addr); in coil_wr()
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/
Dmain.c21 static uint8_t coils_state; variable
92 if (coils_state & BIT(addr)) { in coil_rd()
112 coils_state |= BIT(addr); in coil_wr()
115 coils_state &= ~BIT(addr); in coil_wr()