APM:Libraries
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
Linux::CANManager Class Reference

#include <CAN.h>

Inheritance diagram for Linux::CANManager:
[legend]
Collaboration diagram for Linux::CANManager:
[legend]

Classes

class  IfaceWrapper
 

Public Member Functions

 CANManager ()
 
 ~CANManager ()
 
void _timer_tick ()
 
virtual bool begin (uint32_t bitrate, uint8_t can_number) override
 
virtual void initialized (bool val)
 
virtual bool is_initialized ()
 
virtual AP_UAVCANget_UAVCAN (void) override
 
virtual void set_UAVCAN (AP_UAVCAN *uavcan) override
 
virtual CANgetIface (uint8_t iface_index) override
 
virtual uint8_t getNumIfaces () const override
 
virtual int16_t select (uavcan::CanSelectMasks &inout_masks, const uavcan::CanFrame *(&pending_tx)[uavcan::MaxCanIfaces], uavcan::MonotonicTime blocking_deadline) override
 
int init (uint8_t can_number)
 
int addIface (const std::string &iface_name)
 

Static Public Member Functions

static CANManagerfrom (AP_HAL::CANManager *can)
 

Public Attributes

AP_UAVCANp_uavcan
 

Private Attributes

bool _initialized
 
std::vector< std::unique_ptr< IfaceWrapper > > _ifaces
 

Detailed Description

Definition at line 173 of file CAN.h.

Constructor & Destructor Documentation

◆ CANManager()

Linux::CANManager::CANManager ( )
inline

Definition at line 180 of file CAN.h.

◆ ~CANManager()

Linux::CANManager::~CANManager ( )
inline

Definition at line 181 of file CAN.h.

Member Function Documentation

◆ _timer_tick()

void Linux::CANManager::_timer_tick ( )

Referenced by Linux::Scheduler::_timer_task().

Here is the caller graph for this function:

◆ addIface()

int Linux::CANManager::addIface ( const std::string &  iface_name)

◆ begin()

virtual bool Linux::CANManager::begin ( uint32_t  bitrate,
uint8_t  can_number 
)
overridevirtual

◆ from()

static CANManager* Linux::CANManager::from ( AP_HAL::CANManager *  can)
inlinestatic

Definition at line 175 of file CAN.h.

Referenced by Linux::Scheduler::_timer_task().

Here is the caller graph for this function:

◆ get_UAVCAN()

virtual AP_UAVCAN* Linux::CANManager::get_UAVCAN ( void  )
overridevirtual

◆ getIface()

virtual CAN* Linux::CANManager::getIface ( uint8_t  iface_index)
overridevirtual

◆ getNumIfaces()

virtual uint8_t Linux::CANManager::getNumIfaces ( ) const
inlineoverridevirtual

Definition at line 201 of file CAN.h.

Here is the call graph for this function:

◆ init()

int Linux::CANManager::init ( uint8_t  can_number)

◆ initialized()

virtual void Linux::CANManager::initialized ( bool  val)
virtual

◆ is_initialized()

virtual bool Linux::CANManager::is_initialized ( )
virtual

◆ select()

virtual int16_t Linux::CANManager::select ( uavcan::CanSelectMasks &  inout_masks,
const uavcan::CanFrame *(&)  pending_tx[uavcan::MaxCanIfaces],
uavcan::MonotonicTime  blocking_deadline 
)
overridevirtual

◆ set_UAVCAN()

virtual void Linux::CANManager::set_UAVCAN ( AP_UAVCAN uavcan)
overridevirtual

Member Data Documentation

◆ _ifaces

std::vector<std::unique_ptr<IfaceWrapper> > Linux::CANManager::_ifaces
private

Definition at line 225 of file CAN.h.

◆ _initialized

bool Linux::CANManager::_initialized
private

Definition at line 223 of file CAN.h.

◆ p_uavcan

AP_UAVCAN* Linux::CANManager::p_uavcan

Definition at line 192 of file CAN.h.


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