Home
last modified time | relevance | path

Searched refs:unit_id (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/include/zephyr/modbus/
Dmodbus.h80 uint8_t unit_id; member
117 const uint8_t unit_id,
151 const uint8_t unit_id,
174 const uint8_t unit_id,
197 const uint8_t unit_id,
215 const uint8_t unit_id,
233 const uint8_t unit_id,
251 const uint8_t unit_id,
284 const uint8_t unit_id,
307 const uint8_t unit_id,
[all …]
/Zephyr-latest/subsys/modbus/
Dmodbus_client.c30 const uint8_t unit_id, in mbc_validate_response_fc() argument
38 if (unit_id != ctx->rx_adu.unit_id) { in mbc_validate_response_fc()
85 const uint8_t unit_id, in mbc_validate_rd_response() argument
158 const uint8_t unit_id, in mbc_validate_fc08_response() argument
210 const uint8_t unit_id, in mbc_validate_wr_response() argument
244 static int mbc_send_cmd(struct modbus_context *ctx, const uint8_t unit_id, in mbc_send_cmd() argument
249 ctx->tx_adu.unit_id = unit_id; in mbc_send_cmd()
257 err = mbc_validate_response_fc(ctx, unit_id, fc); in mbc_send_cmd()
271 err = mbc_validate_rd_response(ctx, unit_id, fc, data); in mbc_send_cmd()
275 err = mbc_validate_fc08_response(ctx, unit_id, data); in mbc_send_cmd()
[all …]
Dmodbus_raw.c70 ctx->rx_adu.unit_id = adu->unit_id; in modbus_raw_submit_rx()
86 header[6] = adu->unit_id; in modbus_raw_put_header()
95 adu->unit_id = header[6]; in modbus_raw_get_header()
Dmodbus_core.c279 ctx->unit_id = param.server.unit_id; in modbus_init_server()
362 ctx->unit_id = 0; in modbus_init_client()
402 ctx->unit_id = 0; in modbus_disable()
Dmodbus_serial.c133 hex2bin(pmsg, 2, &ctx->rx_adu.unit_id, 1); in modbus_ascii_rx_adu()
197 pbuf = modbus_ascii_bin2hex(ctx->tx_adu.unit_id, pbuf); in modbus_ascii_tx_adu()
257 ctx->rx_adu.unit_id = cfg->uart_buf[0]; in modbus_rtu_rx_adu()
286 cfg->uart_buf[0] = ctx->tx_adu.unit_id; in rtu_tx_adu()
Dmodbus_internal.h136 uint8_t unit_id; member
Dmodbus_server.c963 uint8_t addr = ctx->rx_adu.unit_id; in modbus_server_handler()
978 if (addr != 0 && addr != ctx->unit_id) { in modbus_server_handler()
979 LOG_DBG("Unit ID doesn't match %u != %u", addr, ctx->unit_id); in modbus_server_handler()
987 ctx->tx_adu.unit_id = addr; in modbus_server_handler()
/Zephyr-latest/tests/subsys/modbus/src/
Dtest_modbus_raw.c27 tmp_adu.unit_id = adu->unit_id; in server_raw_cb()
53 tmp_adu.unit_id = adu->unit_id; in client_raw_cb()
Dtest_modbus_server.c176 .unit_id = MB_TEST_NODE_ADDR,
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/
Dmain.c171 tmp_adu.unit_id = adu->unit_id; in server_raw_cb()
186 .unit_id = 1,
/Zephyr-latest/samples/subsys/modbus/rtu_server/src/
Dmain.c104 .unit_id = 1,
/Zephyr-latest/subsys/usb/device/class/audio/
Dusb_audio_internal.h469 #define INIT_FEATURE_UNIT(dev, i, unit_id, source_id) \ argument
474 .bUnitID = unit_id, \