MSS_CAN_config_buffer

Function MSS_CAN_config_buffer 

Source
pub unsafe extern "C" fn MSS_CAN_config_buffer(
    this_can: *mut mss_can_instance_t,
    pfilter: pmss_can_filterobject,
) -> u8
Expand description

The MSS_CAN_config_buffer() function configures receive mailboxes initialized for Basic CAN operation.

@param this_can The this_can parameter is a pointer to the mss_can_instance_t structure.

@param pfilter The pfilter parameter is a pointer to the CAN message filter structure.

@return This function returns CAN_OK on successful execution, otherwise it will returns following error codes:

ConstantsDescription
CAN_NO_MSGIndicates that there is no message received
CAN_INVALID_MAILBOXIndicates invalid mailbox number

Example: @code e51() { … pfilter.ACR.L=0x00000000; pfilter.AMR.L= 0xFFFFFFFF; pfilter.AMCR_D.MASK= 0xFFFF; pfilter.AMCR_D.CODE= 0x00;

ret_status = MSS_CAN_config_buffer(&g_mss_can_0_lo, &pfilter); … } @endcode