Searched refs:excep_code (Results 1 – 4 of 4) sorted by relevance
81 static void mbs_exception_rsp(struct modbus_context *ctx, uint8_t excep_code) in mbs_exception_rsp() argument85 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()941 p->excep_code = MODBUS_EXC_NONE; in mbs_try_user_fc()942 rval = p->cb(iface, &ctx->rx_adu, &ctx->tx_adu, &p->excep_code, in mbs_try_user_fc()945 if (p->excep_code != MODBUS_EXC_NONE) { in mbs_try_user_fc()946 LOG_INF("Custom handler failed with code %d", p->excep_code); in mbs_try_user_fc()947 mbs_exception_rsp(ctx, p->excep_code); in mbs_try_user_fc()
104 const uint8_t excep_code) in modbus_set_exception() argument109 adu->data[0] = excep_code; in modbus_set_exception()
34 uint8_t excep_code = ctx->rx_adu.data[0]; in mbc_validate_response_fc() local47 if (excep_code > MODBUS_EXC_NONE) { in mbc_validate_response_fc()48 return excep_code; in mbc_validate_response_fc()
311 custom_fc->excep_code = MODBUS_EXC_NONE; in modbus_register_user_fc()
Completed in 11 milliseconds