BE220C USER MANUAL
- 65 -
3.4.2 GPIO Control Function for BE220C
GetGPInput Function:
Get current status of specified GPIO.
Syntax
BOOL GetGPInput (
int gpio_index
);
Parameters
gpio_index The index of specified GPIO. Refer to section 3.4.3 for
the value definition.
Return value
TRUE: Current status of specified GPIO is HIGH.
FALSE: Current status of specified GPIO is LOW.
SetGPOutput Function:
Set value of specified GP Output.
Syntax
void SetGPOutput
(
int gpio_index,
BOOL value
);
Parameters
gpio_index The index of specified GP output. Refer to section 3.4.3
for the value definition.
value New value of specified GP output.
TRUE: Set specified GP output to HIGH.
FALSE: Set specified GP output to LOW.
Return value
None
IsOutput Function:
Check if the specified GPIO is output or not..
Syntax
BOOL IsOutput (
int gpio_index
);
Parameters
gpio_index The index of specified GPIO. Refer to section 3.4.3 for
the value definition.
Return value
TRUE: The specified GPIO is output.
FALSE: The specified GPIO is input.
SetIOAttribute Function:
Set the attribute of the specified GPIO.
Syntax
void SetIOAttribute
(
int gpio_index,
BOOL value
);
Parameters
gpio_index The index of specified GPIO.
GIO_KEY1~GIO_KEY12
.
value New attribute of the specified GPIO.
GA_OUTPUT: Set the specified GPIO as output.
GA_INPUT: Set the specified GPIO as input.
Return value
None
Summary of Contents for BE220C
Page 9: ...BE220C USER MANUAL 9 1 2 Specifications 1 2 1 System Functional Blocks...
Page 11: ...BE220C USER MANUAL 11 1 3 Mechanical Specifications 1 3 1 Module Specifications...
Page 18: ...BE220C USER MANUAL 18 STEP7 Enter URL at the Address box...
Page 44: ...BE220C USER MANUAL 44 STEP4 After assembly finished as illustrated Front view Bottom view...
Page 45: ...BE220C USER MANUAL 45 Side view...
Page 50: ...BE220C USER MANUAL 50 5 Select No and click Next button to cancel the synchronization...
Page 72: ...BE220C USER MANUAL 72 End of BE220C User Manual...