Logo
UNICENS V2.1.0-3491
User Manual and API Reference
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.

Parameters
msg_rx_ptrReference to the received message
user_ptrUser reference provided in Ucs_InitData_t::user_ptr
Returns
Possible return values are shown in the table below.
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.
Note
The application must not return other values than the ones listed above.