B15F
Board 15 Famulus Edition
|
#include <usart.h>
Public Member Functions | |
void | openDevice (std::string device) |
void | closeDevice (void) |
void | clearInputBuffer (void) |
void | clearOutputBuffer (void) |
void | flushOutputBuffer (void) |
void | printStatistics (void) |
void | writeByte (uint8_t b) |
void | writeInt (uint16_t d) |
void | writeU32 (uint32_t d) |
uint8_t | readByte (void) |
uint16_t | readInt (void) |
int | read_timeout (uint8_t *buffer, uint16_t offset, uint8_t len, uint32_t timeout) |
int | write_timeout (uint8_t *buffer, uint16_t offset, uint8_t len, uint32_t timeout) |
void | writeBlock (uint8_t *buffer, uint16_t offset, uint8_t len) |
bool | readBlock (uint8_t *buffer, uint16_t offset) |
uint32_t | getBaudrate (void) |
uint8_t | getTimeout (void) |
void | setBaudrate (uint32_t baudrate) |
void | setTimeout (uint8_t timeout) |
Static Public Attributes | |
constexpr static uint8_t | CRC7_POLY = 0x91 |
constexpr static uint8_t | MAX_BLOCK_SIZE = 64 |
constexpr static uint8_t | BLOCK_END = 0x80 |
void USART::clearInputBuffer | ( | void | ) |
Verwirft Daten, die bereits im Puffer liegen, aber noch nicht gelesen wurden
USARTException |
void USART::clearOutputBuffer | ( | void | ) |
Verwirft Daten, die bereits im Puffer liegen, aber noch nicht gesendet wurden
USARTException |
void USART::closeDevice | ( | void | ) |
void USART::flushOutputBuffer | ( | void | ) |
Schreibt Daten, die bereits im Puffer liegen, aber noch nicht gesendet wurden
USARTException |
uint32_t USART::getBaudrate | ( | void | ) |
uint8_t USART::getTimeout | ( | void | ) |
void USART::openDevice | ( | std::string | device | ) |
void USART::printStatistics | ( | void | ) |
uint8_t USART::readByte | ( | void | ) |
Empfängt ein Byte über die USART Schnittstelle
USARTException |
uint16_t USART::readInt | ( | void | ) |
Empfängt ein Integer über die USART Schnittstelle
USARTException |
void USART::setBaudrate | ( | uint32_t | baudrate | ) |
void USART::setTimeout | ( | uint8_t | timeout | ) |
void USART::writeByte | ( | uint8_t | b | ) |
Sendet ein Byte über die USART Schnittstelle
b | das zu sendende Byte |
USARTException |
void USART::writeInt | ( | uint16_t | d | ) |
Sendet ein Integer über die USART Schnittstelle
b | das zu sendende Int |
USARTException |
void USART::writeU32 | ( | uint32_t | d | ) |
Sendet ein uint32_t über die USART Schnittstelle
b | das zu sendende uint32_t |
USARTException |