Dil ID: 8
Dil Adı: italy
Dil Kodu: it6tayfun Prodotti del Marchio Acrosser
Dünyanın En Büyük
Elektronik Bilgi Kütüphanesi



AIV-HM76V1FL Series User Manual
52
Acrosser Technology Co., Ltd.
Syntax: i32 setCanMask(struct CanMask mask)
Description:
This function sets the bit patterns to the indicated mask.
The target mask is indicated by the ‘maskId’ eld in a
CanMask variable.
Parameters:
This functions takes a variable of type ‘CanMask’. User set
the bit patterns they want to the ‘mask’ eld 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.
Syntax: i32 getCanFilter(struct CanFilter *varFilter)
Description:
This function gets the current setting of the acceptance
lter. Use the ‘lterId’ eld in a ‘CanFilter’ variable to
indicate the lter you want and the API puts the setting
of the indicated lter in the ‘lter eld 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 lter!\n”);
Return Value:
If this function gets the lter successfully, it returns 0, any
other returned value stands for error.