
Revision:
1.23
69
getInChLevel( GPI2, &val); // Indicate the GPIO Input channel 2
getInChLevel( GPI0 | GPI3, &val); // Indicate the GPIO Input
// channel 0 and channel 3
II.
The parameter ‘val’ is an unsigned character pointer. The function puts the values of the
indicated GPIO channels at the memory pointed by ‘val’. The bit 0 of *val shows the
value of GPIO Input channel 0. The bit 1 of *val shows the value of GPIO Input channel
1. Other bits show the corresponding GPIO Input channels. Because there are only four
channels, bit 4 ~ bit 7 of *val are always zero.
Here is an example:
If GPIO Input channel 1 and channel 3 are both 1.
unsigned char ch;
getInChLevel( GPI1|GPI3, &ch );
The returned value of variable ‘ch’ is 0xa.
Return Value:
If the function gets the values successfully, it returns 0. If any error, it
returns –1.
2.
Syntax:
i32 setOutChLevel( i32 channel, u8 val )
Description:
Set the value of GPIO Output according to the variable ‘val’.
Parameters:
I.
The parameter ‘channel’ indicates the GPIO Output pins to set. Users can use the macros
GPO0, GPO1, GPO2, GPO3 to indicate the GPIO Output channels.
II.
The parameter ‘val’ indicate the value to be set to GPIO Output channel. The acceptable
values is limited to 0 and 1.
For example:
/* Setting the GPIO Output channel 2 to 1 */
setOutChLevel( GPO2, 1 );
/* Setting the GPIO Output channel 0 and channel 3 to 0 */
Summary of Contents for AR-V6002FL
Page 1: ...Revision 1 23 1 AR V6002FL User Manual ...
Page 5: ...Revision 1 23 5 AR V6002FL System System Installation Guide ...
Page 9: ...Revision 1 23 9 3 Back Panel WIFI 3 5G GPS Bluetooth WIFI SIM Card ...
Page 10: ...Revision 1 23 10 4 System Configuration ...
Page 11: ...Revision 1 23 11 ...
Page 19: ...Revision 1 23 19 3 Fixed SIM Card bracket by 3 screws ...
Page 23: ...Revision 1 23 23 AR B6002 Board Fan less with Intel ATOM Pineview ICH8M Board Guide ...
Page 27: ...Revision 1 23 27 2 1 2 Locations Bottom Side CF1 ...