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 63 of file device-serial-buffered.h.
|
private |
Definition at line 65 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 209 of file device-serial-buffered.h.
|
virtual |
Definition at line 231 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 362 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 355 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 348 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 409 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 247 of file device-serial-buffered.h.
|
overrideprotectedvirtual |
Definition at line 440 of file device-serial-buffered.h.
|
static |
Definition at line 615 of file device-serial-buffered.h.