Jump to main content

##

# 2.64.19 MCANx_StandardFilterElementSet Function

## C

    bool MCANx_StandardFilterElementSet(uint8_t filterNumber, mcan_sidfe_registers_t *stdMsgIDFilterElement) // x - Instance of the MCAN peripheral

## Summary

Set a standard filter element configuration.

## Precondition

MCANx_Initialize and MCANx_MessageRAMConfigSet must have been called for the associated MCAN instance.

## Parameters

Param | Description
--- | ---
filterNumber | Standard Filter number to be configured
stdMsgIDFilterElement | Pointer to Standard Filter Element configuration to be set on specific filterNumber

## Returns

Request status. true - Request was successful

false - Request has failed

## Example

    mcan_sidfe_registers_t stdMsgIDFilterElement;
    stdMsgIDFilterElement.MCAN_SIDFE_0 = 0x00;
    MCAN0_StandardFilterElementSet(1, &stdMsgIDFilterElement);

## Remarks

None.