Home
last modified time | relevance | path

Searched refs:excep_code (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.7.0/include/zephyr/modbus/
Dmodbus.h436 uint8_t *const excep_code,
448 uint8_t excep_code; member
460 .excep_code = MODBUS_EXC_NONE, \
/Zephyr-Core-3.7.0/subsys/modbus/
Dmodbus_server.c81 static void mbs_exception_rsp(struct modbus_context *ctx, uint8_t excep_code) in mbs_exception_rsp() argument
85 LOG_INF("FC 0x%02x Error 0x%02x", ctx->rx_adu.fc, excep_code); in mbs_exception_rsp()
90 ctx->tx_adu.data[0] = excep_code; in mbs_exception_rsp()
942 p->excep_code = MODBUS_EXC_NONE; in mbs_try_user_fc()
943 rval = p->cb(iface, &ctx->rx_adu, &ctx->tx_adu, &p->excep_code, in mbs_try_user_fc()
946 if (p->excep_code != MODBUS_EXC_NONE) { in mbs_try_user_fc()
947 LOG_INF("Custom handler failed with code %d", p->excep_code); in mbs_try_user_fc()
948 mbs_exception_rsp(ctx, p->excep_code); in mbs_try_user_fc()
Dmodbus_raw.c104 const uint8_t excep_code) in modbus_set_exception() argument
109 adu->data[0] = excep_code; in modbus_set_exception()
Dmodbus_client.c34 uint8_t excep_code = ctx->rx_adu.data[0]; in mbc_validate_response_fc() local
47 if (excep_code > MODBUS_EXC_NONE) { in mbc_validate_response_fc()
48 return excep_code; in mbc_validate_response_fc()
Dmodbus_core.c309 custom_fc->excep_code = MODBUS_EXC_NONE; in modbus_register_user_fc()
/Zephyr-Core-3.7.0/samples/subsys/modbus/tcp_server/src/
Dmain.c34 uint8_t *const excep_code, in custom_handler() argument
47 *excep_code = MODBUS_EXC_ILLEGAL_DATA_VAL; in custom_handler()