Public Member Functions | Private Attributes | List of all members
uavcan_linux::SocketCanDriver::IfaceWrapper Class Reference
Inheritance diagram for uavcan_linux::SocketCanDriver::IfaceWrapper:
Inheritance graph
[legend]

Public Member Functions

 IfaceWrapper (const SystemClock &clock, int fd)
 
bool isDown () const
 
void updateDownStatusFromPollResult (const ::pollfd &pfd)
 
- Public Member Functions inherited from uavcan_linux::SocketCanIface
std::int16_t configureFilters (const uavcan::CanFilterConfig *const filter_configs, const std::uint16_t num_configs) override
 
std::uint64_t getErrorCount () const override
 
const decltype(errors_) & getErrors () const
 
int getFileDescriptor () const
 
std::uint16_t getNumFilters () const override
 
bool hasReadyRx () const
 
bool hasReadyTx () const
 
void poll (bool read, bool write)
 
std::int16_t receive (uavcan::CanFrame &out_frame, uavcan::MonotonicTime &out_ts_monotonic, uavcan::UtcTime &out_ts_utc, uavcan::CanIOFlags &out_flags) override
 
std::int16_t send (const uavcan::CanFrame &frame, const uavcan::MonotonicTime tx_deadline, const uavcan::CanIOFlags flags) override
 
 SocketCanIface (const SystemClock &clock, int socket_fd, int max_frames_in_socket_tx_queue=2)
 
virtual ~SocketCanIface ()
 
- Public Member Functions inherited from uavcan::ICanIface
virtual int16_t receive (CanFrame &out_frame, MonotonicTime &out_ts_monotonic, UtcTime &out_ts_utc, CanIOFlags &out_flags)=0
 
virtual int16_t send (const CanFrame &frame, MonotonicTime tx_deadline, CanIOFlags flags)=0
 
virtual ~ICanIface ()
 

Private Attributes

bool down_ = false
 

Additional Inherited Members

- Static Public Member Functions inherited from uavcan_linux::SocketCanIface
static int openSocket (const std::string &iface_name)
 
- Static Public Attributes inherited from uavcan_linux::SocketCanIface
static constexpr unsigned NumFilters = 8
 

Detailed Description

Definition at line 620 of file socketcan.hpp.

Constructor & Destructor Documentation

◆ IfaceWrapper()

uavcan_linux::SocketCanDriver::IfaceWrapper::IfaceWrapper ( const SystemClock clock,
int  fd 
)
inline

Definition at line 625 of file socketcan.hpp.

Member Function Documentation

◆ isDown()

bool uavcan_linux::SocketCanDriver::IfaceWrapper::isDown ( ) const
inline

Definition at line 642 of file socketcan.hpp.

◆ updateDownStatusFromPollResult()

void uavcan_linux::SocketCanDriver::IfaceWrapper::updateDownStatusFromPollResult ( const ::pollfd &  pfd)
inline

Definition at line 627 of file socketcan.hpp.

Member Data Documentation

◆ down_

bool uavcan_linux::SocketCanDriver::IfaceWrapper::down_ = false
private

Definition at line 622 of file socketcan.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:05