GPIO properties¶
Below are the available gpio properties are described. To each gpio needs to be accessed by their Property followed by the target in or output [ ]
square brackets
gpio.input.function[1] = gpio.input.function.talk
// sets the function of the first GPI to talk
gpio.input.function¶
Property for GPI input function. needs to be called with an [index] and can be assigned with one of its values.
value name | represents the gpi input function |
---|---|
gpio.input.function.coughmute | Cough mute |
gpio.input.function.answerreply | Answer / reply |
gpio.input.function.none | No function |
gpio.input.function.talk | Talk |
gpio.input.function.call | Call |
gpio.input.function.cueatt | Cue attention |
gpio.input.function.cuego | Cue GO |
gpio.input.function.cueclear | Cue clear |
gpio.input.function.mickill | Mic kill |
gpio.input.function.gpiocontrol | gpio control |
gpio.input.value
¶
Property for GPI input channel. needs to be called with an [index] and can be assigned with any of the available regular channels. By default 1 - 32, and 24 added for each connected extension.
gpio.input.normally
¶
Property for GPI normal state. needs to be called with an [index] and can be assigned with one of its values.
value name | represents the gpi normal state |
---|---|
gpio.input.normally.closed | normally closed |
gpio.input.normally.open | normally open |
gpio.input
¶
Property to read the current GPI state. needs to be called with an [index] and has one of its values.
value name | represents the GPI state |
---|---|
gpio.input.on | the GPI is active |
gpio.input.off | the GPI is not active |
gpio.output.function
¶
Property for GPO function. needs to be called with an [index] and can be assigned with one of its values.
value name | represents the GPO function |
---|---|
gpio.output.function.none | no function |
gpio.output.function.channelactive | Channel Active |
gpio.output.function.channelvox | Channel VOX |
gpio.output.function.call | Call |
gpio.output.function.alert | Allert Call |
gpio.output.function.talkenabled | Talk enabled |
gpio.output.function.gpiocontrol | Gpio Control |
gpio.output.value
¶
Property for GPI output channel. needs to be called with an [index] and can be assigned with any of the available regular channels. By default 1 - 32, and 24 added for each connected extension.
gpio.output.normally
¶
Property for GPO normal state. needs to be called with an [index] and can be assigned with one of its values.
value name | represents the gpo normal state |
---|---|
gpio.output.normally.closed | normally closed |
gpio.output.normally.open | normally open |
gpio.output
¶
Property to override the current GPO state needs to be called with an [index] and can be assigned one of its values
value name | sets the gpo state |
---|---|
gpio.output.on | overrides the current GPO state to ON not normally state |
gpio.output.off | overrides the current GPO state to OFF normally state |
gpio.output.release | release from the script to the current Green-GO state |
Beacon GPI¶
gpi.bcn
¶
property for the GPI inputs on the USB data pair connection of the beacon. needs to be addressed with the index of the gpi in []
square brackets, can be 1
or 2
or with the predefined values
index name | description |
---|---|
define gpi.bcn.white | 1 - data + |
define gpi.bcn.green | 2 - data - |
the value of a GPI can be read and can have the following values.
value | description |
---|---|
gpi.bcn.closed | the contact is closed |
gpi.bcn.open | the contact is open |
a closed contact is switched to the USB ground
event gpi.bcn[gpi.bcn.2]
if gpi.bcn[gpi.bcn.2] == gpi.bcn.closed
// action if contact is closed
else
// action if contact is opened
end
end