C Language Development Kit/Functions/GetDSR

From OptiWiki

Jump to: navigation, search
Description Returns the level of the DSR line. Only works with COM0 (direct serial cable).
Syntax
int getDSR(void);
Arguments None
Returns
ON The DSR line is active.
OFF The DSR line is not active.
Remarks getDSR() is available only on the PHL1700

and only works with COM0.getDSR() gives undefined results on other communications ports.

Example
 


Views
Personal tools