typedef Ucs_Cmd_Return_t(* Ucs_Cmd_Handler_Function_t)(Ucs_AmsRx_Msg_t *msg_rx_ptr, void *user_ptr) |
Type definition of user handler functions.
msg_rx_ptr | Reference to the received message |
user_ptr | User reference provided in Ucs_InitData_t::user_ptr |
Value | Description |
---|---|
UCS_CMD_RET_SUCCESS | The handler function succeeded. |
UCS_CMD_RET_ERR_TX_BUSY | The handler function could not send an answer because no free Tx Buffer was available. |
UCS_CMD_RET_ERR_APPL | An error happened in handler function. |