µ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::driver::Base Class Referenceabstract

#include <common.h>

+ Inheritance diagram for os::driver::Base:

Public Member Functions

 Base () noexcept=default
 
virtual ~Base () noexcept
 
const Versionget_version (void) noexcept
 Get driver version.
 
return_t power (Power state) noexcept
 Power up/down device.
 

Protected Member Functions

virtual const Versiondo_get_version (void) noexcept=0
 
virtual return_t do_power (Power state) noexcept=0
 

Detailed Description

Definition at line 169 of file common.h.

Constructor & Destructor Documentation

◆ Base()

os::driver::Base::Base ( )
defaultnoexcept

◆ ~Base()

os::driver::Base::~Base ( )
virtualnoexcept

Definition at line 51 of file common.cpp.

Member Function Documentation

◆ do_get_version()

virtual const Version & os::driver::Base::do_get_version ( void  )
protectedpure virtualnoexcept

◆ do_power()

virtual return_t os::driver::Base::do_power ( Power  state)
protectedpure virtualnoexcept

◆ get_version()

const Version & os::driver::Base::get_version ( void  )
inlinenoexcept

Get driver version.

Returns
Version.

Definition at line 213 of file common.h.

◆ power()

return_t os::driver::Base::power ( Power  state)
inlinenoexcept

Power up/down device.

Parameters
[in]statePower state
Returns
Execution status

Definition at line 219 of file common.h.


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