GPIO_PORT
This structure defines a single GPIO (General-Purpose Input/Output) port entry, representing both the port’s index and its corresponding data value. It is primarily used as an element within burst operations such as WRITE_SERIAL_BURST or GPIO_SETOUTPUT_BURST.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
0 ~ N |
Index number of the GPIO port |
1 |
|
|
0.0 or 1.0 |
Current port value or output state |
Total size: 5 bytes
Defined in: DRFS.h
typedef struct _GPIO_PORT
{
/* Port index (0~N) */
unsigned char _iIndex;
/* Port value (0.0: low, 1.0: high) */
float _fValue;
} GPIO_PORT, *LPGPIO_PORT;
Note
This structure acts as the basic data unit for GPIO operations in burst or single mode.
_iIndexdetermines which GPIO channel is targeted, and_fValuespecifies the desired output level.Used in both digital output control and burst transmission structures.