PX4 Firmware
PX4 Autopilot Software http://px4.io
uavcan_kinetis::CanIface::RxQueue Class Reference
Collaboration diagram for uavcan_kinetis::CanIface::RxQueue:

Public Member Functions

 RxQueue (CanRxItem *buf, uavcan::uint8_t capacity)
 
void push (const uavcan::CanFrame &frame, const uint64_t &utc_usec, uavcan::CanIOFlags flags)
 
void pop (uavcan::CanFrame &out_frame, uavcan::uint64_t &out_utc_usec, uavcan::CanIOFlags &out_flags)
 
void reset ()
 
unsigned getLength () const
 
uavcan::uint32_t getOverflowCount () const
 

Private Member Functions

void registerOverflow ()
 

Private Attributes

CanRxItem *const buf_
 
const uavcan::uint8_t capacity_
 
uavcan::uint8_t in_
 
uavcan::uint8_t out_
 
uavcan::uint8_t len_
 
uavcan::uint32_t overflow_cnt_
 

Detailed Description

Definition at line 54 of file can.hpp.

Constructor & Destructor Documentation

◆ RxQueue()

uavcan_kinetis::CanIface::RxQueue::RxQueue ( CanRxItem buf,
uavcan::uint8_t  capacity 
)
inline

Definition at line 66 of file can.hpp.

References uavcan_kinetis::CanRxItem::flags, uavcan_kinetis::CanRxItem::frame, lps22hb::reset(), and uavcan_kinetis::CanRxItem::utc_usec.

Here is the call graph for this function:

Member Function Documentation

◆ getLength()

unsigned uavcan_kinetis::CanIface::RxQueue::getLength ( ) const
inline

Definition at line 80 of file can.hpp.

◆ getOverflowCount()

uavcan::uint32_t uavcan_kinetis::CanIface::RxQueue::getOverflowCount ( ) const
inline

Definition at line 85 of file can.hpp.

Referenced by uavcan_kinetis::CanIface::getRxQueueOverflowCount().

Here is the caller graph for this function:

◆ pop()

void uavcan_kinetis::CanIface::RxQueue::pop ( uavcan::CanFrame &  out_frame,
uavcan::uint64_t &  out_utc_usec,
uavcan::CanIOFlags &  out_flags 
)

Definition at line 107 of file uc_kinetis_flexcan.cpp.

◆ push()

void uavcan_kinetis::CanIface::RxQueue::push ( const uavcan::CanFrame &  frame,
const uint64_t &  utc_usec,
uavcan::CanIOFlags  flags 
)

Definition at line 83 of file uc_kinetis_flexcan.cpp.

◆ registerOverflow()

void uavcan_kinetis::CanIface::RxQueue::registerOverflow ( )
private

Definition at line 76 of file uc_kinetis_flexcan.cpp.

◆ reset()

void uavcan_kinetis::CanIface::RxQueue::reset ( void  )

Definition at line 126 of file uc_kinetis_flexcan.cpp.

Member Data Documentation

◆ buf_

CanRxItem* const uavcan_kinetis::CanIface::RxQueue::buf_
private

Definition at line 56 of file can.hpp.

◆ capacity_

const uavcan::uint8_t uavcan_kinetis::CanIface::RxQueue::capacity_
private

Definition at line 57 of file can.hpp.

◆ in_

uavcan::uint8_t uavcan_kinetis::CanIface::RxQueue::in_
private

Definition at line 58 of file can.hpp.

◆ len_

uavcan::uint8_t uavcan_kinetis::CanIface::RxQueue::len_
private

Definition at line 60 of file can.hpp.

◆ out_

uavcan::uint8_t uavcan_kinetis::CanIface::RxQueue::out_
private

Definition at line 59 of file can.hpp.

◆ overflow_cnt_

uavcan::uint32_t uavcan_kinetis::CanIface::RxQueue::overflow_cnt_
private

Definition at line 61 of file can.hpp.


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