Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
uavcan_kinetis::BusEvent Class Reference

#include <thread.hpp>

Inheritance diagram for uavcan_kinetis::BusEvent:
Inheritance graph
[legend]

Public Member Functions

 BusEvent (CanDriver &can_driver)
 
void signalFromInterrupt ()
 
bool wait (uavcan::MonotonicDuration duration)
 
 ~BusEvent ()
 

Static Public Attributes

static const char *const DevName = "/dev/uavcan/busevent"
 

Private Member Functions

int addPollWaiter (::pollfd *fds)
 
int close (::file *filp)
 
int open (::file *filp)
 
int poll (::file *filp, ::pollfd *fds, bool setup)
 
int removePollWaiter (::pollfd *fds)
 
- Private Member Functions inherited from uavcan::Noncopyable
 Noncopyable ()
 
 ~Noncopyable ()
 

Static Private Member Functions

static int closeTrampoline (::file *filp)
 
static int openTrampoline (::file *filp)
 
static int pollTrampoline (::file *filp, ::pollfd *fds, bool setup)
 

Private Attributes

CanDrivercan_driver_
 
::file_operations file_ops_
 
::pollfd * pollset_ [MaxPollWaiters]
 
bool signal_
 

Static Private Attributes

static const unsigned MaxPollWaiters = 8
 

Detailed Description

All bus events are reported as POLLIN.

Definition at line 29 of file kinetis/libuavcan/driver/include/uavcan_kinetis/thread.hpp.

Constructor & Destructor Documentation

◆ BusEvent()

uavcan_kinetis::BusEvent::BusEvent ( CanDriver can_driver)

Definition at line 102 of file uc_kinetis_thread.cpp.

◆ ~BusEvent()

uavcan_kinetis::BusEvent::~BusEvent ( )

Definition at line 118 of file uc_kinetis_thread.cpp.

Member Function Documentation

◆ addPollWaiter()

int uavcan_kinetis::BusEvent::addPollWaiter ( ::pollfd *  fds)
private

Definition at line 76 of file uc_kinetis_thread.cpp.

◆ close()

int uavcan_kinetis::BusEvent::close ( ::file *  filp)
private

Definition at line 39 of file uc_kinetis_thread.cpp.

◆ closeTrampoline()

int uavcan_kinetis::BusEvent::closeTrampoline ( ::file *  filp)
staticprivate

Definition at line 23 of file uc_kinetis_thread.cpp.

◆ open()

int uavcan_kinetis::BusEvent::open ( ::file *  filp)
private

Definition at line 33 of file uc_kinetis_thread.cpp.

◆ openTrampoline()

int uavcan_kinetis::BusEvent::openTrampoline ( ::file *  filp)
staticprivate

Definition at line 18 of file uc_kinetis_thread.cpp.

◆ poll()

int uavcan_kinetis::BusEvent::poll ( ::file *  filp,
::pollfd *  fds,
bool  setup 
)
private

Definition at line 45 of file uc_kinetis_thread.cpp.

◆ pollTrampoline()

int uavcan_kinetis::BusEvent::pollTrampoline ( ::file *  filp,
::pollfd *  fds,
bool  setup 
)
staticprivate

Definition at line 28 of file uc_kinetis_thread.cpp.

◆ removePollWaiter()

int uavcan_kinetis::BusEvent::removePollWaiter ( ::pollfd *  fds)
private

Definition at line 89 of file uc_kinetis_thread.cpp.

◆ signalFromInterrupt()

void uavcan_kinetis::BusEvent::signalFromInterrupt ( )

Definition at line 142 of file uc_kinetis_thread.cpp.

◆ wait()

bool uavcan_kinetis::BusEvent::wait ( uavcan::MonotonicDuration  duration)

Definition at line 123 of file uc_kinetis_thread.cpp.

Member Data Documentation

◆ can_driver_

CanDriver& uavcan_kinetis::BusEvent::can_driver_
private

◆ DevName

const char *const uavcan_kinetis::BusEvent::DevName = "/dev/uavcan/busevent"
static

◆ file_ops_

::file_operations uavcan_kinetis::BusEvent::file_ops_
private

◆ MaxPollWaiters

const unsigned uavcan_kinetis::BusEvent::MaxPollWaiters = 8
staticprivate

◆ pollset_

::pollfd* uavcan_kinetis::BusEvent::pollset_[MaxPollWaiters]
private

◆ signal_

bool uavcan_kinetis::BusEvent::signal_
private

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


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