cc13x2_cc26x2_pac::cpu_scs::cfsr

Struct W

Source
pub struct W { /* private fields */ }
Expand description

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register

Source

pub fn reserved26(&mut self) -> _RESERVED26W<'_>

Bits 26:31 - 31:26] Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior.

Source

pub fn divbyzero(&mut self) -> _DIVBYZEROW<'_>

Bit 25 - 25:25] When CCR.DIV_0_TRP (see Configuration Control Register on page 8-26) is enabled and an SDIV or UDIV instruction is used with a divisor of 0, this fault occurs The instruction is executed and the return PC points to it. If CCR.DIV_0_TRP is not set, then the divide returns a quotient of 0.

Source

pub fn unaligned(&mut self) -> _UNALIGNEDW<'_>

Bit 24 - 24:24] When CCR.UNALIGN_TRP is enabled, and there is an attempt to make an unaligned memory access, then this fault occurs. Unaligned LDM/STM/LDRD/STRD instructions always fault irrespective of the setting of CCR.UNALIGN_TRP.

Source

pub fn reserved20(&mut self) -> _RESERVED20W<'_>

Bits 20:23 - 23:20] Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior.

Source

pub fn nocp(&mut self) -> _NOCPW<'_>

Bit 19 - 19:19] Attempt to use a coprocessor instruction. The processor does not support coprocessor instructions.

Source

pub fn invpc(&mut self) -> _INVPCW<'_>

Bit 18 - 18:18] Attempt to load EXC_RETURN into PC illegally. Invalid instruction, invalid context, invalid value. The return PC points to the instruction that tried to set the PC.

Source

pub fn invstate(&mut self) -> _INVSTATEW<'_>

Bit 17 - 17:17] Indicates an attempt to execute in an invalid EPSR state (e.g. after a BX type instruction has changed state). This includes state change after entry to or return from exception, as well as from inter-working instructions. Return PC points to faulting instruction, with the invalid state.

Source

pub fn undefinstr(&mut self) -> _UNDEFINSTRW<'_>

Bit 16 - 16:16] This bit is set when the processor attempts to execute an undefined instruction. This is an instruction that the processor cannot decode. The return PC points to the undefined instruction.

Source

pub fn bfarvalid(&mut self) -> _BFARVALIDW<'_>

Bit 15 - 15:15] This bit is set if the Bus Fault Address Register (BFAR) contains a valid address. This is true after a bus fault where the address is known. Other faults can clear this bit, such as a Mem Manage fault occurring later. If a Bus fault occurs that is escalated to a Hard Fault because of priority, the Hard Fault handler must clear this bit. This prevents problems if returning to a stacked active Bus fault handler whose BFAR value has been overwritten.

Source

pub fn reserved13(&mut self) -> _RESERVED13W<'_>

Bits 13:14 - 14:13] Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior.

Source

pub fn stkerr(&mut self) -> _STKERRW<'_>

Bit 12 - 12:12] Stacking from exception has caused one or more bus faults. The SP is still adjusted and the values in the context area on the stack might be incorrect. BFAR is not written.

Source

pub fn unstkerr(&mut self) -> _UNSTKERRW<'_>

Bit 11 - 11:11] Unstack from exception return has caused one or more bus faults. This is chained to the handler, so that the original return stack is still present. SP is not adjusted from failing return and new save is not performed. BFAR is not written.

Source

pub fn impreciserr(&mut self) -> _IMPRECISERRW<'_>

Bit 10 - 10:10] Imprecise data bus error. It is a BusFault, but the Return PC is not related to the causing instruction. This is not a synchronous fault. So, if detected when the priority of the current activation is higher than the Bus Fault, it only pends. Bus fault activates when returning to a lower priority activation. If a precise fault occurs before returning to a lower priority exception, the handler detects both IMPRECISERR set and one of the precise fault status bits set at the same time. BFAR is not written.

Source

pub fn preciserr(&mut self) -> _PRECISERRW<'_>

Bit 9 - 9:9] Precise data bus error return.

Source

pub fn ibuserr(&mut self) -> _IBUSERRW<'_>

Bit 8 - 8:8] Instruction bus error flag. This flag is set by a prefetch error. The fault stops on the instruction, so if the error occurs under a branch shadow, no fault occurs. BFAR is not written.

Source

pub fn mmarvalid(&mut self) -> _MMARVALIDW<'_>

Bit 7 - 7:7] Memory Manage Address Register (MMFAR) address valid flag. A later-arriving fault, such as a bus fault, can clear a memory manage fault.. If a MemManage fault occurs that is escalated to a Hard Fault because of priority, the Hard Fault handler must clear this bit. This prevents problems on return to a stacked active MemManage handler whose MMFAR value has been overwritten.

Source

pub fn reserved5(&mut self) -> _RESERVED5W<'_>

Bits 5:6 - 6:5] Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior.

Source

pub fn mstkerr(&mut self) -> _MSTKERRW<'_>

Bit 4 - 4:4] Stacking from exception has caused one or more access violations. The SP is still adjusted and the values in the context area on the stack might be incorrect. MMFAR is not written.

Source

pub fn munstkerr(&mut self) -> _MUNSTKERRW<'_>

Bit 3 - 3:3] Unstack from exception return has caused one or more access violations. This is chained to the handler, so that the original return stack is still present. SP is not adjusted from failing return and new save is not performed. MMFAR is not written.

Source

pub fn reserved2(&mut self) -> _RESERVED2W<'_>

Bit 2 - 2:2] Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior.

Source

pub fn daccviol(&mut self) -> _DACCVIOLW<'_>

Bit 1 - 1:1] Data access violation flag. Attempting to load or store at a location that does not permit the operation sets this flag. The return PC points to the faulting instruction. This error loads MMFAR with the address of the attempted access.

Source

pub fn iaccviol(&mut self) -> _IACCVIOLW<'_>

Bit 0 - 0:0] Instruction access violation flag. Attempting to fetch an instruction from a location that does not permit execution sets this flag. This occurs on any access to an XN region, even when the MPU is disabled or not present. The return PC points to the faulting instruction. MMFAR is not written.

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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> Same for T

Source§

type Output = T

Should always be Self
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.