86
MPT-7000V User Manual
⚫
Digital I/O
extern "C" __declspec(dllexport) int __stdcall IsDioAvailable(int);
Input
: Dummy data and will be ignored
Output : Return 1 if the digital I/O is available, otherwise return 0.
extern "C" __declspec(dllexport) int __stdcall SetDioInputMask(int);
Input: : Hardware parameter for digital I/O input function call.
For example, the 6 GPIO functions:
GPIO_0 to GPIO_2 are mapped as the input functions, and GPIO_4 to
GPIO_6 are mapped as the output functions.
In this case, the parameter for “SetDioInputMask” is 0x07 and it indicates that
GPIO_0 to GPIO_2 are the input functions.
The parameter for “SetDioOutputMask” is 0x70 and it indicates that GPIO_4
to GPIO_6 are the output functions.
Output : Dummy data and should be ignored.
extern "C" __declspec(dllexport) int __stdcall SetDioOutputMask(int);
Input
: Hardware parameter for digital I/O output function call
For further information, refer to the following
explanation of “SetDioInputMask”
routine.