PX4 Firmware
PX4 Autopilot Software http://px4.io
uavcan_kinetis Namespace Reference

Namespaces

 clock
 
 flexcan
 

Classes

class  BusEvent
 All bus events are reported as POLLIN. More...
 
class  CanDriver
 CAN driver, incorporates all available CAN ifaces. More...
 
class  CanIface
 Single CAN iface. More...
 
class  CanInitHelper
 Helper class. More...
 
struct  CanRxItem
 RX queue item. More...
 
class  Mutex
 
class  MutexLocker
 
class  SystemClock
 Adapter for uavcan::ISystemClock. More...
 

Functions

static int can0_irq (const int irq, void *, void *args)
 

Variables

static const uavcan::int16_t ErrNotImplemented = 1001
 Driver error codes. More...
 
static const uavcan::int16_t ErrInvalidBitRate = 1002
 Bit rate not supported. More...
 
static const uavcan::int16_t ErrLogic = 1003
 Internal logic error. More...
 
static const uavcan::int16_t ErrUnsupportedFrame = 1004
 Frame not supported (e.g. RTR, CAN FD, etc) More...
 
static const uavcan::int16_t ErrMcrLPMAckNotSet = 1005
 MCR_LPMACK bit of the MCR register is not 1. More...
 
static const uavcan::int16_t ErrMcrLPMAckNotCleared = 1006
 MCR_LPMACK bit of the MCR register is not 0. More...
 
static const uavcan::int16_t ErrMcrFRZACKAckNotSet = 1007
 MCR_FRZACK bit of the MCR register is not 1. More...
 
static const uavcan::int16_t ErrMcrFRZACKAckNotCleared = 1008
 MCR_FRZACK bit of the MCR register is not 0. More...
 
static const uavcan::int16_t ErrBitRateNotDetected = 1009
 Auto bit rate detection could not be finished. More...
 
static const uavcan::int16_t ErrFilterNumConfigs = 1010
 Number of filters is more than supported. More...
 
static const uavcan::int16_t ErrMcrSOFTRSTNotCleared = 1011
 MCR_SOFTRST bit of the MCR register is not 0. More...
 

Function Documentation

◆ can0_irq()

static int uavcan_kinetis::can0_irq ( const int  irq,
void *  ,
void *  args 
)
static

Definition at line 997 of file uc_kinetis_flexcan.cpp.

References uavcan_kinetis::flexcan::Can, uavcan_kinetis::flexcan::CAN_FIFO_NE, uavcan_kinetis::flexcan::CAN_FIFO_OV, uavcan_kinetis::flexcan::CAN_FIFO_WARN, uavcan_kinetis::flexcan::CanType::IFLAG1, and uavcan_kinetis::flexcan::TXMBMask.

Referenced by uavcan_kinetis::CanDriver::initOnce().

Here is the caller graph for this function:

Variable Documentation

◆ ErrBitRateNotDetected

const uavcan::int16_t uavcan_kinetis::ErrBitRateNotDetected = 1009
static

Auto bit rate detection could not be finished.

Definition at line 28 of file can.hpp.

Referenced by uavcan_kinetis::CanInitHelper< RxQueueCapacity >::init().

◆ ErrFilterNumConfigs

const uavcan::int16_t uavcan_kinetis::ErrFilterNumConfigs = 1010
static

Number of filters is more than supported.

Definition at line 29 of file can.hpp.

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

◆ ErrInvalidBitRate

const uavcan::int16_t uavcan_kinetis::ErrInvalidBitRate = 1002
static

Bit rate not supported.

Definition at line 21 of file can.hpp.

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

◆ ErrLogic

const uavcan::int16_t uavcan_kinetis::ErrLogic = 1003
static

Internal logic error.

Definition at line 22 of file can.hpp.

◆ ErrMcrFRZACKAckNotCleared

const uavcan::int16_t uavcan_kinetis::ErrMcrFRZACKAckNotCleared = 1008
static

MCR_FRZACK bit of the MCR register is not 0.

Definition at line 27 of file can.hpp.

Referenced by uavcan_kinetis::CanIface::configureFilters(), and uavcan_kinetis::CanIface::init().

◆ ErrMcrFRZACKAckNotSet

const uavcan::int16_t uavcan_kinetis::ErrMcrFRZACKAckNotSet = 1007
static

MCR_FRZACK bit of the MCR register is not 1.

Definition at line 26 of file can.hpp.

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

◆ ErrMcrLPMAckNotCleared

const uavcan::int16_t uavcan_kinetis::ErrMcrLPMAckNotCleared = 1006
static

MCR_LPMACK bit of the MCR register is not 0.

Definition at line 25 of file can.hpp.

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

◆ ErrMcrLPMAckNotSet

const uavcan::int16_t uavcan_kinetis::ErrMcrLPMAckNotSet = 1005
static

MCR_LPMACK bit of the MCR register is not 1.

Definition at line 24 of file can.hpp.

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

◆ ErrMcrSOFTRSTNotCleared

const uavcan::int16_t uavcan_kinetis::ErrMcrSOFTRSTNotCleared = 1011
static

MCR_SOFTRST bit of the MCR register is not 0.

Definition at line 30 of file can.hpp.

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

◆ ErrNotImplemented

const uavcan::int16_t uavcan_kinetis::ErrNotImplemented = 1001
static

Driver error codes.

These values can be returned from driver functions negated.Feature not implemented

Definition at line 20 of file can.hpp.

◆ ErrUnsupportedFrame

const uavcan::int16_t uavcan_kinetis::ErrUnsupportedFrame = 1004
static

Frame not supported (e.g. RTR, CAN FD, etc)

Definition at line 23 of file can.hpp.

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