
by the ‘maskId’ field in a CanMask variable.
Parameters:
This functions takes a variable of type ‘CanMask’. User set the bit patterns they want
to the ‘mask’ field in a ‘CanMask’ variable.
struct CanMask {
u8 maskId; // 0 or 1
u32 mask;
}
For example:
struct CanMask varMask;
i32 result;
varMask.maskId = 1;
varMask.mask = 0x12345678;
result = setCanMask(varMask);
Return Value:
If this function sets the mask setting successfully, it returns 0,
any other returned
value stands for error.
8.
Syntax:
i32 getCanFilter(struct CanFilter *varFilter)
Description:
This function gets the current setting of the acceptance filter. Use the ‘filterId’ field in a
‘CanFilter’ variable to indicate the filter you want and the API puts the setting of the indicated filter
in the ‘filter’ field in the CanFilter variable ‘varFilter’.
Parameters:
This function takes a pointer to a ‘CanFilter’ type variable.
For example:
struct CanFilter varFilter;
i32 result;
result = getCanFilter(&varFilter);
if(result != 0)
printf(“Fail to get the filter!\n”);
Return Value:
If this function gets the filter successfully, it returns 0, any other returned value
stands for error.
55
Содержание AR-B6005
Страница 1: ...1 AR B6005 Board User Manual ...
Страница 8: ...2 2 Locations of I O ports Jumper settings definition 8 ...
Страница 20: ...3 3 Superio Setup 20 ...
Страница 23: ...3 5 Boot setup Choice boot priority 23 ...
Страница 34: ...Driver Page This is the Driver Installation Page 34 ...
Страница 35: ...Click the icon all the drivers will be selected 35 ...
Страница 36: ...Click the icon all selected items will be cleared 36 ...
Страница 38: ...Please click Yes to restart the system 38 ...
Страница 43: ...Documents Page Double click on one of the items to open the manual 43 ...
Страница 46: ... When the screen shows this information press Enter to continue installing the operating system 46 ...