![background image](http://html1.mh-extra.com/html/kramer/nt-52p/nt-52p_user-manual_2001015065.webp)
58
NT-52P - Kramer Protocol 3000
11.3.15 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
HwGpioNum
– 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
11.3.16 GPIO-STEP
Functions
Permission
Transparency
Set:
GPIO-STEP
End User
Public
Get:
GPIO-STEP?
End User
Public
Description
Syntax
Set:
Set HW GPIO step
#GPIO-STEP
␠
HwGpioNumber,Step
␍
Get:
Get HW GPIO step
#GPIO-STEP
␠
HwGpioNumber
␍
Response
~nn
@GPIO-STEP
␠
HwGpioNumber,NumOfStep,CurrentStep
␍␊
Parameters
HwGpioNumber
– HW GPIO number:
1-n
NumOfStep
– the configuration step – see note below
CurrentStep
– the actual step depending on the measured voltage
Response Triggers
Notes
In digital mode the response is
2
In analog mode the response is
1
to
100
In other modes an error is returned
K-Config Example
Set GPIO 2 step 1 to 50:
“#GPIO-STEP 2,1,50”,0x0D