MgslGetGpio
| Prototype |
|
ULONG MgslGetGpio( HANDLE hDevice, GPIO_DESC *gpio );
|
| Parameters |
|
hDevice
|
handle to open port |
gpio
|
pointer to GPIO_DESC structure |
| Return Value |
|
ERROR_SUCCESS (0)
|
parameters set successfully |
ERROR_INVALID_PARAMETER
|
invalid option ID or value pointer |
ERROR_INVALID_HANDLE
|
hDevice is invalid |
Return the current direction configuration and state of all GPIO signals.
GPIO_DESC on Return
| smask |
all bits set to one |
| state |
state of all signals |
| dmask |
all bits set to one |
| dir |
direction all signal (0=input 1=output) |
See also: MgslSetGpio, GPIO_DESC,
General Purpose I/O