Searched refs:unit_id (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/include/zephyr/modbus/ |
D | modbus.h | 80 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/ |
D | modbus_client.c | 30 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 …]
|
D | modbus_raw.c | 70 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()
|
D | modbus_core.c | 279 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()
|
D | modbus_serial.c | 133 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()
|
D | modbus_internal.h | 136 uint8_t unit_id; member
|
D | modbus_server.c | 963 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/ |
D | test_modbus_raw.c | 27 tmp_adu.unit_id = adu->unit_id; in server_raw_cb() 53 tmp_adu.unit_id = adu->unit_id; in client_raw_cb()
|
D | test_modbus_server.c | 176 .unit_id = MB_TEST_NODE_ADDR,
|
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/ |
D | main.c | 171 tmp_adu.unit_id = adu->unit_id; in server_raw_cb() 186 .unit_id = 1,
|
/Zephyr-latest/samples/subsys/modbus/rtu_server/src/ |
D | main.c | 104 .unit_id = 1,
|
/Zephyr-latest/subsys/usb/device/class/audio/ |
D | usb_audio_internal.h | 469 #define INIT_FEATURE_UNIT(dev, i, unit_id, source_id) \ argument 474 .bUnitID = unit_id, \
|