|
constexpr static uint8_t | CRC7_POLY = 0x91 |
|
constexpr static uint8_t | MAX_BLOCK_SIZE = 64 |
|
constexpr static uint8_t | BLOCK_END = 0x80 |
|
Definition at line 16 of file usart.h.
◆ clearInputBuffer()
void USART::clearInputBuffer |
( |
void |
| ) |
|
Verwirft Daten, die bereits im Puffer liegen, aber noch nicht gelesen wurden
- Exceptions
-
Definition at line 39 of file usart.cpp.
◆ clearOutputBuffer()
void USART::clearOutputBuffer |
( |
void |
| ) |
|
Verwirft Daten, die bereits im Puffer liegen, aber noch nicht gesendet wurden
- Exceptions
-
Definition at line 46 of file usart.cpp.
◆ closeDevice()
void USART::closeDevice |
( |
void |
| ) |
|
Schließt die USART Schnittstelle
- Exceptions
-
Definition at line 32 of file usart.cpp.
◆ flushOutputBuffer()
void USART::flushOutputBuffer |
( |
void |
| ) |
|
Schreibt Daten, die bereits im Puffer liegen, aber noch nicht gesendet wurden
- Exceptions
-
Definition at line 53 of file usart.cpp.
◆ getBaudrate()
uint32_t USART::getBaudrate |
( |
void |
| ) |
|
Liefert die eingestellte Baudrate Änderungen werden erst nach einem open() wirksam
Definition at line 306 of file usart.cpp.
◆ getTimeout()
uint8_t USART::getTimeout |
( |
void |
| ) |
|
Liefert den eingestellten Timeout (in Dezisekunden) Änderungen werden erst nach einem open() wirksam
Definition at line 311 of file usart.cpp.
◆ openDevice()
void USART::openDevice |
( |
std::string |
device | ) |
|
Öffnet die USART Schnittstelle
- Parameters
-
- Exceptions
-
Definition at line 3 of file usart.cpp.
◆ printStatistics()
void USART::printStatistics |
( |
void |
| ) |
|
Gibt Anzahl an erfolgreichen und fehlgeschlagenen Block-Übertragungen an
Definition at line 60 of file usart.cpp.
◆ readByte()
uint8_t USART::readByte |
( |
void |
| ) |
|
Empfängt ein Byte über die USART Schnittstelle
- Exceptions
-
Definition at line 210 of file usart.cpp.
◆ readInt()
uint16_t USART::readInt |
( |
void |
| ) |
|
Empfängt ein Integer über die USART Schnittstelle
- Exceptions
-
Definition at line 229 of file usart.cpp.
◆ setBaudrate()
void USART::setBaudrate |
( |
uint32_t |
baudrate | ) |
|
Setzt die Baudrate Änderungen werden erst nach einem open() wirksam
Definition at line 316 of file usart.cpp.
◆ setTimeout()
void USART::setTimeout |
( |
uint8_t |
timeout | ) |
|
Setzt den Timeout (in Dezisekunden) Änderungen werden erst nach einem open() wirksam
Definition at line 321 of file usart.cpp.
◆ writeByte()
void USART::writeByte |
( |
uint8_t |
b | ) |
|
Sendet ein Byte über die USART Schnittstelle
- Parameters
-
- Exceptions
-
Definition at line 67 of file usart.cpp.
◆ writeInt()
void USART::writeInt |
( |
uint16_t |
d | ) |
|
Sendet ein Integer über die USART Schnittstelle
- Parameters
-
- Exceptions
-
Definition at line 81 of file usart.cpp.
The documentation for this class was generated from the following files:
- /home/famulus/Dokumente/b15f/control/src/drv/usart.h
- /home/famulus/Dokumente/b15f/control/src/drv/usart.cpp