PISerial setBreak

This commit is contained in:
Andrey
2021-09-16 12:18:17 +03:00
parent 0d119502a8
commit ece3fb1536
2 changed files with 29 additions and 0 deletions

View File

@@ -159,6 +159,12 @@ public:
bool isRNG() const;
bool isDSR() const;
//! Switch transmission line in break if enabled.
//! i.e. sends a continuous stream of zero bits.
//! If successful, returns true; otherwise returns false.
//! The serial port has to be open before trying to send a break duration; otherwise returns false
bool setBreak(bool enabled);
void setVTime(int t) {vtime = t; applySettings();}
//! Returns device name