1.3.3.17 CANx_StandardFilterElementSet Function

C

bool CANx_StandardFilterElementSet(uint8_t filterNumber, can_sidfe_registers_t *stdMsgIDFilterElement) // x - Instance of the CAN peripheral

Summary

Set a standard filter element configuration.

Precondition

CANx_Initialize and CANx_MessageRAMConfigSet must have been called for the associated CAN 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

can_sidfe_registers_t stdMsgIDFilterElement;
stdMsgIDFilterElement.CAN_SIDFE_0 = 0x00;
CAN0_StandardFilterElementSet(1, &stdMsgIDFilterElement);

Remarks

None.