CONFIG_IO_FUNC
This structure defines the configuration for a single I/O function port, including its assigned port number and active signal level. It is primarily used in remote control or configurable I/O settings to map logical functions to specific digital I/O channels.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
-1 ~ 15 |
Digital port number assigned to this I/O function |
1 |
|
|
0 or 1 |
Active signal level for the port |
Total size: 2 bytes
Defined in: DRFS.h
typedef struct _CONFIG_IO_FUNC
{
/* Port number (-1: unused, 0–15: valid port index) */
char _iPort;
/* Signal level (0: low, 1: high) */
char _bLevel;
} CONFIG_IO_FUNC, *LPCONFIG_IO_FUNC;
Note
This structure is a fundamental component of higher-level I/O configurations such as CONFIG_REMOTE_CONTROL.
Use
_iPort = -1to deactivate a function or leave it unassigned.The
_bLevelfield defines the trigger logic for detecting or outputting signals.