Documentation ¶
Overview ¶
Package can provides interface to Controller Area Network.
Peripheral: CAN_Periph Controller Area Network. Instances:
CAN mmap.CAN_BASE
Registers:
0x00 32 MCR Master control register. 0x04 32 MSR Master status register. 0x08 32 TSR Transmit status register. 0x0C 32 RF0R Receive FIFO 0 register. 0x10 32 RF1R Receive FIFO 1 register. 0x14 32 IER Interrupt enable register. 0x18 32 ESR Error status register. 0x1C 32 BTR Bit timing register. 0x1B0 32 FMR Filter master register. 0x1B4 32 FM1R Filter mode register. 0x1BC 32 FS1R Filter scale register. 0x1C4 32 FFA1R Filter FIFO assignment register. 0x1CC 32 FA1R Filter activation register.
Import:
stm32/o/f303xe/mmap
Peripheral: CAN_FIFOMailBox_Periph Controller Area Network FIFOMailBox. Instances: Registers:
0x00 32 RIR CAN receive FIFO mailbox identifier register. 0x04 32 RDTR CAN receive FIFO mailbox data length control and time stamp register. 0x08 32 RDLR CAN receive FIFO mailbox data low register. 0x0C 32 RDHR CAN receive FIFO mailbox data high register.
Import:
stm32/o/f303xe/mmap
Peripheral: CAN_FilterRegister_Periph Controller Area Network FilterRegister. Instances: Registers:
0x00 32 FR1 CAN Filter bank register 1. 0x04 32 FR2 CAN Filter bank register 1.
Import:
stm32/o/f303xe/mmap
Peripheral: CAN_TxMailBox_Periph Controller Area Network TxMailBox. Instances: Registers:
0x00 32 TIR CAN TX mailbox identifier register. 0x04 32 TDTR CAN mailbox data length control and time stamp register. 0x08 32 TDLR CAN mailbox data low register. 0x0C 32 TDHR CAN mailbox data high register.
Import:
stm32/o/f303xe/mmap
Index ¶
- Constants
- Variables
- type BTR
- type CAN_FIFOMailBox_Periph
- type CAN_FilterRegister_Periph
- type CAN_Periph
- func (p *CAN_Periph) ABOM() RMMCR
- func (p *CAN_Periph) ABRQ0() RMTSR
- func (p *CAN_Periph) ABRQ1() RMTSR
- func (p *CAN_Periph) ABRQ2() RMTSR
- func (p *CAN_Periph) ALST0() RMTSR
- func (p *CAN_Periph) ALST1() RMTSR
- func (p *CAN_Periph) ALST2() RMTSR
- func (p *CAN_Periph) AWUM() RMMCR
- func (p *CAN_Periph) BOFF() RMESR
- func (p *CAN_Periph) BOFIE() RMIER
- func (p *CAN_Periph) BRP() RMBTR
- func (p *CAN_Periph) BaseAddr() uintptr
- func (p *CAN_Periph) CODE() RMTSR
- func (p *CAN_Periph) EPVF() RMESR
- func (p *CAN_Periph) EPVIE() RMIER
- func (p *CAN_Periph) ERRI() RMMSR
- func (p *CAN_Periph) ERRIE() RMIER
- func (p *CAN_Periph) EWGF() RMESR
- func (p *CAN_Periph) EWGIE() RMIER
- func (p *CAN_Periph) FACT() RMFA1R
- func (p *CAN_Periph) FBM() RMFM1R
- func (p *CAN_Periph) FFA() RMFFA1R
- func (p *CAN_Periph) FFIE0() RMIER
- func (p *CAN_Periph) FFIE1() RMIER
- func (p *CAN_Periph) FINIT() RMFMR
- func (p *CAN_Periph) FMP0() RMRF0R
- func (p *CAN_Periph) FMP1() RMRF1R
- func (p *CAN_Periph) FMPIE0() RMIER
- func (p *CAN_Periph) FMPIE1() RMIER
- func (p *CAN_Periph) FOVIE0() RMIER
- func (p *CAN_Periph) FOVIE1() RMIER
- func (p *CAN_Periph) FOVR0() RMRF0R
- func (p *CAN_Periph) FOVR1() RMRF1R
- func (p *CAN_Periph) FSC() RMFS1R
- func (p *CAN_Periph) FULL0() RMRF0R
- func (p *CAN_Periph) FULL1() RMRF1R
- func (p *CAN_Periph) INAK() RMMSR
- func (p *CAN_Periph) INRQ() RMMCR
- func (p *CAN_Periph) LBKM() RMBTR
- func (p *CAN_Periph) LEC() RMESR
- func (p *CAN_Periph) LECIE() RMIER
- func (p *CAN_Periph) LOW() RMTSR
- func (p *CAN_Periph) NART() RMMCR
- func (p *CAN_Periph) REC() RMESR
- func (p *CAN_Periph) RESET() RMMCR
- func (p *CAN_Periph) RFLM() RMMCR
- func (p *CAN_Periph) RFOM0() RMRF0R
- func (p *CAN_Periph) RFOM1() RMRF1R
- func (p *CAN_Periph) RQCP0() RMTSR
- func (p *CAN_Periph) RQCP1() RMTSR
- func (p *CAN_Periph) RQCP2() RMTSR
- func (p *CAN_Periph) RX() RMMSR
- func (p *CAN_Periph) RXM() RMMSR
- func (p *CAN_Periph) SAMP() RMMSR
- func (p *CAN_Periph) SILM() RMBTR
- func (p *CAN_Periph) SJW() RMBTR
- func (p *CAN_Periph) SLAK() RMMSR
- func (p *CAN_Periph) SLAKI() RMMSR
- func (p *CAN_Periph) SLEEP() RMMCR
- func (p *CAN_Periph) SLKIE() RMIER
- func (p *CAN_Periph) TEC() RMESR
- func (p *CAN_Periph) TERR0() RMTSR
- func (p *CAN_Periph) TERR1() RMTSR
- func (p *CAN_Periph) TERR2() RMTSR
- func (p *CAN_Periph) TME() RMTSR
- func (p *CAN_Periph) TMEIE() RMIER
- func (p *CAN_Periph) TS1() RMBTR
- func (p *CAN_Periph) TS2() RMBTR
- func (p *CAN_Periph) TTCM() RMMCR
- func (p *CAN_Periph) TXFP() RMMCR
- func (p *CAN_Periph) TXM() RMMSR
- func (p *CAN_Periph) TXOK0() RMTSR
- func (p *CAN_Periph) TXOK1() RMTSR
- func (p *CAN_Periph) TXOK2() RMTSR
- func (p *CAN_Periph) WKUI() RMMSR
- func (p *CAN_Periph) WKUIE() RMIER
- type CAN_TxMailBox_Periph
- type ESR
- type FA1R
- type FFA1R
- type FM1R
- type FMR
- type FR1
- type FR2
- type FS1R
- type IER
- type MCR
- type MSR
- type RBTR
- func (r *RBTR) AtomicClearBits(mask BTR)
- func (r *RBTR) AtomicSetBits(mask BTR)
- func (r *RBTR) AtomicStoreBits(mask, b BTR)
- func (r *RBTR) Bits(mask BTR) BTR
- func (r *RBTR) ClearBits(mask BTR)
- func (r *RBTR) Load() BTR
- func (r *RBTR) SetBits(mask BTR)
- func (r *RBTR) Store(b BTR)
- func (r *RBTR) StoreBits(mask, b BTR)
- type RDHR
- type RDLR
- type RDTR
- type RESR
- func (r *RESR) AtomicClearBits(mask ESR)
- func (r *RESR) AtomicSetBits(mask ESR)
- func (r *RESR) AtomicStoreBits(mask, b ESR)
- func (r *RESR) Bits(mask ESR) ESR
- func (r *RESR) ClearBits(mask ESR)
- func (r *RESR) Load() ESR
- func (r *RESR) SetBits(mask ESR)
- func (r *RESR) Store(b ESR)
- func (r *RESR) StoreBits(mask, b ESR)
- type RF0R
- type RF1R
- type RFA1R
- func (r *RFA1R) AtomicClearBits(mask FA1R)
- func (r *RFA1R) AtomicSetBits(mask FA1R)
- func (r *RFA1R) AtomicStoreBits(mask, b FA1R)
- func (r *RFA1R) Bits(mask FA1R) FA1R
- func (r *RFA1R) ClearBits(mask FA1R)
- func (r *RFA1R) Load() FA1R
- func (r *RFA1R) SetBits(mask FA1R)
- func (r *RFA1R) Store(b FA1R)
- func (r *RFA1R) StoreBits(mask, b FA1R)
- type RFFA1R
- func (r *RFFA1R) AtomicClearBits(mask FFA1R)
- func (r *RFFA1R) AtomicSetBits(mask FFA1R)
- func (r *RFFA1R) AtomicStoreBits(mask, b FFA1R)
- func (r *RFFA1R) Bits(mask FFA1R) FFA1R
- func (r *RFFA1R) ClearBits(mask FFA1R)
- func (r *RFFA1R) Load() FFA1R
- func (r *RFFA1R) SetBits(mask FFA1R)
- func (r *RFFA1R) Store(b FFA1R)
- func (r *RFFA1R) StoreBits(mask, b FFA1R)
- type RFM1R
- func (r *RFM1R) AtomicClearBits(mask FM1R)
- func (r *RFM1R) AtomicSetBits(mask FM1R)
- func (r *RFM1R) AtomicStoreBits(mask, b FM1R)
- func (r *RFM1R) Bits(mask FM1R) FM1R
- func (r *RFM1R) ClearBits(mask FM1R)
- func (r *RFM1R) Load() FM1R
- func (r *RFM1R) SetBits(mask FM1R)
- func (r *RFM1R) Store(b FM1R)
- func (r *RFM1R) StoreBits(mask, b FM1R)
- type RFMR
- func (r *RFMR) AtomicClearBits(mask FMR)
- func (r *RFMR) AtomicSetBits(mask FMR)
- func (r *RFMR) AtomicStoreBits(mask, b FMR)
- func (r *RFMR) Bits(mask FMR) FMR
- func (r *RFMR) ClearBits(mask FMR)
- func (r *RFMR) Load() FMR
- func (r *RFMR) SetBits(mask FMR)
- func (r *RFMR) Store(b FMR)
- func (r *RFMR) StoreBits(mask, b FMR)
- type RFR1
- func (r *RFR1) AtomicClearBits(mask FR1)
- func (r *RFR1) AtomicSetBits(mask FR1)
- func (r *RFR1) AtomicStoreBits(mask, b FR1)
- func (r *RFR1) Bits(mask FR1) FR1
- func (r *RFR1) ClearBits(mask FR1)
- func (r *RFR1) Load() FR1
- func (r *RFR1) SetBits(mask FR1)
- func (r *RFR1) Store(b FR1)
- func (r *RFR1) StoreBits(mask, b FR1)
- type RFR2
- func (r *RFR2) AtomicClearBits(mask FR2)
- func (r *RFR2) AtomicSetBits(mask FR2)
- func (r *RFR2) AtomicStoreBits(mask, b FR2)
- func (r *RFR2) Bits(mask FR2) FR2
- func (r *RFR2) ClearBits(mask FR2)
- func (r *RFR2) Load() FR2
- func (r *RFR2) SetBits(mask FR2)
- func (r *RFR2) Store(b FR2)
- func (r *RFR2) StoreBits(mask, b FR2)
- type RFS1R
- func (r *RFS1R) AtomicClearBits(mask FS1R)
- func (r *RFS1R) AtomicSetBits(mask FS1R)
- func (r *RFS1R) AtomicStoreBits(mask, b FS1R)
- func (r *RFS1R) Bits(mask FS1R) FS1R
- func (r *RFS1R) ClearBits(mask FS1R)
- func (r *RFS1R) Load() FS1R
- func (r *RFS1R) SetBits(mask FS1R)
- func (r *RFS1R) Store(b FS1R)
- func (r *RFS1R) StoreBits(mask, b FS1R)
- type RIER
- func (r *RIER) AtomicClearBits(mask IER)
- func (r *RIER) AtomicSetBits(mask IER)
- func (r *RIER) AtomicStoreBits(mask, b IER)
- func (r *RIER) Bits(mask IER) IER
- func (r *RIER) ClearBits(mask IER)
- func (r *RIER) Load() IER
- func (r *RIER) SetBits(mask IER)
- func (r *RIER) Store(b IER)
- func (r *RIER) StoreBits(mask, b IER)
- type RIR
- type RMBTR
- type RMCR
- func (r *RMCR) AtomicClearBits(mask MCR)
- func (r *RMCR) AtomicSetBits(mask MCR)
- func (r *RMCR) AtomicStoreBits(mask, b MCR)
- func (r *RMCR) Bits(mask MCR) MCR
- func (r *RMCR) ClearBits(mask MCR)
- func (r *RMCR) Load() MCR
- func (r *RMCR) SetBits(mask MCR)
- func (r *RMCR) Store(b MCR)
- func (r *RMCR) StoreBits(mask, b MCR)
- type RMESR
- type RMFA1R
- type RMFFA1R
- type RMFM1R
- type RMFMR
- type RMFR1
- type RMFR2
- type RMFS1R
- type RMIER
- type RMMCR
- type RMMSR
- type RMRDHR
- type RMRDLR
- type RMRDTR
- type RMRF0R
- type RMRF1R
- type RMRIR
- type RMSR
- func (r *RMSR) AtomicClearBits(mask MSR)
- func (r *RMSR) AtomicSetBits(mask MSR)
- func (r *RMSR) AtomicStoreBits(mask, b MSR)
- func (r *RMSR) Bits(mask MSR) MSR
- func (r *RMSR) ClearBits(mask MSR)
- func (r *RMSR) Load() MSR
- func (r *RMSR) SetBits(mask MSR)
- func (r *RMSR) Store(b MSR)
- func (r *RMSR) StoreBits(mask, b MSR)
- type RMTDHR
- type RMTDLR
- type RMTDTR
- type RMTIR
- type RMTSR
- type RRDHR
- func (r *RRDHR) AtomicClearBits(mask RDHR)
- func (r *RRDHR) AtomicSetBits(mask RDHR)
- func (r *RRDHR) AtomicStoreBits(mask, b RDHR)
- func (r *RRDHR) Bits(mask RDHR) RDHR
- func (r *RRDHR) ClearBits(mask RDHR)
- func (r *RRDHR) Load() RDHR
- func (r *RRDHR) SetBits(mask RDHR)
- func (r *RRDHR) Store(b RDHR)
- func (r *RRDHR) StoreBits(mask, b RDHR)
- type RRDLR
- func (r *RRDLR) AtomicClearBits(mask RDLR)
- func (r *RRDLR) AtomicSetBits(mask RDLR)
- func (r *RRDLR) AtomicStoreBits(mask, b RDLR)
- func (r *RRDLR) Bits(mask RDLR) RDLR
- func (r *RRDLR) ClearBits(mask RDLR)
- func (r *RRDLR) Load() RDLR
- func (r *RRDLR) SetBits(mask RDLR)
- func (r *RRDLR) Store(b RDLR)
- func (r *RRDLR) StoreBits(mask, b RDLR)
- type RRDTR
- func (r *RRDTR) AtomicClearBits(mask RDTR)
- func (r *RRDTR) AtomicSetBits(mask RDTR)
- func (r *RRDTR) AtomicStoreBits(mask, b RDTR)
- func (r *RRDTR) Bits(mask RDTR) RDTR
- func (r *RRDTR) ClearBits(mask RDTR)
- func (r *RRDTR) Load() RDTR
- func (r *RRDTR) SetBits(mask RDTR)
- func (r *RRDTR) Store(b RDTR)
- func (r *RRDTR) StoreBits(mask, b RDTR)
- type RRF0R
- func (r *RRF0R) AtomicClearBits(mask RF0R)
- func (r *RRF0R) AtomicSetBits(mask RF0R)
- func (r *RRF0R) AtomicStoreBits(mask, b RF0R)
- func (r *RRF0R) Bits(mask RF0R) RF0R
- func (r *RRF0R) ClearBits(mask RF0R)
- func (r *RRF0R) Load() RF0R
- func (r *RRF0R) SetBits(mask RF0R)
- func (r *RRF0R) Store(b RF0R)
- func (r *RRF0R) StoreBits(mask, b RF0R)
- type RRF1R
- func (r *RRF1R) AtomicClearBits(mask RF1R)
- func (r *RRF1R) AtomicSetBits(mask RF1R)
- func (r *RRF1R) AtomicStoreBits(mask, b RF1R)
- func (r *RRF1R) Bits(mask RF1R) RF1R
- func (r *RRF1R) ClearBits(mask RF1R)
- func (r *RRF1R) Load() RF1R
- func (r *RRF1R) SetBits(mask RF1R)
- func (r *RRF1R) Store(b RF1R)
- func (r *RRF1R) StoreBits(mask, b RF1R)
- type RRIR
- func (r *RRIR) AtomicClearBits(mask RIR)
- func (r *RRIR) AtomicSetBits(mask RIR)
- func (r *RRIR) AtomicStoreBits(mask, b RIR)
- func (r *RRIR) Bits(mask RIR) RIR
- func (r *RRIR) ClearBits(mask RIR)
- func (r *RRIR) Load() RIR
- func (r *RRIR) SetBits(mask RIR)
- func (r *RRIR) Store(b RIR)
- func (r *RRIR) StoreBits(mask, b RIR)
- type RTDHR
- func (r *RTDHR) AtomicClearBits(mask TDHR)
- func (r *RTDHR) AtomicSetBits(mask TDHR)
- func (r *RTDHR) AtomicStoreBits(mask, b TDHR)
- func (r *RTDHR) Bits(mask TDHR) TDHR
- func (r *RTDHR) ClearBits(mask TDHR)
- func (r *RTDHR) Load() TDHR
- func (r *RTDHR) SetBits(mask TDHR)
- func (r *RTDHR) Store(b TDHR)
- func (r *RTDHR) StoreBits(mask, b TDHR)
- type RTDLR
- func (r *RTDLR) AtomicClearBits(mask TDLR)
- func (r *RTDLR) AtomicSetBits(mask TDLR)
- func (r *RTDLR) AtomicStoreBits(mask, b TDLR)
- func (r *RTDLR) Bits(mask TDLR) TDLR
- func (r *RTDLR) ClearBits(mask TDLR)
- func (r *RTDLR) Load() TDLR
- func (r *RTDLR) SetBits(mask TDLR)
- func (r *RTDLR) Store(b TDLR)
- func (r *RTDLR) StoreBits(mask, b TDLR)
- type RTDTR
- func (r *RTDTR) AtomicClearBits(mask TDTR)
- func (r *RTDTR) AtomicSetBits(mask TDTR)
- func (r *RTDTR) AtomicStoreBits(mask, b TDTR)
- func (r *RTDTR) Bits(mask TDTR) TDTR
- func (r *RTDTR) ClearBits(mask TDTR)
- func (r *RTDTR) Load() TDTR
- func (r *RTDTR) SetBits(mask TDTR)
- func (r *RTDTR) Store(b TDTR)
- func (r *RTDTR) StoreBits(mask, b TDTR)
- type RTIR
- func (r *RTIR) AtomicClearBits(mask TIR)
- func (r *RTIR) AtomicSetBits(mask TIR)
- func (r *RTIR) AtomicStoreBits(mask, b TIR)
- func (r *RTIR) Bits(mask TIR) TIR
- func (r *RTIR) ClearBits(mask TIR)
- func (r *RTIR) Load() TIR
- func (r *RTIR) SetBits(mask TIR)
- func (r *RTIR) Store(b TIR)
- func (r *RTIR) StoreBits(mask, b TIR)
- type RTSR
- func (r *RTSR) AtomicClearBits(mask TSR)
- func (r *RTSR) AtomicSetBits(mask TSR)
- func (r *RTSR) AtomicStoreBits(mask, b TSR)
- func (r *RTSR) Bits(mask TSR) TSR
- func (r *RTSR) ClearBits(mask TSR)
- func (r *RTSR) Load() TSR
- func (r *RTSR) SetBits(mask TSR)
- func (r *RTSR) Store(b TSR)
- func (r *RTSR) StoreBits(mask, b TSR)
- type TDHR
- type TDLR
- type TDTR
- type TIR
- type TSR
Constants ¶
View Source
const ( INRQn = 0 SLEEPn = 1 TXFPn = 2 RFLMn = 3 NARTn = 4 AWUMn = 5 ABOMn = 6 TTCMn = 7 RESETn = 15 )
View Source
const ( INAKn = 0 SLAKn = 1 ERRIn = 2 WKUIn = 3 SLAKIn = 4 TXMn = 8 RXMn = 9 SAMPn = 10 RXn = 11 )
View Source
const ( RQCP0n = 0 TXOK0n = 1 ALST0n = 2 TERR0n = 3 ABRQ0n = 7 RQCP1n = 8 TXOK1n = 9 ALST1n = 10 TERR1n = 11 ABRQ1n = 15 RQCP2n = 16 TXOK2n = 17 ALST2n = 18 TERR2n = 19 ABRQ2n = 23 CODEn = 24 TMEn = 26 LOWn = 29 )
View Source
const ( FMP0n = 0 FULL0n = 3 FOVR0n = 4 RFOM0n = 5 )
View Source
const ( FMP1n = 0 FULL1n = 3 FOVR1n = 4 RFOM1n = 5 )
View Source
const ( TMEIEn = 0 FMPIE0n = 1 FFIE0n = 2 FOVIE0n = 3 FMPIE1n = 4 FFIE1n = 5 FOVIE1n = 6 EWGIEn = 8 EPVIEn = 9 BOFIEn = 10 LECIEn = 11 ERRIEn = 15 WKUIEn = 16 SLKIEn = 17 )
View Source
const ( EWGFn = 0 EPVFn = 1 BOFFn = 2 LECn = 4 TECn = 16 RECn = 24 )
View Source
const ( BRPn = 0 TS1n = 16 TS2n = 20 SJWn = 24 LBKMn = 30 SILMn = 31 )
View Source
const (
FACTn = 0
)
View Source
const (
FBMn = 0
)
View Source
const (
FFAn = 0
)
View Source
const (
FINITn = 0
)
View Source
const (
FSCn = 0
)
Variables ¶
View Source
var CAN = (*CAN_Periph)(unsafe.Pointer(uintptr(mmap.CAN_BASE)))
Functions ¶
This section is empty.
Types ¶
type CAN_FIFOMailBox_Periph ¶
func (*CAN_FIFOMailBox_Periph) BaseAddr ¶
func (p *CAN_FIFOMailBox_Periph) BaseAddr() uintptr
type CAN_FilterRegister_Periph ¶
func (*CAN_FilterRegister_Periph) BaseAddr ¶
func (p *CAN_FilterRegister_Periph) BaseAddr() uintptr
type CAN_Periph ¶
type CAN_Periph struct { MCR RMCR MSR RMSR TSR RTSR RF0R RRF0R RF1R RRF1R IER RIER ESR RESR BTR RBTR FMR RFMR FM1R RFM1R FS1R RFS1R FFA1R RFFA1R FA1R RFA1R // contains filtered or unexported fields }
func (*CAN_Periph) ABOM ¶
func (p *CAN_Periph) ABOM() RMMCR
func (*CAN_Periph) ABRQ0 ¶
func (p *CAN_Periph) ABRQ0() RMTSR
func (*CAN_Periph) ABRQ1 ¶
func (p *CAN_Periph) ABRQ1() RMTSR
func (*CAN_Periph) ABRQ2 ¶
func (p *CAN_Periph) ABRQ2() RMTSR
func (*CAN_Periph) ALST0 ¶
func (p *CAN_Periph) ALST0() RMTSR
func (*CAN_Periph) ALST1 ¶
func (p *CAN_Periph) ALST1() RMTSR
func (*CAN_Periph) ALST2 ¶
func (p *CAN_Periph) ALST2() RMTSR
func (*CAN_Periph) AWUM ¶
func (p *CAN_Periph) AWUM() RMMCR
func (*CAN_Periph) BOFF ¶
func (p *CAN_Periph) BOFF() RMESR
func (*CAN_Periph) BOFIE ¶
func (p *CAN_Periph) BOFIE() RMIER
func (*CAN_Periph) BRP ¶
func (p *CAN_Periph) BRP() RMBTR
func (*CAN_Periph) BaseAddr ¶
func (p *CAN_Periph) BaseAddr() uintptr
func (*CAN_Periph) CODE ¶
func (p *CAN_Periph) CODE() RMTSR
func (*CAN_Periph) EPVF ¶
func (p *CAN_Periph) EPVF() RMESR
func (*CAN_Periph) EPVIE ¶
func (p *CAN_Periph) EPVIE() RMIER
func (*CAN_Periph) ERRI ¶
func (p *CAN_Periph) ERRI() RMMSR
func (*CAN_Periph) ERRIE ¶
func (p *CAN_Periph) ERRIE() RMIER
func (*CAN_Periph) EWGF ¶
func (p *CAN_Periph) EWGF() RMESR
func (*CAN_Periph) EWGIE ¶
func (p *CAN_Periph) EWGIE() RMIER
func (*CAN_Periph) FACT ¶
func (p *CAN_Periph) FACT() RMFA1R
func (*CAN_Periph) FBM ¶
func (p *CAN_Periph) FBM() RMFM1R
func (*CAN_Periph) FFA ¶
func (p *CAN_Periph) FFA() RMFFA1R
func (*CAN_Periph) FFIE0 ¶
func (p *CAN_Periph) FFIE0() RMIER
func (*CAN_Periph) FFIE1 ¶
func (p *CAN_Periph) FFIE1() RMIER
func (*CAN_Periph) FINIT ¶
func (p *CAN_Periph) FINIT() RMFMR
func (*CAN_Periph) FMP0 ¶
func (p *CAN_Periph) FMP0() RMRF0R
func (*CAN_Periph) FMP1 ¶
func (p *CAN_Periph) FMP1() RMRF1R
func (*CAN_Periph) FMPIE0 ¶
func (p *CAN_Periph) FMPIE0() RMIER
func (*CAN_Periph) FMPIE1 ¶
func (p *CAN_Periph) FMPIE1() RMIER
func (*CAN_Periph) FOVIE0 ¶
func (p *CAN_Periph) FOVIE0() RMIER
func (*CAN_Periph) FOVIE1 ¶
func (p *CAN_Periph) FOVIE1() RMIER
func (*CAN_Periph) FOVR0 ¶
func (p *CAN_Periph) FOVR0() RMRF0R
func (*CAN_Periph) FOVR1 ¶
func (p *CAN_Periph) FOVR1() RMRF1R
func (*CAN_Periph) FSC ¶
func (p *CAN_Periph) FSC() RMFS1R
func (*CAN_Periph) FULL0 ¶
func (p *CAN_Periph) FULL0() RMRF0R
func (*CAN_Periph) FULL1 ¶
func (p *CAN_Periph) FULL1() RMRF1R
func (*CAN_Periph) INAK ¶
func (p *CAN_Periph) INAK() RMMSR
func (*CAN_Periph) INRQ ¶
func (p *CAN_Periph) INRQ() RMMCR
func (*CAN_Periph) LBKM ¶
func (p *CAN_Periph) LBKM() RMBTR
func (*CAN_Periph) LEC ¶
func (p *CAN_Periph) LEC() RMESR
func (*CAN_Periph) LECIE ¶
func (p *CAN_Periph) LECIE() RMIER
func (*CAN_Periph) LOW ¶
func (p *CAN_Periph) LOW() RMTSR
func (*CAN_Periph) NART ¶
func (p *CAN_Periph) NART() RMMCR
func (*CAN_Periph) REC ¶
func (p *CAN_Periph) REC() RMESR
func (*CAN_Periph) RESET ¶
func (p *CAN_Periph) RESET() RMMCR
func (*CAN_Periph) RFLM ¶
func (p *CAN_Periph) RFLM() RMMCR
func (*CAN_Periph) RFOM0 ¶
func (p *CAN_Periph) RFOM0() RMRF0R
func (*CAN_Periph) RFOM1 ¶
func (p *CAN_Periph) RFOM1() RMRF1R
func (*CAN_Periph) RQCP0 ¶
func (p *CAN_Periph) RQCP0() RMTSR
func (*CAN_Periph) RQCP1 ¶
func (p *CAN_Periph) RQCP1() RMTSR
func (*CAN_Periph) RQCP2 ¶
func (p *CAN_Periph) RQCP2() RMTSR
func (*CAN_Periph) RX ¶
func (p *CAN_Periph) RX() RMMSR
func (*CAN_Periph) RXM ¶
func (p *CAN_Periph) RXM() RMMSR
func (*CAN_Periph) SAMP ¶
func (p *CAN_Periph) SAMP() RMMSR
func (*CAN_Periph) SILM ¶
func (p *CAN_Periph) SILM() RMBTR
func (*CAN_Periph) SJW ¶
func (p *CAN_Periph) SJW() RMBTR
func (*CAN_Periph) SLAK ¶
func (p *CAN_Periph) SLAK() RMMSR
func (*CAN_Periph) SLAKI ¶
func (p *CAN_Periph) SLAKI() RMMSR
func (*CAN_Periph) SLEEP ¶
func (p *CAN_Periph) SLEEP() RMMCR
func (*CAN_Periph) SLKIE ¶
func (p *CAN_Periph) SLKIE() RMIER
func (*CAN_Periph) TEC ¶
func (p *CAN_Periph) TEC() RMESR
func (*CAN_Periph) TERR0 ¶
func (p *CAN_Periph) TERR0() RMTSR
func (*CAN_Periph) TERR1 ¶
func (p *CAN_Periph) TERR1() RMTSR
func (*CAN_Periph) TERR2 ¶
func (p *CAN_Periph) TERR2() RMTSR
func (*CAN_Periph) TME ¶
func (p *CAN_Periph) TME() RMTSR
func (*CAN_Periph) TMEIE ¶
func (p *CAN_Periph) TMEIE() RMIER
func (*CAN_Periph) TS1 ¶
func (p *CAN_Periph) TS1() RMBTR
func (*CAN_Periph) TS2 ¶
func (p *CAN_Periph) TS2() RMBTR
func (*CAN_Periph) TTCM ¶
func (p *CAN_Periph) TTCM() RMMCR
func (*CAN_Periph) TXFP ¶
func (p *CAN_Periph) TXFP() RMMCR
func (*CAN_Periph) TXM ¶
func (p *CAN_Periph) TXM() RMMSR
func (*CAN_Periph) TXOK0 ¶
func (p *CAN_Periph) TXOK0() RMTSR
func (*CAN_Periph) TXOK1 ¶
func (p *CAN_Periph) TXOK1() RMTSR
func (*CAN_Periph) TXOK2 ¶
func (p *CAN_Periph) TXOK2() RMTSR
func (*CAN_Periph) WKUI ¶
func (p *CAN_Periph) WKUI() RMMSR
func (*CAN_Periph) WKUIE ¶
func (p *CAN_Periph) WKUIE() RMIER
type CAN_TxMailBox_Periph ¶
func (*CAN_TxMailBox_Periph) BaseAddr ¶
func (p *CAN_TxMailBox_Periph) BaseAddr() uintptr
type ESR ¶
type ESR uint32
const ( EWGF ESR = 0x01 << 0 //+ Error Warning Flag. EPVF ESR = 0x01 << 1 //+ Error Passive Flag. BOFF ESR = 0x01 << 2 //+ Bus-Off Flag. LEC ESR = 0x07 << 4 //+ LEC[2:0] bits (Last Error Code). TEC ESR = 0xFF << 16 //+ Least significant byte of the 9-bit Transmit Error Counter. REC ESR = 0xFF << 24 //+ Receive Error Counter. )
type FA1R ¶
type FA1R uint32
const ( FACT FA1R = 0x3FFF << 0 //+ Filter Active. FACT0 FA1R = 0x01 << 0 // Filter 0 Active. FACT1 FA1R = 0x02 << 0 // Filter 1 Active. FACT2 FA1R = 0x04 << 0 // Filter 2 Active. FACT3 FA1R = 0x08 << 0 // Filter 3 Active. FACT4 FA1R = 0x10 << 0 // Filter 4 Active. FACT5 FA1R = 0x20 << 0 // Filter 5 Active. FACT6 FA1R = 0x40 << 0 // Filter 6 Active. FACT7 FA1R = 0x80 << 0 // Filter 7 Active. FACT8 FA1R = 0x100 << 0 // Filter 8 Active. FACT9 FA1R = 0x200 << 0 // Filter 9 Active. FACT10 FA1R = 0x400 << 0 // Filter 10 Active. FACT11 FA1R = 0x800 << 0 // Filter 11 Active. FACT12 FA1R = 0x1000 << 0 // Filter 12 Active. FACT13 FA1R = 0x2000 << 0 // Filter 13 Active. )
type FFA1R ¶
type FFA1R uint32
const ( FFA FFA1R = 0x3FFF << 0 //+ Filter FIFO Assignment. FFA0 FFA1R = 0x01 << 0 // Filter FIFO Assignment for Filter 0. FFA1 FFA1R = 0x02 << 0 // Filter FIFO Assignment for Filter 1. FFA2 FFA1R = 0x04 << 0 // Filter FIFO Assignment for Filter 2. FFA3 FFA1R = 0x08 << 0 // Filter FIFO Assignment for Filter 3. FFA4 FFA1R = 0x10 << 0 // Filter FIFO Assignment for Filter 4. FFA5 FFA1R = 0x20 << 0 // Filter FIFO Assignment for Filter 5. FFA6 FFA1R = 0x40 << 0 // Filter FIFO Assignment for Filter 6. FFA7 FFA1R = 0x80 << 0 // Filter FIFO Assignment for Filter 7. FFA8 FFA1R = 0x100 << 0 // Filter FIFO Assignment for Filter 8. FFA9 FFA1R = 0x200 << 0 // Filter FIFO Assignment for Filter 9. FFA10 FFA1R = 0x400 << 0 // Filter FIFO Assignment for Filter 10. FFA11 FFA1R = 0x800 << 0 // Filter FIFO Assignment for Filter 11. FFA12 FFA1R = 0x1000 << 0 // Filter FIFO Assignment for Filter 12. FFA13 FFA1R = 0x2000 << 0 // Filter FIFO Assignment for Filter 13. )
type FM1R ¶
type FM1R uint32
const ( FBM FM1R = 0x3FFF << 0 //+ Filter Mode. FBM0 FM1R = 0x01 << 0 // Filter Init Mode bit 0. FBM1 FM1R = 0x02 << 0 // Filter Init Mode bit 1. FBM2 FM1R = 0x04 << 0 // Filter Init Mode bit 2. FBM3 FM1R = 0x08 << 0 // Filter Init Mode bit 3. FBM4 FM1R = 0x10 << 0 // Filter Init Mode bit 4. FBM5 FM1R = 0x20 << 0 // Filter Init Mode bit 5. FBM6 FM1R = 0x40 << 0 // Filter Init Mode bit 6. FBM7 FM1R = 0x80 << 0 // Filter Init Mode bit 7. FBM8 FM1R = 0x100 << 0 // Filter Init Mode bit 8. FBM9 FM1R = 0x200 << 0 // Filter Init Mode bit 9. FBM10 FM1R = 0x400 << 0 // Filter Init Mode bit 10. FBM11 FM1R = 0x800 << 0 // Filter Init Mode bit 11. FBM12 FM1R = 0x1000 << 0 // Filter Init Mode bit 12. FBM13 FM1R = 0x2000 << 0 // Filter Init Mode bit 13. )
type FS1R ¶
type FS1R uint32
const ( FSC FS1R = 0x3FFF << 0 //+ Filter Scale Configuration. FSC0 FS1R = 0x01 << 0 // Filter Scale Configuration bit 0. FSC1 FS1R = 0x02 << 0 // Filter Scale Configuration bit 1. FSC2 FS1R = 0x04 << 0 // Filter Scale Configuration bit 2. FSC3 FS1R = 0x08 << 0 // Filter Scale Configuration bit 3. FSC4 FS1R = 0x10 << 0 // Filter Scale Configuration bit 4. FSC5 FS1R = 0x20 << 0 // Filter Scale Configuration bit 5. FSC6 FS1R = 0x40 << 0 // Filter Scale Configuration bit 6. FSC7 FS1R = 0x80 << 0 // Filter Scale Configuration bit 7. FSC8 FS1R = 0x100 << 0 // Filter Scale Configuration bit 8. FSC9 FS1R = 0x200 << 0 // Filter Scale Configuration bit 9. FSC10 FS1R = 0x400 << 0 // Filter Scale Configuration bit 10. FSC11 FS1R = 0x800 << 0 // Filter Scale Configuration bit 11. FSC12 FS1R = 0x1000 << 0 // Filter Scale Configuration bit 12. FSC13 FS1R = 0x2000 << 0 // Filter Scale Configuration bit 13. )
type IER ¶
type IER uint32
const ( TMEIE IER = 0x01 << 0 //+ Transmit Mailbox Empty Interrupt Enable. FMPIE0 IER = 0x01 << 1 //+ FIFO Message Pending Interrupt Enable. FFIE0 IER = 0x01 << 2 //+ FIFO Full Interrupt Enable. FOVIE0 IER = 0x01 << 3 //+ FIFO Overrun Interrupt Enable. FMPIE1 IER = 0x01 << 4 //+ FIFO Message Pending Interrupt Enable. FFIE1 IER = 0x01 << 5 //+ FIFO Full Interrupt Enable. FOVIE1 IER = 0x01 << 6 //+ FIFO Overrun Interrupt Enable. EWGIE IER = 0x01 << 8 //+ Error Warning Interrupt Enable. EPVIE IER = 0x01 << 9 //+ Error Passive Interrupt Enable. BOFIE IER = 0x01 << 10 //+ Bus-Off Interrupt Enable. LECIE IER = 0x01 << 11 //+ Last Error Code Interrupt Enable. ERRIE IER = 0x01 << 15 //+ Error Interrupt Enable. WKUIE IER = 0x01 << 16 //+ Wakeup Interrupt Enable. SLKIE IER = 0x01 << 17 //+ Sleep Interrupt Enable. )
type MCR ¶
type MCR uint32
const ( INRQ MCR = 0x01 << 0 //+ Initialization Request. SLEEP MCR = 0x01 << 1 //+ Sleep Mode Request. TXFP MCR = 0x01 << 2 //+ Transmit FIFO Priority. RFLM MCR = 0x01 << 3 //+ Receive FIFO Locked Mode. NART MCR = 0x01 << 4 //+ No Automatic Retransmission. AWUM MCR = 0x01 << 5 //+ Automatic Wakeup Mode. ABOM MCR = 0x01 << 6 //+ Automatic Bus-Off Management. TTCM MCR = 0x01 << 7 //+ Time Triggered Communication Mode. RESET MCR = 0x01 << 15 //+ bxCAN software master reset. )
type MSR ¶
type MSR uint32
const ( INAK MSR = 0x01 << 0 //+ Initialization Acknowledge. SLAK MSR = 0x01 << 1 //+ Sleep Acknowledge. ERRI MSR = 0x01 << 2 //+ Error Interrupt. WKUI MSR = 0x01 << 3 //+ Wakeup Interrupt. SLAKI MSR = 0x01 << 4 //+ Sleep Acknowledge Interrupt. TXM MSR = 0x01 << 8 //+ Transmit Mode. RXM MSR = 0x01 << 9 //+ Receive Mode. SAMP MSR = 0x01 << 10 //+ Last Sample Point. RX MSR = 0x01 << 11 //+ CAN Rx Signal. )
type RBTR ¶
func (*RBTR) AtomicClearBits ¶
func (*RBTR) AtomicSetBits ¶
func (*RBTR) AtomicStoreBits ¶
type RESR ¶
func (*RESR) AtomicClearBits ¶
func (*RESR) AtomicSetBits ¶
func (*RESR) AtomicStoreBits ¶
type RFA1R ¶
func (*RFA1R) AtomicClearBits ¶
func (*RFA1R) AtomicSetBits ¶
func (*RFA1R) AtomicStoreBits ¶
type RFFA1R ¶
func (*RFFA1R) AtomicClearBits ¶
func (*RFFA1R) AtomicSetBits ¶
func (*RFFA1R) AtomicStoreBits ¶
type RFM1R ¶
func (*RFM1R) AtomicClearBits ¶
func (*RFM1R) AtomicSetBits ¶
func (*RFM1R) AtomicStoreBits ¶
type RFMR ¶
func (*RFMR) AtomicClearBits ¶
func (*RFMR) AtomicSetBits ¶
func (*RFMR) AtomicStoreBits ¶
type RFR1 ¶
func (*RFR1) AtomicClearBits ¶
func (*RFR1) AtomicSetBits ¶
func (*RFR1) AtomicStoreBits ¶
type RFR2 ¶
func (*RFR2) AtomicClearBits ¶
func (*RFR2) AtomicSetBits ¶
func (*RFR2) AtomicStoreBits ¶
type RFS1R ¶
func (*RFS1R) AtomicClearBits ¶
func (*RFS1R) AtomicSetBits ¶
func (*RFS1R) AtomicStoreBits ¶
type RIER ¶
func (*RIER) AtomicClearBits ¶
func (*RIER) AtomicSetBits ¶
func (*RIER) AtomicStoreBits ¶
type RMCR ¶
func (*RMCR) AtomicClearBits ¶
func (*RMCR) AtomicSetBits ¶
func (*RMCR) AtomicStoreBits ¶
type RMSR ¶
func (*RMSR) AtomicClearBits ¶
func (*RMSR) AtomicSetBits ¶
func (*RMSR) AtomicStoreBits ¶
type RRDHR ¶
func (*RRDHR) AtomicClearBits ¶
func (*RRDHR) AtomicSetBits ¶
func (*RRDHR) AtomicStoreBits ¶
type RRDLR ¶
func (*RRDLR) AtomicClearBits ¶
func (*RRDLR) AtomicSetBits ¶
func (*RRDLR) AtomicStoreBits ¶
type RRDTR ¶
func (*RRDTR) AtomicClearBits ¶
func (*RRDTR) AtomicSetBits ¶
func (*RRDTR) AtomicStoreBits ¶
type RRF0R ¶
func (*RRF0R) AtomicClearBits ¶
func (*RRF0R) AtomicSetBits ¶
func (*RRF0R) AtomicStoreBits ¶
type RRF1R ¶
func (*RRF1R) AtomicClearBits ¶
func (*RRF1R) AtomicSetBits ¶
func (*RRF1R) AtomicStoreBits ¶
type RRIR ¶
func (*RRIR) AtomicClearBits ¶
func (*RRIR) AtomicSetBits ¶
func (*RRIR) AtomicStoreBits ¶
type RTDHR ¶
func (*RTDHR) AtomicClearBits ¶
func (*RTDHR) AtomicSetBits ¶
func (*RTDHR) AtomicStoreBits ¶
type RTDLR ¶
func (*RTDLR) AtomicClearBits ¶
func (*RTDLR) AtomicSetBits ¶
func (*RTDLR) AtomicStoreBits ¶
type RTDTR ¶
func (*RTDTR) AtomicClearBits ¶
func (*RTDTR) AtomicSetBits ¶
func (*RTDTR) AtomicStoreBits ¶
type RTIR ¶
func (*RTIR) AtomicClearBits ¶
func (*RTIR) AtomicSetBits ¶
func (*RTIR) AtomicStoreBits ¶
type RTSR ¶
func (*RTSR) AtomicClearBits ¶
func (*RTSR) AtomicSetBits ¶
func (*RTSR) AtomicStoreBits ¶
type TSR ¶
type TSR uint32
const ( RQCP0 TSR = 0x01 << 0 //+ Request Completed Mailbox0. TXOK0 TSR = 0x01 << 1 //+ Transmission OK of Mailbox0. ALST0 TSR = 0x01 << 2 //+ Arbitration Lost for Mailbox0. TERR0 TSR = 0x01 << 3 //+ Transmission Error of Mailbox0. ABRQ0 TSR = 0x01 << 7 //+ Abort Request for Mailbox0. RQCP1 TSR = 0x01 << 8 //+ Request Completed Mailbox1. TXOK1 TSR = 0x01 << 9 //+ Transmission OK of Mailbox1. ALST1 TSR = 0x01 << 10 //+ Arbitration Lost for Mailbox1. TERR1 TSR = 0x01 << 11 //+ Transmission Error of Mailbox1. ABRQ1 TSR = 0x01 << 15 //+ Abort Request for Mailbox 1. RQCP2 TSR = 0x01 << 16 //+ Request Completed Mailbox2. TXOK2 TSR = 0x01 << 17 //+ Transmission OK of Mailbox 2. ALST2 TSR = 0x01 << 18 //+ Arbitration Lost for mailbox 2. TERR2 TSR = 0x01 << 19 //+ Transmission Error of Mailbox 2. ABRQ2 TSR = 0x01 << 23 //+ Abort Request for Mailbox 2. CODE TSR = 0x03 << 24 //+ Mailbox Code. TME TSR = 0x07 << 26 //+ TME[2:0] bits. TME0 TSR = 0x01 << 26 // Transmit Mailbox 0 Empty. TME1 TSR = 0x02 << 26 // Transmit Mailbox 1 Empty. TME2 TSR = 0x04 << 26 // Transmit Mailbox 2 Empty. LOW TSR = 0x07 << 29 //+ LOW[2:0] bits. LOW0 TSR = 0x01 << 29 // Lowest Priority Flag for Mailbox 0. LOW1 TSR = 0x02 << 29 // Lowest Priority Flag for Mailbox 1. LOW2 TSR = 0x04 << 29 // Lowest Priority Flag for Mailbox 2. )
Click to show internal directories.
Click to hide internal directories.