extended uart com if

This commit is contained in:
2021-06-16 19:19:45 +02:00
parent c0287eb4a6
commit 78e996b2be
4 changed files with 144 additions and 62 deletions

View File

@ -66,3 +66,19 @@ void UartCookie::setOneStopBit() {
UartModes UartCookie::getUartMode() const {
return uartMode;
}
void UartCookie::setReadCycles(uint8_t readCycles) {
this->readCycles = readCycles;
}
void UartCookie::setToFlushInput(bool enable) {
this->flushInput = enable;
}
uint8_t UartCookie::getReadCycles() const {
return readCycles;
}
bool UartCookie::getInputShouldBeFlushed() {
return this->flushInput;
}