Classes | Typedefs | Functions
can Namespace Reference

Classes

class  AsioDriver
 
class  BCMsocket
 
class  BufferedReader
 
class  CommInterface
 
class  DelegateHelper
 
class  DriverInterface
 
class  DummyInterface
 
struct  ErrorHeader
 
struct  ExtendedHeader
 
class  FilteredDispatcher
 
class  FilteredFrameListener
 
struct  Frame
 
class  FrameFilter
 
class  FrameMaskFilter
 
class  FrameRangeFilter
 
struct  Header
 
class  Listener
 
struct  MsgHeader
 
class  NoSettings
 
class  Settings
 
class  SettingsMap
 
class  SimpleDispatcher
 
class  SocketCANInterface
 
class  State
 
class  StateInterface
 
class  StateWaiter
 
class  ThreadedInterface
 

Typedefs

using CommInterfaceSharedPtr = std::shared_ptr< CommInterface >
 
using DriverInterfaceSharedPtr = std::shared_ptr< DriverInterface >
 
using DummyInterfaceSharedPtr = std::shared_ptr< DummyInterface >
 
using FrameFilterSharedPtr = std::shared_ptr< FrameFilter >
 
using FrameListenerConstSharedPtr = CommInterface::FrameListenerConstSharedPtr
 
using SettingsConstSharedPtr = std::shared_ptr< const Settings >
 
using SettingsSharedPtr = std::shared_ptr< Settings >
 
using SocketCANDriver = SocketCANInterface
 
using SocketCANDriverSharedPtr = std::shared_ptr< SocketCANDriver >
 
using SocketCANInterfaceSharedPtr = std::shared_ptr< SocketCANInterface >
 
using StateInterfaceSharedPtr = std::shared_ptr< StateInterface >
 
using StateListenerConstSharedPtr = StateInterface::StateListenerConstSharedPtr
 
using ThreadedSocketCANInterface = ThreadedInterface< SocketCANInterface >
 
using ThreadedSocketCANInterfaceSharedPtr = std::shared_ptr< ThreadedSocketCANInterface >
 

Functions

std::string buffer2hex (const std::string &in, bool lc)
 
std::string byte2hex (const uint8_t &d, bool pad, bool lc)
 
bool dec2hex (char &h, const uint8_t &d, bool lc)
 
bool hex2buffer (std::string &out, const std::string &in_raw, bool pad)
 
bool hex2dec (uint8_t &d, const char &h)
 
std::ostream & operator<< (std::ostream &stream, const Header &h)
 
std::ostream & operator<< (std::ostream &stream, const Frame &f)
 
template<class T >
FrameFilterSharedPtr tofilter (const T &ct)
 
template<>
FrameFilterSharedPtr tofilter (const std::string &s)
 
template<>
FrameFilterSharedPtr tofilter (const uint32_t &id)
 
FrameFilterSharedPtr tofilter (const char *s)
 
template<typename T >
FilteredFrameListener::FilterVector tofilters (const T &v)
 
Frame toframe (const std::string &s)
 
Header toheader (const std::string &s)
 
uint32_t tohex (const std::string &s)
 
std::string tostring (const Header &h, bool lc)
 
std::string tostring (const Frame &f, bool lc)
 

Typedef Documentation

◆ CommInterfaceSharedPtr

using can::CommInterfaceSharedPtr = typedef std::shared_ptr<CommInterface>

Definition at line 175 of file interface.h.

◆ DriverInterfaceSharedPtr

using can::DriverInterfaceSharedPtr = typedef std::shared_ptr<DriverInterface>

Definition at line 225 of file interface.h.

◆ DummyInterfaceSharedPtr

using can::DummyInterfaceSharedPtr = typedef std::shared_ptr<DummyInterface>

Definition at line 97 of file dummy.h.

◆ FrameFilterSharedPtr

using can::FrameFilterSharedPtr = typedef std::shared_ptr<FrameFilter>

Definition at line 15 of file filter.h.

◆ FrameListenerConstSharedPtr

Definition at line 176 of file interface.h.

◆ SettingsConstSharedPtr

using can::SettingsConstSharedPtr = typedef std::shared_ptr<const Settings>

Definition at line 31 of file settings.h.

◆ SettingsSharedPtr

using can::SettingsSharedPtr = typedef std::shared_ptr<Settings>

Definition at line 32 of file settings.h.

◆ SocketCANDriver

Definition at line 266 of file socketcan.h.

◆ SocketCANDriverSharedPtr

using can::SocketCANDriverSharedPtr = typedef std::shared_ptr<SocketCANDriver>

Definition at line 267 of file socketcan.h.

◆ SocketCANInterfaceSharedPtr

using can::SocketCANInterfaceSharedPtr = typedef std::shared_ptr<SocketCANInterface>

Definition at line 268 of file socketcan.h.

◆ StateInterfaceSharedPtr

using can::StateInterfaceSharedPtr = typedef std::shared_ptr<StateInterface>

Definition at line 132 of file interface.h.

◆ StateListenerConstSharedPtr

Definition at line 133 of file interface.h.

◆ ThreadedSocketCANInterface

Definition at line 271 of file socketcan.h.

◆ ThreadedSocketCANInterfaceSharedPtr

Definition at line 272 of file socketcan.h.

Function Documentation

◆ buffer2hex()

std::string can::buffer2hex ( const std::string &  in,
bool  lc 
)

Definition at line 65 of file string.cpp.

◆ byte2hex()

std::string can::byte2hex ( const uint8_t &  d,
bool  pad,
bool  lc 
)

Definition at line 52 of file string.cpp.

◆ dec2hex()

bool can::dec2hex ( char &  h,
const uint8_t &  d,
bool  lc 
)

Definition at line 38 of file string.cpp.

◆ hex2buffer()

bool can::hex2buffer ( std::string &  out,
const std::string &  in_raw,
bool  pad 
)

Definition at line 19 of file string.cpp.

◆ hex2dec()

bool can::hex2dec ( uint8_t &  d,
const char &  h 
)

Definition at line 6 of file string.cpp.

◆ operator<<() [1/2]

std::ostream & can::operator<< ( std::ostream &  stream,
const Header h 
)

Definition at line 174 of file string.cpp.

◆ operator<<() [2/2]

std::ostream & can::operator<< ( std::ostream &  stream,
const Frame f 
)

Definition at line 178 of file string.cpp.

◆ tofilter() [1/4]

template<class T >
FrameFilterSharedPtr can::tofilter ( const T &  ct)

◆ tofilter() [2/4]

template<>
FrameFilterSharedPtr can::tofilter ( const std::string &  s)

Definition at line 139 of file string.cpp.

◆ tofilter() [3/4]

template<>
FrameFilterSharedPtr can::tofilter ( const uint32_t &  id)

Definition at line 166 of file string.cpp.

◆ tofilter() [4/4]

FrameFilterSharedPtr can::tofilter ( const char *  s)

Definition at line 170 of file string.cpp.

◆ tofilters()

template<typename T >
FilteredFrameListener::FilterVector can::tofilters ( const T &  v)

Definition at line 35 of file string.h.

◆ toframe()

Frame can::toframe ( const std::string &  s)

Definition at line 119 of file string.cpp.

◆ toheader()

Header can::toheader ( const std::string &  s)

Definition at line 103 of file string.cpp.

◆ tohex()

uint32_t can::tohex ( const std::string &  s)

Definition at line 95 of file string.cpp.

◆ tostring() [1/2]

std::string can::tostring ( const Header h,
bool  lc 
)

Definition at line 78 of file string.cpp.

◆ tostring() [2/2]

std::string can::tostring ( const Frame f,
bool  lc 
)

Definition at line 110 of file string.cpp.



socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Mon Feb 28 2022 23:28:00