Lely core libraries  2.3.4
lely::io::CanController Class Reference

A CAN controller. More...

#include <can.hpp>

Inheritance diagram for lely::io::CanController:
Collaboration diagram for lely::io::CanController:

Public Member Functions

 CanController (const char *name, ::std::size_t txlen=0)
 
 CanController (unsigned int index, ::std::size_t txlen=0)
 
 ~CanController ()
 
- Public Member Functions inherited from lely::io::CanControllerBase
void stop (::std::error_code &ec) noexcept
 
void stop ()
 
bool stopped (::std::error_code &ec) const noexcept
 
bool stopped () const
 
void restart (::std::error_code &ec) noexcept
 
void restart ()
 
void get_bitrate (int *pnominal, int *pdata, ::std::error_code &ec) const noexcept
 
void get_bitrate (int *pnominal, int *pdata=nullptr) const
 
void set_bitrate (int nominal, int data, ::std::error_code &ec) noexcept
 
void set_bitrate (int nominal, int data=0)
 
CanState get_state (::std::error_code &ec) const noexcept
 
CanState get_state () const
 

Detailed Description

A CAN controller.

Definition at line 36 of file can.hpp.

Constructor & Destructor Documentation

◆ CanController() [1/2]

lely::io::CanController::CanController ( const char *  name,
::std::size_t  txlen = 0 
)
inline
See also
io_can_ctrl_create_from_name()

Definition at line 39 of file can.hpp.

◆ CanController() [2/2]

lely::io::CanController::CanController ( unsigned int  index,
::std::size_t  txlen = 0 
)
inline
See also
io_can_ctrl_create_from_index()

Definition at line 45 of file can.hpp.

◆ ~CanController()

lely::io::CanController::~CanController ( )
inline
See also
io_can_ctrl_destroy()

Definition at line 67 of file can.hpp.


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