PX4 Firmware
PX4 Autopilot Software http://px4.io
flexcan.hpp File Reference
#include <uavcan_kinetis/build_config.hpp>
#include <uavcan/uavcan.hpp>
#include <stdint.h>
Include dependency graph for flexcan.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  uavcan_kinetis::flexcan::MBcsType
 
union  uavcan_kinetis::flexcan::FIFOcsType
 
union  uavcan_kinetis::flexcan::IDType
 
union  uavcan_kinetis::flexcan::FilterType
 
union  uavcan_kinetis::flexcan::DataType
 
struct  uavcan_kinetis::flexcan::MessageBufferType
 
struct  uavcan_kinetis::flexcan::RxFiFoType
 
struct  uavcan_kinetis::flexcan::CanType
 

Namespaces

 uavcan_kinetis
 
 uavcan_kinetis::flexcan
 

Enumerations

enum  { uavcan_kinetis::flexcan::HWMaxMB = 16 }
 
enum  uavcan_kinetis::flexcan::mb_code_tx {
  uavcan_kinetis::flexcan::TxMbInactive = 0x8, uavcan_kinetis::flexcan::TxMbAbort = 0x9, uavcan_kinetis::flexcan::TxMbDataOrRemote = 0xC, uavcan_kinetis::flexcan::TxMbTanswer = 0xE,
  uavcan_kinetis::flexcan::TxMbNotUsed = 0xF
}
 
enum  uavcan_kinetis::flexcan::mb_code_rx {
  uavcan_kinetis::flexcan::kRxMbInactive = 0x0, uavcan_kinetis::flexcan::kRxMbFull = 0x2, uavcan_kinetis::flexcan::kRxMbEmpty = 0x4, uavcan_kinetis::flexcan::kRxMbOverrun = 0x6,
  uavcan_kinetis::flexcan::kRxMbBusy = 0x8, uavcan_kinetis::flexcan::kRxMbRanswer = 0xA, uavcan_kinetis::flexcan::kRxMbNotUsed = 0xF
}
 
enum  { uavcan_kinetis::flexcan::FiFo = 0 }
 
enum  { uavcan_kinetis::flexcan::FirstFilter = 6 }
 
enum  { uavcan_kinetis::flexcan::NumHWFilters = 16 }
 
enum  { uavcan_kinetis::flexcan::NumMBinFiFoAndFilters = 10 }
 
enum  { uavcan_kinetis::flexcan::TXMBMask = (0b111111 << NumMBinFiFoAndFilters) }
 

Functions

constexpr unsigned long uavcan_kinetis::flexcan::MCR_IDAM_FMTA (0U<< MCR_IDAM_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_MCR_IDAM_FMTB (1U<< MCR_IDAM_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_IDAM_FMTC (2U<< MCR_IDAM_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_IDAM_FMTD (3U<< MCR_IDAM_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_MASK (15U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_8MB (0U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_16MB (1U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_24MB (2U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_32MB (3U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_40MB (4U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_48MB (5U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_56MB (6U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_64MB (7U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_72MB (8U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_80MB (9U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_88MB (10U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_96MB (11U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_104MB (12U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_112MB (13U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_120MB (14U<< CTRL2_RFFN_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_128MB (15U<< CTRL2_RFFN_SHIFT)
 

Variables

CanType *const uavcan_kinetis::flexcan::Can [UAVCAN_KINETIS_NUM_IFACES]
 CANx register sets. More...
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_MAXMB_SHIFT = (0)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_MAXMB_MASK = (0x7fU << MCR_MAXMB_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_IDAM_SHIFT = (8)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_IDAM_MASK = (3U << MCR_IDAM_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_AEN = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_LPRIOEN = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_IRMQ = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_SRXDIS = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_WAKSRC = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_LPMACK = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_WRNEN = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_SLFWAK = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_SUPV = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_FRZACK = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_SOFTRST = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_WAKMSK = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_NOTRDY = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_HALT = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_RFEN = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_FRZ = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::MCR_MDIS = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_ROPSEG_SHIFT = (0)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_ROPSEG_MASK = (7U << CTRL1_ROPSEG_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_LOM = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_LBUF = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_TSYN = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_BOFFREC = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_SMP = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_RWRNMSK = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_TWRNMSK = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_LPB = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_CLKSRC = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_ERRMSK = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_BOFFMSK = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_PSEG2_SHIFT = (16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_PSEG2_MASK = (7U << CTRL1_PSEG2_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_PSEG1_SHIFT = (19)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_PSEG1_MASK = (7U << CTRL1_PSEG1_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_RJW_SHIFT = (22)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_RJW_MASK = (3U << CTRL1_RJW_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_PRESDIV_SHIFT = (24)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL1_PRESDIV_MASK = (0xff << CTRL1_PRESDIV_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::TIMER_SHIFT = (0U)
 
constexpr unsigned long uavcan_kinetis::flexcan::TIMER_MASK = (0xffffU << TIMER_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXMGMASK31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM14MASK31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXM15MASK31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::ECR_TXERRCNT_SHIFT = (0U)
 
constexpr unsigned long uavcan_kinetis::flexcan::ECR_TXERRCNT_MASK = (0xff << ECR_TXERRCNT_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::ECR_RXERRCNT_SHIFT = (8)
 
constexpr unsigned long uavcan_kinetis::flexcan::ECR_RXERRCNT_MASK = (0xff << ECR_RXERRCNT_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_WAKINT = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_ERRINT = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_BOFFINT = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_RX = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_FLTCONF_SHIFT = (4U)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_FLTCONF_MASK = (3U << ESR1_FLTCONF_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_FLTCONF_ACTV = (0U << ESR1_FLTCONF_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_FLTCONF_PASV = (1U << ESR1_FLTCONF_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_FLTCONF_OFF = (2U << ESR1_FLTCONF_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_TX = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_IDLE = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_RXWRN = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_TXWRN = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_STFERR = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_FRMERR = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_CRCERR = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_ACKERR = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_BIT0ERR = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_BIT1ERR = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_RWRNINT = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_TWRNINT = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR1_SYNCH = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK2_31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IMASK1_31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG2_31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_FIFO_NE = CAN_IFLAG1_5
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_FIFO_WARN = CAN_IFLAG1_6
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_FIFO_OV = CAN_IFLAG1_7
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::CAN_IFLAG1_31 = (1U << 31)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_EACEN = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RRS = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_MRP = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_TASD_SHIFT = (19)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_TASD_MASK = (31U << CTRL2_TASD_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_RFFN_SHIFT = (24)
 
constexpr unsigned long uavcan_kinetis::flexcan::CTRL2_WRMFRZ = (1U << 28U)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR2_IMB = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR2_VPS = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR2_LPTM_SHIFT = (16)
 
constexpr unsigned long uavcan_kinetis::flexcan::ESR2_LPTM_MASK = (0x7fU << ESR2_LPTM_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CRCR_TXCRC_SHIFT = (0U)
 
constexpr unsigned long uavcan_kinetis::flexcan::CRCR_TXCRC_MASK = (0x7fffU << CRCR_TXCRC_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::CRCR_MBCRC_SHIFT = (16)
 
constexpr unsigned long uavcan_kinetis::flexcan::CRCR_MBCRC_MASK = (0x7fU << CRCR_MBCRC_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXFIR_IDHIT_SHIFT = (0)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXFIR_IDHIT_MASK = (0x1ffU << RXFIR_IDHIT_SHIFT)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR0 = (1U << 0)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR1 = (1U << 1)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR2 = (1U << 2)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR3 = (1U << 3)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR4 = (1U << 4)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR5 = (1U << 5)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR6 = (1U << 6)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR7 = (1U << 7)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR8 = (1U << 8)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR9 = (1U << 9)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR10 = (1U << 10)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR11 = (1U << 11)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR12 = (1U << 12)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR13 = (1U << 13)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR14 = (1U << 14)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR15 = (1U << 15)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR16 = (1U << 16)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR17 = (1U << 17)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR18 = (1U << 18)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR19 = (1U << 19)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR20 = (1U << 20)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR21 = (1U << 21)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR22 = (1U << 22)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR23 = (1U << 23)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR24 = (1U << 24)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR25 = (1U << 25)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR26 = (1U << 26)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR27 = (1U << 27)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR28 = (1U << 28)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR29 = (1U << 29)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR30 = (1U << 30)
 
constexpr unsigned long uavcan_kinetis::flexcan::RXIMR31 = (1U << 31)