Page: 80/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Error Handling
Function COM_HVPSU2D_GetInterfaceState
int COM_HVPSU2D_GetInterfaceState
(WORD PortNumber);
Returns the state of the software interface according to Tab. 10.
This function can be used to obtain the last return value of an inter-
face function. It does not have any influence on the communication
and can be called at any time.
Function COM_HVPSU2D_GetErrorMessage
const char * COM_HVPSU2D_GetErrorMessage
(WORD PortNumber);
Returns the error message corresponding to the state of the software
interface (see function
return value is a pointer to a null-terminated character string according
to Tab. 10.
This function does not have any influence on the communication and
can be called at any time.
Function COM_HVPSU2D_GetIOState
int COM_HVPSU2D_GetIOState (WORD PortNumber);
Returns the interface state of the serial port according to Tab. 11.
This function can be used to obtain the result of the last I/O operation
at the port. It does not have any influence on the communication and
can be called at any time.
Function COM_HVPSU2D_GetIOErrorMessage
const char * COM_HVPSU2D_GetIOErrorMessage
(WORD PortNumber);
Returns the error message corresponding to the interface state of the
serial port (see function
). The return
value is a pointer to a null-terminated character string according to
Tab. 11.
CGC Instruments
Tel.: +49 (371) 355 098–55
Hübschmannstr. 18 | D–09112 Chemnitz
Fax: +49 (371) 355 098–60
internet: www.cgc-instruments.com
e–mail: [email protected]