Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 17 fields pub fstat: FSTAT, pub fcnfg: FCNFG, pub fsec: FSEC, pub fccob: [FCCOB; 12], pub fopt: [FOPT; 4], pub fprot: [FPROT; 8], pub fprots: [FPROTS; 2], pub facss: FACSS, pub facsn: FACSN, pub facsss: FACSSS, pub facsns: FACSNS, pub xacc: [XACC; 8], pub sacc: [SACC; 8], pub xaccs: [XACCS; 2], pub saccs: [SACCS; 2], pub fstdbyctl: FSTDBYCTL, pub fstdby: FSTDBY, /* private fields */
}
Expand description

Register block

Fields§

§fstat: FSTAT

0x00 - Flash Status Register

§fcnfg: FCNFG

0x01 - Flash Configuration Register

§fsec: FSEC

0x02 - Flash Security Register

§fccob: [FCCOB; 12]

0x04..0x10 - Flash Common Command Object Registers

§fopt: [FOPT; 4]

0x10 - Flash Option Registers

§fprot: [FPROT; 8]

0x18..0x20 - Primary Program Flash Protection Registers

§fprots: [FPROTS; 2]

0x24 - Secondary Program Flash Protection Registers

§facss: FACSS

0x2c - Primary Flash Access Segment Size Register

§facsn: FACSN

0x2d - Primary Flash Access Segment Number Register

§facsss: FACSSS

0x2e - Secondary Flash Access Segment Size Register

§facsns: FACSNS

0x2f - Secondary Flash Access Segment Number Register

§xacc: [XACC; 8]

0x30..0x38 - Primary Execute-only Access Registers

§sacc: [SACC; 8]

0x38..0x40 - Primary Supervisor-only Access Registers

§xaccs: [XACCS; 2]

0x44 - Secondary Execute-only Access Registers

§saccs: [SACCS; 2]

0x4c - Secondary Supervisor-only Access Registers

§fstdbyctl: FSTDBYCTL

0x52 - Flash Standby Control Register

§fstdby: FSTDBY

0x53 - Flash Standby Register

Implementations§

Source§

impl RegisterBlock

Source

pub fn fccob3(&self) -> &FCCOB

0x04 - Flash Common Command Object Registers

Source

pub fn fccob2(&self) -> &FCCOB

0x05 - Flash Common Command Object Registers

Source

pub fn fccob1(&self) -> &FCCOB

0x06 - Flash Common Command Object Registers

Source

pub fn fccob0(&self) -> &FCCOB

0x07 - Flash Common Command Object Registers

Source

pub fn fccob7(&self) -> &FCCOB

0x08 - Flash Common Command Object Registers

Source

pub fn fccob6(&self) -> &FCCOB

0x09 - Flash Common Command Object Registers

Source

pub fn fccob5(&self) -> &FCCOB

0x0a - Flash Common Command Object Registers

Source

pub fn fccob4(&self) -> &FCCOB

0x0b - Flash Common Command Object Registers

Source

pub fn fccobb(&self) -> &FCCOB

0x0c - Flash Common Command Object Registers

Source

pub fn fccoba(&self) -> &FCCOB

0x0d - Flash Common Command Object Registers

Source

pub fn fccob9(&self) -> &FCCOB

0x0e - Flash Common Command Object Registers

Source

pub fn fccob8(&self) -> &FCCOB

0x0f - Flash Common Command Object Registers

Source

pub fn fopt3(&self) -> &FOPT

0x10 - Flash Option Registers

Source

pub fn fopt2(&self) -> &FOPT

0x11 - Flash Option Registers

Source

pub fn fopt1(&self) -> &FOPT

0x12 - Flash Option Registers

Source

pub fn fopt0(&self) -> &FOPT

0x13 - Flash Option Registers

Source

pub fn fproth3(&self) -> &FPROT

0x18 - Primary Program Flash Protection Registers

Source

pub fn fproth2(&self) -> &FPROT

0x19 - Primary Program Flash Protection Registers

Source

pub fn fproth1(&self) -> &FPROT

0x1a - Primary Program Flash Protection Registers

Source

pub fn fproth0(&self) -> &FPROT

0x1b - Primary Program Flash Protection Registers

Source

pub fn fprotl3(&self) -> &FPROT

0x1c - Primary Program Flash Protection Registers

Source

pub fn fprotl2(&self) -> &FPROT

0x1d - Primary Program Flash Protection Registers

Source

pub fn fprotl1(&self) -> &FPROT

0x1e - Primary Program Flash Protection Registers

Source

pub fn fprotl0(&self) -> &FPROT

0x1f - Primary Program Flash Protection Registers

Source

pub fn fprotsl(&self) -> &FPROTS

0x24 - Secondary Program Flash Protection Registers

Source

pub fn fprotsh(&self) -> &FPROTS

0x25 - Secondary Program Flash Protection Registers

Source

pub fn xacch3(&self) -> &XACC

0x30 - Primary Execute-only Access Registers

Source

pub fn xacch2(&self) -> &XACC

0x31 - Primary Execute-only Access Registers

Source

pub fn xacch1(&self) -> &XACC

0x32 - Primary Execute-only Access Registers

Source

pub fn xacch0(&self) -> &XACC

0x33 - Primary Execute-only Access Registers

Source

pub fn xaccl3(&self) -> &XACC

0x34 - Primary Execute-only Access Registers

Source

pub fn xaccl2(&self) -> &XACC

0x35 - Primary Execute-only Access Registers

Source

pub fn xaccl1(&self) -> &XACC

0x36 - Primary Execute-only Access Registers

Source

pub fn xaccl0(&self) -> &XACC

0x37 - Primary Execute-only Access Registers

Source

pub fn sacch3(&self) -> &SACC

0x38 - Primary Supervisor-only Access Registers

Source

pub fn sacch2(&self) -> &SACC

0x39 - Primary Supervisor-only Access Registers

Source

pub fn sacch1(&self) -> &SACC

0x3a - Primary Supervisor-only Access Registers

Source

pub fn sacch0(&self) -> &SACC

0x3b - Primary Supervisor-only Access Registers

Source

pub fn saccl3(&self) -> &SACC

0x3c - Primary Supervisor-only Access Registers

Source

pub fn saccl2(&self) -> &SACC

0x3d - Primary Supervisor-only Access Registers

Source

pub fn saccl1(&self) -> &SACC

0x3e - Primary Supervisor-only Access Registers

Source

pub fn saccl0(&self) -> &SACC

0x3f - Primary Supervisor-only Access Registers

Source

pub fn xaccsl(&self) -> &XACCS

0x44 - Secondary Execute-only Access Registers

Source

pub fn xaccsh(&self) -> &XACCS

0x45 - Secondary Execute-only Access Registers

Source

pub fn saccsl(&self) -> &SACCS

0x4c - Secondary Supervisor-only Access Registers

Source

pub fn saccsh(&self) -> &SACCS

0x4d - Secondary Supervisor-only Access Registers

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.