Acrosser AIV-HM76V1FL Manual de usuario Pagina 52

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 69
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 51
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.
Vista de pagina 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 68 69

Comentarios a estos manuales

Sin comentarios