Buffered serial driver class template. More...
#include <cmsis-plus/posix-driver/circular-buffer.h>
Public Member Functions | |
Constructors & Destructor | |
device_serial_buffered (const char *device_name, os::driver::Serial *driver, os::posix::circular_buffer_bytes *rx_buf, os::posix::circular_buffer_bytes *tx_buf) | |
virtual | ~device_serial_buffered () |
Static Public Member Functions | |
Public Static Member Functions | |
static void | signal_event (device_serial_buffered *object, uint32_t event) |
Protected Member Functions | |
Private Member Functions | |
virtual int | do_vopen (const char *path, int oflag, std::va_list args) override |
virtual int | do_close (void) override |
virtual ssize_t | do_read (void *buf, std::size_t nbyte) override |
virtual ssize_t | do_write (const void *buf, std::size_t nbyte) override |
virtual bool | do_is_opened (void) override |
virtual bool | do_is_connected (void) override |
Private Types | |
using | critical_section = CS |
Buffered serial driver class template.
Definition at line 52 of file device-serial-buffered.h.
|
private |
Definition at line 54 of file device-serial-buffered.h.
os::posix::device_serial_buffered< CS >::device_serial_buffered | ( | const char * | device_name, |
os::driver::Serial * | driver, | ||
os::posix::circular_buffer_bytes * | rx_buf, | ||
os::posix::circular_buffer_bytes * | tx_buf | ||
) |
Definition at line 198 of file device-serial-buffered.h.
|
virtual |
Definition at line 220 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 354 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 347 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 340 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 401 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 239 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 432 of file device-serial-buffered.h.
|
static |
Definition at line 610 of file device-serial-buffered.h.