RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 25 fields fstat: Fstat, fcnfg: Fcnfg, fsec: Fsec, fopt: Fopt, fccob3: Fccob3, fccob2: Fccob2, fccob1: Fccob1, fccob0: Fccob0, fccob7: Fccob7, fccob6: Fccob6, fccob5: Fccob5, fccob4: Fccob4, fccobb: Fccobb, fccoba: Fccoba, fccob9: Fccob9, fccob8: Fccob8, fprot: [Fprot; 4], _reserved17: [u8; 2], feprot: Feprot, fdprot: Fdprot, _reserved19: [u8; 20], fcsestat: Fcsestat, _reserved20: [u8; 1], ferstat: Ferstat, fercnfg: Fercnfg,
}
Expand description

Register block

Fields§

§fstat: Fstat§fcnfg: Fcnfg§fsec: Fsec§fopt: Fopt§fccob3: Fccob3§fccob2: Fccob2§fccob1: Fccob1§fccob0: Fccob0§fccob7: Fccob7§fccob6: Fccob6§fccob5: Fccob5§fccob4: Fccob4§fccobb: Fccobb§fccoba: Fccoba§fccob9: Fccob9§fccob8: Fccob8§fprot: [Fprot; 4]§_reserved17: [u8; 2]§feprot: Feprot§fdprot: Fdprot§_reserved19: [u8; 20]§fcsestat: Fcsestat§_reserved20: [u8; 1]§ferstat: Ferstat§fercnfg: Fercnfg

Implementations§

§

impl RegisterBlock

pub const fn fstat(&self) -> &Fstat

0x00 - Flash Status Register

pub const fn fcnfg(&self) -> &Fcnfg

0x01 - Flash Configuration Register

pub const fn fsec(&self) -> &Fsec

0x02 - Flash Security Register

pub const fn fopt(&self) -> &Fopt

0x03 - Flash Option Register

pub const fn fccob3(&self) -> &Fccob3

0x04 - Flash Common Command Object Registers

pub const fn fccob2(&self) -> &Fccob2

0x05 - Flash Common Command Object Registers

pub const fn fccob1(&self) -> &Fccob1

0x06 - Flash Common Command Object Registers

pub const fn fccob0(&self) -> &Fccob0

0x07 - Flash Common Command Object Registers

pub const fn fccob7(&self) -> &Fccob7

0x08 - Flash Common Command Object Registers

pub const fn fccob6(&self) -> &Fccob6

0x09 - Flash Common Command Object Registers

pub const fn fccob5(&self) -> &Fccob5

0x0a - Flash Common Command Object Registers

pub const fn fccob4(&self) -> &Fccob4

0x0b - Flash Common Command Object Registers

pub const fn fccobb(&self) -> &Fccobb

0x0c - Flash Common Command Object Registers

pub const fn fccoba(&self) -> &Fccoba

0x0d - Flash Common Command Object Registers

pub const fn fccob9(&self) -> &Fccob9

0x0e - Flash Common Command Object Registers

pub const fn fccob8(&self) -> &Fccob8

0x0f - Flash Common Command Object Registers

pub const fn fprot(&self, n: usize) -> &Fprot

0x10 - Program Flash Protection Registers

pub fn fprot_iter(&self) -> impl Iterator<Item = &Fprot>

Iterator for array of: 0x10 - Program Flash Protection Registers

pub const fn feprot(&self) -> &Feprot

0x16 - EEPROM Protection Register

pub const fn fdprot(&self) -> &Fdprot

0x17 - Data Flash Protection Register

pub const fn fcsestat(&self) -> &Fcsestat

0x2c - Flash CSEc Status Register

pub const fn ferstat(&self) -> &Ferstat

0x2e - Flash Error Status Register

pub const fn fercnfg(&self) -> &Fercnfg

0x2f - Flash Error Configuration Register

Auto Trait Implementations§

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>,

Source§

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>,

Source§

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.