#include <impl.h>
Public Member Functions | |
| size_t | available () const |
| void | close () |
| void | flush () const |
| void | flushInput () const |
| void | flushOutput () const |
| unsigned long | getBaudrate () const |
| bytesize_t | getBytesize () const |
| bool | getCD () const |
| bool | getCTS () const |
| bool | getDSR () const |
| flowcontrol_t | getFlowcontrol () const |
| uint32_t | getModemStatus () const |
| parity_t | getParity () const |
| std::string | getPort () const |
| bool | getRI () const |
| stopbits_t | getStopbits () const |
| Timeout | getTimeout () const |
| bool | isOpen () const |
| void | open () |
| size_t | read (uint8_t *buf, size_t size=1) |
| void | sendBreak (int duration_ms) const |
| SerialImpl (std::string port, unsigned long baudrate, Timeout timeout, bytesize_t bytesize, parity_t parity, stopbits_t stopbits, flowcontrol_t flowcontrol) | |
| void | setBaudrate (unsigned long baudrate) |
| void | setBreak (bool level) const |
| void | setBytesize (bytesize_t bytesize) |
| void | setDTR (bool level) const |
| void | setFlowcontrol (flowcontrol_t flowcontrol) |
| void | setModemStatus (uint32_t request, uint32_t command=0) const |
| void | setParity (parity_t parity) |
| void | setPort (const std::string &port) |
| void | setRTS (bool level) const |
| void | setStopbits (stopbits_t stopbits) |
| void | setTimeout (const Timeout &timeout) |
| void | waitByteTimes (size_t count) const |
| void | waitForModemChanges () const |
| bool | waitReadable (std::chrono::milliseconds timeout_ms) const |
| bool | waitWritable (std::chrono::milliseconds timeout_ms) const |
| size_t | write (const uint8_t *data, size_t size) |
| virtual | ~SerialImpl () |
Protected Member Functions | |
| void | reconfigurePort () |
Private Attributes | |
| unsigned long | baudrate_ |
| bytesize_t | bytesize_ |
| int | fd_ |
| flowcontrol_t | flowcontrol_ |
| bool | is_open_ |
| parity_t | parity_ |
| std::string | port_ |
| stopbits_t | stopbits_ |
| Timeout | timeout_ |
| Serial::SerialImpl::SerialImpl | ( | std::string | port, |
| unsigned long | baudrate, | ||
| Timeout | timeout, | ||
| bytesize_t | bytesize, | ||
| parity_t | parity, | ||
| stopbits_t | stopbits, | ||
| flowcontrol_t | flowcontrol | ||
| ) |
Definition at line 28 of file impl_unix.cpp.
|
virtual |
Definition at line 44 of file impl_unix.cpp.
| size_t Serial::SerialImpl::available | ( | ) | const |
Definition at line 371 of file impl_unix.cpp.
| void Serial::SerialImpl::close | ( | ) |
Definition at line 359 of file impl_unix.cpp.
| void Serial::SerialImpl::flush | ( | ) | const |
Definition at line 542 of file impl_unix.cpp.
| void Serial::SerialImpl::flushInput | ( | ) | const |
Definition at line 551 of file impl_unix.cpp.
| void Serial::SerialImpl::flushOutput | ( | ) | const |
Definition at line 560 of file impl_unix.cpp.
| unsigned long Serial::SerialImpl::getBaudrate | ( | ) | const |
Definition at line 494 of file impl_unix.cpp.
| serial::bytesize_t Serial::SerialImpl::getBytesize | ( | ) | const |
Definition at line 505 of file impl_unix.cpp.
| bool Serial::SerialImpl::getCD | ( | ) | const |
Definition at line 636 of file impl_unix.cpp.
| bool Serial::SerialImpl::getCTS | ( | ) | const |
Definition at line 624 of file impl_unix.cpp.
| bool Serial::SerialImpl::getDSR | ( | ) | const |
Definition at line 628 of file impl_unix.cpp.
| serial::flowcontrol_t Serial::SerialImpl::getFlowcontrol | ( | ) | const |
Definition at line 538 of file impl_unix.cpp.
| uint32_t Serial::SerialImpl::getModemStatus | ( | ) | const |
Definition at line 613 of file impl_unix.cpp.
| serial::parity_t Serial::SerialImpl::getParity | ( | ) | const |
Definition at line 516 of file impl_unix.cpp.
| std::string Serial::SerialImpl::getPort | ( | ) | const |
Definition at line 475 of file impl_unix.cpp.
| bool Serial::SerialImpl::getRI | ( | ) | const |
Definition at line 632 of file impl_unix.cpp.
| serial::stopbits_t Serial::SerialImpl::getStopbits | ( | ) | const |
Definition at line 527 of file impl_unix.cpp.
| Serial::Timeout Serial::SerialImpl::getTimeout | ( | ) | const |
Definition at line 483 of file impl_unix.cpp.
| bool Serial::SerialImpl::isOpen | ( | ) | const |
Definition at line 367 of file impl_unix.cpp.
| void Serial::SerialImpl::open | ( | ) |
Definition at line 48 of file impl_unix.cpp.
| size_t Serial::SerialImpl::read | ( | uint8_t * | buf, |
| size_t | size = 1 |
||
| ) |
Definition at line 415 of file impl_unix.cpp.
|
protected |
Definition at line 80 of file impl_unix.cpp.
| void Serial::SerialImpl::sendBreak | ( | int | duration_ms | ) | const |
Definition at line 569 of file impl_unix.cpp.
| void Serial::SerialImpl::setBaudrate | ( | unsigned long | baudrate | ) |
Definition at line 487 of file impl_unix.cpp.
| void Serial::SerialImpl::setBreak | ( | bool | level | ) | const |
Definition at line 578 of file impl_unix.cpp.
| void Serial::SerialImpl::setBytesize | ( | serial::bytesize_t | bytesize | ) |
Definition at line 498 of file impl_unix.cpp.
| void Serial::SerialImpl::setDTR | ( | bool | level | ) | const |
Definition at line 595 of file impl_unix.cpp.
| void Serial::SerialImpl::setFlowcontrol | ( | serial::flowcontrol_t | flowcontrol | ) |
Definition at line 531 of file impl_unix.cpp.
| void Serial::SerialImpl::setModemStatus | ( | uint32_t | request, |
| uint32_t | command = 0 |
||
| ) | const |
Definition at line 582 of file impl_unix.cpp.
| void Serial::SerialImpl::setParity | ( | serial::parity_t | parity | ) |
Definition at line 509 of file impl_unix.cpp.
| void Serial::SerialImpl::setPort | ( | const std::string & | port | ) |
Definition at line 471 of file impl_unix.cpp.
| void Serial::SerialImpl::setRTS | ( | bool | level | ) | const |
Definition at line 591 of file impl_unix.cpp.
| void Serial::SerialImpl::setStopbits | ( | serial::stopbits_t | stopbits | ) |
Definition at line 520 of file impl_unix.cpp.
| void Serial::SerialImpl::setTimeout | ( | const Timeout & | timeout | ) |
Definition at line 479 of file impl_unix.cpp.
| void Serial::SerialImpl::waitByteTimes | ( | size_t | count | ) | const |
Definition at line 407 of file impl_unix.cpp.
| void Serial::SerialImpl::waitForModemChanges | ( | ) | const |
Definition at line 599 of file impl_unix.cpp.
| bool Serial::SerialImpl::waitReadable | ( | std::chrono::milliseconds | timeout_ms | ) | const |
Definition at line 393 of file impl_unix.cpp.
| bool Serial::SerialImpl::waitWritable | ( | std::chrono::milliseconds | timeout_ms | ) | const |
Definition at line 400 of file impl_unix.cpp.
| size_t Serial::SerialImpl::write | ( | const uint8_t * | data, |
| size_t | size | ||
| ) |
Definition at line 446 of file impl_unix.cpp.
|
private |
|
private |
|
private |