Access Restricted
This page contains internal documentation that is not publicly available.
Sys.GetPort
This command has been deprecated. Do not use it in new code as we may remove it in the future.
Please use UI.Sense instead of this command for new applications.
This command retrieves the logic state for the custom I/O ports of the module. Each module can have up to 16 ports, with each bit of the returned PortMask value corresponding to a port. 1 corresponds to high state (VCC), while 0 corresponds to low state (GND).
Properties
- Command code: 0x0006
- Command timeout: 100 ms
- Possible status codes: General status codes
Parameters (request frame)
None
Returned values (response frame)
| Name | Type/Size | Description | |
|---|---|---|---|
| PortMask | Bit mask (16 bits) | - | |
| Gpio7 | Boolean (bit 0x8000) | - | |
| Gpio6 | Boolean (bit 0x4000) | - | |
| Gpio5 | Boolean (bit 0x2000) | - | |
| Gpio4 | Boolean (bit 0x1000) | - | |
| Gpio3 | Boolean (bit 0x0800) | - | |
| Gpio2 | Boolean (bit 0x0400) | - | |
| Gpio1 | Boolean (bit 0x0200) | - | |
| Gpio0 | Boolean (bit 0x0100) | - | |
| TamperAlarm | Boolean (bit 0x0080) | - | |
| BlueLed | Boolean (bit 0x0040) | - | |
| Input1 | Boolean (bit 0x0020) | - | |
| Input0 | Boolean (bit 0x0010) | - | |
| Relay | Boolean (bit 0x0008) | - | |
| Beeper | Boolean (bit 0x0004) | - | |
| RedLed | Boolean (bit 0x0002) | - | |
| GreenLed | Boolean (bit 0x0001) | - | |