SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::Transport Class Referenceabstract

#include <ma_transport.h>

Collaboration diagram for ma::Transport:

Public Member Functions

 Transport (ma_transport_type_t type) noexcept
 
virtual ~Transport ()=default
 
 Transport (const Transport &)=delete
 
Transportoperator= (const Transport &)=delete
 
virtual ma_err_t init (const void *config) noexcept=0
 
virtual void deInit () noexcept=0
 
 operator bool () const noexcept
 
ma_transport_type_t getType () const noexcept
 
virtual size_t available () const noexcept=0
 
virtual size_t send (const char *data, size_t length) noexcept=0
 
virtual size_t flush () noexcept=0
 
virtual size_t receive (char *data, size_t length) noexcept=0
 
virtual size_t receiveIf (char *data, size_t length, char delimiter) noexcept=0
 

Protected Attributes

bool m_initialized
 
ma_transport_type_t m_type
 

Constructor & Destructor Documentation

◆ Transport() [1/2]

ma::Transport::Transport ( ma_transport_type_t  type)
inlineexplicitnoexcept

◆ ~Transport()

virtual ma::Transport::~Transport ( )
virtualdefault

◆ Transport() [2/2]

ma::Transport::Transport ( const Transport )
delete

Member Function Documentation

◆ available()

virtual size_t ma::Transport::available ( ) const
pure virtualnoexcept

◆ deInit()

virtual void ma::Transport::deInit ( )
pure virtualnoexcept

◆ flush()

virtual size_t ma::Transport::flush ( )
pure virtualnoexcept

◆ getType()

ma_transport_type_t ma::Transport::getType ( ) const
inlinenoexcept

◆ init()

virtual ma_err_t ma::Transport::init ( const void *  config)
pure virtualnoexcept

◆ operator bool()

ma::Transport::operator bool ( ) const
inlinenoexcept

◆ operator=()

Transport& ma::Transport::operator= ( const Transport )
delete

◆ receive()

virtual size_t ma::Transport::receive ( char *  data,
size_t  length 
)
pure virtualnoexcept

◆ receiveIf()

virtual size_t ma::Transport::receiveIf ( char *  data,
size_t  length,
char  delimiter 
)
pure virtualnoexcept

◆ send()

virtual size_t ma::Transport::send ( const char *  data,
size_t  length 
)
pure virtualnoexcept
Here is the caller graph for this function:

Member Data Documentation

◆ m_initialized

bool ma::Transport::m_initialized
protected

◆ m_type

ma_transport_type_t ma::Transport::m_type
protected