W406-CE User’s Manual
Application Development
Get the modem module temperature.
int cellular_modem_gprs_get_module_temperature(unsigned int fd)
Inputs:
<fd> the cellular modem
Return Values:
the tempture of GPRS module
Remark:
UART
Gets the UART interface.
DWORD uart_getmode(int port);
Inputs:
<port> the serial port number.
Return Values:
0 : RS-232
1 : RS485-2W
2 : RS422
3 : RS485-4W
otherwise, the function fails
Remark:
For example, user
uart_getmode(2)
to retrieve the interface of
COM2:
Sets the UART interface.
BOOL uart_setmode(int port, int mode);
Inputs:
<port> the serial port number.
<mode> the interface parameter.
0 : RS-232
1 : RS485-2W
2 : RS422
3 : RS485-4W
Return Values:
TRUE indicates success, FALSE indicates failed.
Remark:
For example, user
uart_getmode(2)
to retrieve the interface of
COM2:
DIO
Opens a DIO handle for later use.
HANDLE mxdio_init(void);
Inputs:
none
Return Values:
pointer to a DIO handle. Return 0 on failure.
Remark:
Every DIO API needs the handle parameter, so you must use the function first before you
program
them.
B-8