Instruction to set the two signals DTR and RTS of the specified serial channel.
Syntax |
ser_w_sts (i32 nSer, i32 mask, i32 sts) |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
nSer |
Serial channel number |
||||||||||
mask |
Mask to enable the bits of the status word to be changed. It can take the following values:
|
||||||||||
sts |
It is the value of the DTR, RTS signals that are intended to be forced. Forcing a signal to 1 means bringing it to its active condition; therefore, we do not refer to the physical levels of the signals, but to the logical levels |
||||||||||
Validity |
Rule, Task |
||||||||||
Note |
You can only change the status of these signals if you have previously selected MODEM mode for the specified serial channel (see the ser_mod instruction) |
Example of use:
|