C Language Development Kit/Functions/SetDTR

From OptiWiki

Jump to: navigation, search
Description Sets the level of the DTR line. Only works with COM0 (direct serial cable).
Syntax
void setDTR(int level);
Arguments
int level
Two values are defined for level:
ON The DTR line is made active.
OFF The DTR line is made not active.
Returns None
Remarks setDTR() is available on the PHL1700 and only works with COM0.

setDTR() has no effect when used on other communications ports. The default state of the DTR line is OFF.

Example
 


Views
Personal tools