Struct gd32e1::gd32e103::Can1

source ·
pub struct Can1 { /* private fields */ }
Expand description

Controller area network

Implementations§

source§

impl Can1

source

pub const PTR: *const RegisterBlock = {0x40006800 as *const gd32e103::can0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn ctl(&self) -> &Ctl

0x00 - Control register

source

pub fn stat(&self) -> &Stat

0x04 - Status register

source

pub fn tstat(&self) -> &Tstat

0x08 - Transmit status register

source

pub fn rfifo0(&self) -> &Rfifo0

0x0c - Receive message FIFO0 register

source

pub fn rfifo1(&self) -> &Rfifo1

0x10 - Receive message FIFO1 register

source

pub fn inten(&self) -> &Inten

0x14 - Interrupt enable register

source

pub fn err(&self) -> &Err

0x18 - Error register

source

pub fn bt(&self) -> &Bt

0x1c - Bit timing register

source

pub fn tmi0(&self) -> &Tmi0

0x180 - Transmit mailbox identifier register 0

source

pub fn tmp0(&self) -> &Tmp0

0x184 - Transmit mailbox property register 0

source

pub fn tmdata00(&self) -> &Tmdata00

0x188 - Transmit mailbox data0 register

source

pub fn tmdata10(&self) -> &Tmdata10

0x18c - Transmit mailbox data1 register

source

pub fn tmi1(&self) -> &Tmi1

0x190 - Transmit mailbox identifier register

source

pub fn tmp1(&self) -> &Tmp1

0x194 - Transmit mailbox property register

source

pub fn tmdata01(&self) -> &Tmdata01

0x198 - Transmit mailbox data0 register

source

pub fn tmdata11(&self) -> &Tmdata11

0x19c - Transmit mailbox data1 register

source

pub fn tmi2(&self) -> &Tmi2

0x1a0 - Transmit mailbox identifier register

source

pub fn tmp2(&self) -> &Tmp2

0x1a4 - Transmit mailbox property register

source

pub fn tmdata02(&self) -> &Tmdata02

0x1a8 - Transmit mailbox data0 register

source

pub fn tmdata12(&self) -> &Tmdata12

0x1ac - Transmit mailbox data1 register

source

pub fn rfifomi0(&self) -> &Rfifomi0

0x1b0 - Receive FIFO mailbox identifier register

source

pub fn rfifomp0(&self) -> &Rfifomp0

0x1b4 - Receive FIFO mailbox property register

source

pub fn rfifomdata00(&self) -> &Rfifomdata00

0x1b8 - Receive FIFO mailbox data0 register

source

pub fn rfifomdata10(&self) -> &Rfifomdata10

0x1bc - Receive FIFO mailbox data1 register

source

pub fn rfifomi1(&self) -> &Rfifomi1

0x1c0 - Receive FIFO mailbox identifier register

source

pub fn rfifomp1(&self) -> &Rfifomp1

0x1c4 - Receive FIFO mailbox property register

source

pub fn rfifomdata01(&self) -> &Rfifomdata01

0x1c8 - Receive FIFO mailbox data0 register

source

pub fn rfifomdata11(&self) -> &Rfifomdata11

0x1cc - Receive FIFO mailbox data1 register

source

pub fn fctl(&self) -> &Fctl

0x200 - Filter control register

source

pub fn fmcfg(&self) -> &Fmcfg

0x204 - Filter mode configuration register

source

pub fn fscfg(&self) -> &Fscfg

0x20c - Filter scale configuration register

source

pub fn fafifo(&self) -> &Fafifo

0x214 - Filter associated FIFO register

source

pub fn fw(&self) -> &Fw

0x21c - Filter working register

source

pub fn f0data0(&self) -> &F0data0

0x240 - Filter 0 data 0 register

source

pub fn f0data1(&self) -> &F0data1

0x244 - Filter 0 data 1 register

source

pub fn f1data0(&self) -> &F1data0

0x248 - Filter 1 data 0 register

source

pub fn f1data1(&self) -> &F1data1

0x24c - Filter 1 data 1 register

source

pub fn f2data0(&self) -> &F2data0

0x250 - Filter 2 data 0 register

source

pub fn f2data1(&self) -> &F2data1

0x254 - Filter 2 data 1 register

source

pub fn f3data0(&self) -> &F3data0

0x258 - Filter 3 data 0 register

source

pub fn f3data1(&self) -> &F3data1

0x25c - Filter 3 data 1 register

source

pub fn f4data0(&self) -> &F4data0

0x260 - Filter 4 data 0 register

source

pub fn f4data1(&self) -> &F4data1

0x264 - Filter 4 data 1 register

source

pub fn f5data0(&self) -> &F5data0

0x268 - Filter 5 data 0 register

source

pub fn f5data1(&self) -> &F5data1

0x26c - Filter 5 data 1 register

source

pub fn f6data0(&self) -> &F6data0

0x270 - Filter 6 data 0 register

source

pub fn f6data1(&self) -> &F6data1

0x274 - Filter 6 data 1 register

source

pub fn f7data0(&self) -> &F7data0

0x278 - Filter 7 data 0 register

source

pub fn f7data1(&self) -> &F7data1

0x27c - Filter 7 data 1 register

source

pub fn f8data0(&self) -> &F8data0

0x280 - Filter 8 data 0 register

source

pub fn f8data1(&self) -> &F8data1

0x284 - Filter 8 data 1 register

source

pub fn f9data0(&self) -> &F9data0

0x288 - Filter 9 data 0 register

source

pub fn f9data1(&self) -> &F9data1

0x28c - Filter 9 data 1 register

source

pub fn f10data0(&self) -> &F10data0

0x290 - Filter 10 data 0 register

source

pub fn f10data1(&self) -> &F10data1

0x294 - Filter 10 data 1 register

source

pub fn f11data0(&self) -> &F11data0

0x298 - Filter 11 data 0 register

source

pub fn f11data1(&self) -> &F11data1

0x29c - Filter 11 data 1 register

source

pub fn f12data0(&self) -> &F12data0

0x2a0 - Filter 12 data 0 register

source

pub fn f12data1(&self) -> &F12data1

0x2a4 - Filter 12 data 1 register

source

pub fn f13data0(&self) -> &F13data0

0x2a8 - Filter 13 data 0 register

source

pub fn f13data1(&self) -> &F13data1

0x2ac - Filter 13 data 1 register

source

pub fn f14data0(&self) -> &F14data0

0x2b0 - Filter 14 data 0 register

source

pub fn f14data1(&self) -> &F14data1

0x2b4 - Filter 14 data 1 register

source

pub fn f15data0(&self) -> &F15data0

0x2b8 - Filter 15 data 0 register

source

pub fn f15data1(&self) -> &F15data1

0x2bc - Filter 15 data 1 register

source

pub fn f16data0(&self) -> &F16data0

0x2c0 - Filter 16 data 0 register

source

pub fn f16data1(&self) -> &F16data1

0x2c4 - Filter 16 data 1 register

source

pub fn f17data0(&self) -> &F17data0

0x2c8 - Filter 17 data 0 register

source

pub fn f17data1(&self) -> &F17data1

0x2cc - Filter 17 data 1 register

source

pub fn f18data0(&self) -> &F18data0

0x2d0 - Filter 18 data 0 register

source

pub fn f18data1(&self) -> &F18data1

0x2d4 - Filter 18 data 1 register

source

pub fn f19data0(&self) -> &F19data0

0x2d8 - Filter 19 data 0 register

source

pub fn f19data1(&self) -> &F19data1

0x2dc - Filter 19 data 1 register

source

pub fn f20data0(&self) -> &F20data0

0x2e0 - Filter 20 data 0 register

source

pub fn f20data1(&self) -> &F20data1

0x2e4 - Filter 20 data 1 register

source

pub fn f21data0(&self) -> &F21data0

0x2e8 - Filter 21 data 0 register

source

pub fn f21data1(&self) -> &F21data1

0x2ec - Filter 21 data 1 register

source

pub fn f22data0(&self) -> &F22data0

0x2f0 - Filter 22 data 0 register

source

pub fn f22data1(&self) -> &F22data1

0x2f4 - Filter 22 data 1 register

source

pub fn f23data0(&self) -> &F23data0

0x2f8 - Filter 23 data 0 register

source

pub fn f23data1(&self) -> &F23data1

0x2fc - Filter 23 data 1 register

source

pub fn f24data0(&self) -> &F24data0

0x300 - Filter 24 data 0 register

source

pub fn f24data1(&self) -> &F24data1

0x304 - Filter 24 data 1 register

source

pub fn f25data0(&self) -> &F25data0

0x308 - Filter 25 data 0 register

source

pub fn f25data1(&self) -> &F25data1

0x30c - Filter 25 data 1 register

source

pub fn f26data0(&self) -> &F26data0

0x310 - Filter 26 data 0 register

source

pub fn f26data1(&self) -> &F26data1

0x314 - Filter 26 data 1 register

source

pub fn f27data0(&self) -> &F27data0

0x318 - Filter 27 data 0 register

source

pub fn f27data1(&self) -> &F27data1

0x31c - Filter 27 data 1 register

source

pub fn phyctl(&self) -> &Phyctl

0x3fc - PHY control register

Trait Implementations§

source§

impl Debug for Can1

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Can1

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Can1

Auto Trait Implementations§

§

impl Freeze for Can1

§

impl RefUnwindSafe for Can1

§

impl !Sync for Can1

§

impl Unpin for Can1

§

impl UnwindSafe for Can1

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.