APM:Libraries
Public Member Functions | Private Attributes | List of all members
Linux::CANManager::IfaceWrapper Class Reference
Inheritance diagram for Linux::CANManager::IfaceWrapper:
[legend]
Collaboration diagram for Linux::CANManager::IfaceWrapper:
[legend]

Public Member Functions

 IfaceWrapper (int fd)
 
void updateDownStatusFromPollResult (const pollfd &pfd)
 
bool isDown () const
 
- Public Member Functions inherited from Linux::CAN
 CAN (int socket_fd=0)
 
 ~CAN ()
 
bool begin (uint32_t bitrate) override
 
void end () override
 
void reset () override
 
bool is_initialized () override
 
int32_t tx_pending () override
 
int32_t available () override
 
int getFileDescriptor () const
 
int16_t send (const uavcan::CanFrame &frame, uavcan::MonotonicTime tx_deadline, uavcan::CanIOFlags flags) override
 
int16_t receive (uavcan::CanFrame &out_frame, uavcan::MonotonicTime &out_ts_monotonic, uavcan::UtcTime &out_ts_utc, uavcan::CanIOFlags &out_flags) override
 
bool hasReadyTx () const
 
bool hasReadyRx () const
 
void poll (bool read, bool write)
 
int16_t configureFilters (const uavcan::CanFilterConfig *filter_configs, uint16_t num_configs) override
 
uint16_t getNumFilters () const override
 
uint64_t getErrorCount () const override
 

Private Attributes

bool _down = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Linux::CAN
static int openSocket (const std::string &iface_name)
 

Detailed Description

Definition at line 211 of file CAN.h.

Constructor & Destructor Documentation

◆ IfaceWrapper()

Linux::CANManager::IfaceWrapper::IfaceWrapper ( int  fd)
inline

Definition at line 216 of file CAN.h.

Member Function Documentation

◆ isDown()

bool Linux::CANManager::IfaceWrapper::isDown ( ) const
inline

Definition at line 220 of file CAN.h.

◆ updateDownStatusFromPollResult()

void Linux::CANManager::IfaceWrapper::updateDownStatusFromPollResult ( const pollfd &  pfd)

Member Data Documentation

◆ _down

bool Linux::CANManager::IfaceWrapper::_down = false
private

Definition at line 213 of file CAN.h.


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