WUX-7300U/7100U
Copyright © Portwell 2018
WUX-7XXXU series User's Guide
22
5.2
GPIO Signal
void GpioTest()
{
_tprintf(_T("\n"));
_tprintf(_T("Currnet state\n"));
_tprintf(_T("--------------------------------------\n"));
int GP2x = 2;
int PinCount = 8;
int n = 0;
SSCORE_GPIO_VALUE Values[8];
::AsrLibGetSioGpioGroup(GP2x, Values, &PinCount);
for (n = 0; n < PinCount; n++) {
DisplayGpioString(&Values[n]);
}
_tprintf(_T("\n"));
::AsrLibSetSioGpioValue(20, ESCORE_GPIO_OUTPUT_LOW);
::AsrLibSetSioGpioValue(21, ESCORE_GPIO_INPUT);
::AsrLibSetSioGpioValue(22, ESCORE_GPIO_OUTPUT_LOW);
::AsrLibSetSioGpioValue(23, ESCORE_GPIO_INPUT);