
result = setCanFilter(&varFilter);
if( result != 0)
printf(“Fail to set up the filter!\n”);
Return Value:
If this function sets the filter successfully, it returns 0,
any other returned value
stands for error.
6.5.2 GPIO and Watchdog
6.5.2.1 GPIO
1.
Syntax:
i32 getChLevel(u8 *val )
Description:
Get the status of GPIO input pins and output pins, and put the value at *val.
Parameters:
This function takes a pointer to an unsigned char variable as the parameter.
The bit0 ~ bit3 in the pointed variable ‘*val’ is the status of the output pins. The bit4 ~ bit7 in the
pointed variable ‘*val’ is the status of the input pins.
For example:
u8 val;
i32 result;
result = getChLevel( &val);
if(result != 0)
printf(“Fail to get GPIO status!\n”);
Return Value:
If the function gets the value successfully, it returns 0, any other returned value
stands for error.
1.
Syntax:
i32 setChLevel(u8 val )
57
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 ...