Moxa UC-8416-CE [41/48] Uc 8400 wince application development with the sdk and software libraries

Moxa UC-8430-CE [41/48] Uc 8400 wince application development with the sdk and software libraries
UC-8400 WinCE Application Development with the SDK and Software Libraries
B-4
Function
int mxdgio_set_output_signal_high(HANDLE fd, int port);
Description This function sets a high signal to a digital output channel.
Input <fd> The access to the device.
<port> The port index, from 0 to 3 mapping to DO0 to DO3
(from 0 to 11 mapping to DO0 to DO11, for UC-8418 only)
Return When successful, this function returns 0.
When an error occurs, returns -1.
Remarks
Function
int mxdgio_set_output_signal_low(HANDLE fd, int port);
Description This function sets a low signal to a digital output.
Input <fd> The access to the device.
<port> the port index, from 0 to 3 mapping to DO0~DO3 (from 0 to 11 mapping to
DO0-DO11, for
UC-8418 only)
Return When successful, this function returns 0. When an error occurs, it returns -1.
Remarks
Watchdog
Function
int mxwdg_open(unsigned long time);
Description This function starts a watchdog timer.
Input <time> Specifies an exact time period in milliseconds. Note that the watchdog
timer needs to be refreshed to avoid reset.
Return When successful, this function returns a positive value representing a file
descriptor. Otherwise, it returns a negative value.
Remarks After calling the mxwdg_open (), you must call mxwdg_refresh () in the specified
time<time> or the system will be triggered rebooting.
Function
int mxwdg_refresh(int fd);
Description This function refreshes the watchdog timer, and should be called periodically during
timer timeouts.
Input <fd> Specifies the file descriptor of the watchdog timer.
Return When successful, this function returns 0. Otherwise, it returns a negative value.
Remarks
Function
void mxwdg_close(int fd);
Description This function stops the watchdog timer.
Input <fd> Specifies the file descriptor of the watchdog timer.
Return None
Remarks
Buzzer
Function
HANDLE mxbuzzer_open(void);
Description This function opens a handle that operates the buzzer.
Input None
Return When successful, this function returns a positive value (or handle) that represents
the buzzer device.
Remarks

Содержание

Похожие устройства

Скачать