mn::device::basic_device Class Referenceabstract

#include <mn_basic_device.hpp>

+ Inheritance diagram for mn::device::basic_device:

Public Member Functions

 basic_device (char prefix[8])
 
virtual int open ()=0
 Opens device. More...
 
virtual int stop ()=0
 Closes device. More...
 
virtual bool is_enable ()=0
 
virtual bool is_stream_support ()=0
 
const char * get_prefix ()
 

Protected Attributes

const char * m_prefix
 

Constructor & Destructor Documentation

◆ basic_device()

mn::device::basic_device::basic_device ( char  prefix[8])
inline

Member Function Documentation

◆ get_prefix()

const char* mn::device::basic_device::get_prefix ( )
inline

◆ is_enable()

virtual bool mn::device::basic_device::is_enable ( )
pure virtual

Implemented in mn::device::basic_wifi_ap.

◆ is_stream_support()

virtual bool mn::device::basic_device::is_stream_support ( )
pure virtual

◆ open()

virtual int mn::device::basic_device::open ( )
pure virtual

Opens device.

Returns
0 on success, error code otherwise

Implemented in mn::device::basic_block_device, and mn::device::basic_wifi_ap.

◆ stop()

virtual int mn::device::basic_device::stop ( )
pure virtual

Closes device.

Precondition
Device is opened.
Returns
0 on success, error code otherwise

Implemented in mn::device::basic_block_device, and mn::device::basic_wifi_ap.

Member Data Documentation

◆ m_prefix

const char* mn::device::basic_device::m_prefix
protected

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