
Kramer Electronics Ltd.
FC-7P
– Kramer Protocol 3000
40
GPIO-CFG
Functions
Permission
Transparency
Set:
GPIO-CFG
End User
Public
Get:
GPIO-CFG?
End User
Public
Description
Syntax
Set:
Set HW GPIO configuration
#GPIO-CFG
␠
HwGpioNumber,HwGpioType,HwGpioDir,Pullup
␍
Get:
Get HW GPIO configuration
#GPIO-CFG
␠
Hw
GpioNumber
␍
Response
~nn
@GPIO-CFG
␠
HwGpioNum,HwGpioType,HwGpioDir
␍␊
Parameters
HwGpioNum
– hardware GPIO number:
1-n
HwGpioType
– hardware GPIO type:
0(
analog),
1(
digital)
HwGpioDir
– hardware GPIO direction:
0
(input),
1
(output)
Pullup
– enable/disable pull-up:
0
(disable),
1
(enable)
Response Triggers
Notes
K-Config Example
Configure GPIO 2 to analog input with pullup disabled:
“#GPIO
-
CFG 2,0,0,0”,0x0D
GPIO-STATE
Functions
Permission
Transparency
Set:
GPIO-STATE
End User
Public
Get:
GPIO-STATE?
End User
Public
Description
Syntax
Set:
Set HW GPIO state
#GPIO-STATE
␠
HwGpioNumber,HwGpioState
␍
Get:
Get HW GPIO state
#GPIO-STATE
␠
HwGpioNumber
␍
Response
~nn
@GPIO-STATE
␠
HwGpioNum,HwGpioState
␍␊
Parameters
HwGpioNumber
– hardware GPIO number:
1-n
HwGpioState
– hardware GPIO state (see note below)
Response Triggers
Notes
GPIO-STATE?
can only be sent in digital out mode and the answer is
0
(low),
1
(high). In all other modes
an error message is sent
The device uses this command to notify the user of any change regarding the step and voltage in:
In digital mode the answer is
0
(low),
1
(high)
In analog mode the answer is
0
to
100
K-Config Example
Configure GPIO 2 to low state:
“#GPIO
-
STATE 2,0”,0x0D