can_filter_t Struct Reference
[CAN Devices]


Detailed Description

Filter for reception of CAN messages.

This filter works as follows: A received CAN ID is AND'ed bitwise with can_mask and then compared to can_id. If this comparison is true the message will be received by the socket.

Multiple filters can be arranged in a filter list and set with Sockopts. If one of these filters matches a CAN ID upon reception of a CAN frame, this frame is accepted.

Note:
Only CAN_EFF_FLAG of CAN ID flags is valid for can_id and none for can_mask. This means that the RTR bit is not taken into account while filtering messages.
Extended IDs are received only if CAN_EFF_FLAG is set in can_id. If it is cleared only standard IDs are accepted.

Data Fields

uint32_t can_id
 CAN ID which must match with incoming IDs after passing the mask.
uint32_t can_mask
 Mask which is applied to incoming IDs.

Field Documentation

uint32_t can_filter_t::can_mask

Mask which is applied to incoming IDs.

See CAN ID masks if exactly one CAN ID should come through.


The documentation for this struct was generated from the following file:
Generated on Sun Dec 9 10:37:38 2007 for Xenomai API by  doxygen 1.5.3