µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::posix::device_serial_buffered< CS > Class Template Reference

Buffered serial driver class template. More...

#include <cmsis-plus/posix-driver/circular-buffer.h>

+ Inheritance diagram for os::posix::device_serial_buffered< CS >:

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
 

Detailed Description

template<typename CS>
class os::posix::device_serial_buffered< CS >

Buffered serial driver class template.

Definition at line 63 of file device-serial-buffered.h.

Member Typedef Documentation

◆ critical_section

template<typename CS >
using os::posix::device_serial_buffered< CS >::critical_section = CS
private

Definition at line 65 of file device-serial-buffered.h.

Constructor & Destructor Documentation

◆ device_serial_buffered()

template<typename CS >
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.

◆ ~device_serial_buffered()

template<typename CS >
os::posix::device_serial_buffered< CS >::~device_serial_buffered
virtual

Definition at line 231 of file device-serial-buffered.h.

Member Function Documentation

◆ do_close()

template<typename CS >
int os::posix::device_serial_buffered< CS >::do_close ( void  )
overrideprotectedvirtual

Definition at line 362 of file device-serial-buffered.h.

◆ do_is_connected()

template<typename CS >
bool os::posix::device_serial_buffered< CS >::do_is_connected ( void  )
overrideprotectedvirtual

Definition at line 355 of file device-serial-buffered.h.

◆ do_is_opened()

template<typename CS >
bool os::posix::device_serial_buffered< CS >::do_is_opened ( void  )
overrideprotectedvirtual

Definition at line 348 of file device-serial-buffered.h.

◆ do_read()

template<typename CS >
ssize_t os::posix::device_serial_buffered< CS >::do_read ( void *  buf,
std::size_t  nbyte 
)
overrideprotectedvirtual

Definition at line 409 of file device-serial-buffered.h.

◆ do_vopen()

template<typename CS >
int os::posix::device_serial_buffered< CS >::do_vopen ( const char *  path,
int  oflag,
std::va_list  args 
)
overrideprotectedvirtual

Definition at line 247 of file device-serial-buffered.h.

◆ do_write()

template<typename CS >
ssize_t os::posix::device_serial_buffered< CS >::do_write ( const void *  buf,
std::size_t  nbyte 
)
overrideprotectedvirtual

Definition at line 440 of file device-serial-buffered.h.

◆ signal_event()

template<typename CS >
void os::posix::device_serial_buffered< CS >::signal_event ( device_serial_buffered< CS > *  object,
uint32_t  event 
)
static

Definition at line 615 of file device-serial-buffered.h.


The documentation for this class was generated from the following file: