
subsystem. Filter0 ~ filter1 are associated with mask0. Filter2 ~ filter4 are associated with mask1.
Here is the Mask/Filter truth table:
Mask bit
n
Filter bit
n
Message
ID bit n
Accept or reject bit n
0
x x
Accept
1
0
0
Accept
1
0
1
Reject
1
1
0
Reject
1
1
1
Accept
Note: x = don’t care
Parameters:
This parameter ‘mask’ is a pointer to a variable of type ‘CanMask’.
Users use the
field ‘maskId’ to indicate the mask they want and the API put the
setting of the mask in the ‘mask’
field.
struct CanMask {
u8 maskId; // 0 or 1
u32
mask;
}
Return Value:
If this function receives the mask setting successfully, it returns 0, any other
returned value stands for error.
For
example:
struct CanMask a_mask;
a_mask.maskId = 0; // indicate the mask0
i32
result;
result = getCanMask(&a_mask); // The setting of the mask is put at
//
a_mask.mask
if( result != 0)
printf(“Fail to get mask!\n”);
7.
Syntax:
i32 setCanMask(struct CanMask mask)
Description:
This function sets the bit patterns to the indicated mask. The target mask is indicated
54
Summary of Contents for AR-B6005
Page 1: ...1 AR B6005 Board User Manual ...
Page 8: ...2 2 Locations of I O ports Jumper settings definition 8 ...
Page 20: ...3 3 Superio Setup 20 ...
Page 23: ...3 5 Boot setup Choice boot priority 23 ...
Page 34: ...Driver Page This is the Driver Installation Page 34 ...
Page 35: ...Click the icon all the drivers will be selected 35 ...
Page 36: ...Click the icon all selected items will be cleared 36 ...
Page 38: ...Please click Yes to restart the system 38 ...
Page 43: ...Documents Page Double click on one of the items to open the manual 43 ...