![Acrosser Technology AR-B6003 Скачать руководство пользователя страница 54](http://html1.mh-extra.com/html/acrosser-technology/ar-b6003/ar-b6003_user-manual_2841621054.webp)
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 are 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 */
getInChLevel( GPO0 | GPO3, 0 );
Return Value:
If the function sets the values successfully, it returns 0. If any error,
it returns –1.
3.
Syntax:
i32 getOutchLevel( i32 channel, u8 *val )
Description:
Get the value of GPIO Output and put the value at *val.
Parameters:
I.
The parameter ‘channel’ indicates the GPIO Output pins to show. Users can
use the macros GPO0, GPO1, GPO2, GPO3 to indicate the GPIO Output
channel. For example:
getOutChLevel( GPO2, &val); // Indicate the GPIO Output channel 2
/* Indicate the GPIO Output channel 0 and channel 3. */
getOutChLevel( GPO0 | GPO3, &val);
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 Output channel 0. The bit 1 of *val
shows the value of GPIO Output channel 1. Other bits show the
corresponding GPIO Output channels. Because there are only four channels,
bit 4 ~ bit 7 of *val are always zero.
54
Содержание AR-B6003
Страница 1: ...1 AR B6003 Board User Manual...
Страница 8: ...2 2 Locations of IO ports Jumper Setting Definition Top Side 8...
Страница 9: ...Locations Of IO Ports Jumper Setting Definition Bottom Side 9...
Страница 39: ...Click the item all the drivers will be selected Click the item all selected items will be cancelled 39...
Страница 40: ...Click the Install icon to install the selected drivers Click the item to browse the CD contents 40...
Страница 41: ...Click the icon to close the program 41...
Страница 45: ...Please install the Acrobat Reader when you see the message 45...
Страница 50: ...5 3 4 Finish the driver installation Please click Yes to restart the system 50...
Страница 57: ...3 Run the bcdedit again without any option A new item testsigning is enabled 4 Reboot the system 57...