#[repr(transparent)]pub struct Sr(pub u32);Expand description
Status
Tuple Fields§
§0: u32Implementations§
Source§impl Sr
impl Sr
Sourcepub const fn dtf(&self) -> bool
pub const fn dtf(&self) -> bool
Tamper flag. Conditional W1C only when TAF=1. Reset-condition prose says set on VBAT/software reset, conflicting with table defaults. Raw bit values: false (0) = NoDet: TDET tampering not detected; true (1) = Det: TDET tampering detected
Sourcepub const fn set_dtf(&mut self, val: bool)
pub const fn set_dtf(&mut self, val: bool)
Tamper flag. Conditional W1C only when TAF=1. Reset-condition prose says set on VBAT/software reset, conflicting with table defaults. Raw bit values: false (0) = NoDet: TDET tampering not detected; true (1) = Det: TDET tampering detected
Sourcepub const fn taf(&self) -> bool
pub const fn taf(&self) -> bool
Tamper acknowledged by chip reset. Software may W1C only while DTF=0. Table and prose both describe TAF clear on reset; the A2 reset conflict concerns DTF instead. Raw bit values: false (0) = NotOccur: Digital Tamper Flag (SR[DTF]) is clear or chip reset has not occurred after Digital Tamper Flag (SR[DTF]) was set.; true (1) = Occur: Chip reset has occurred after Digital Tamper Flag (SR[DTF]) was set.
Sourcepub const fn set_taf(&mut self, val: bool)
pub const fn set_taf(&mut self, val: bool)
Tamper acknowledged by chip reset. Software may W1C only while DTF=0. Table and prose both describe TAF clear on reset; the A2 reset conflict concerns DTF instead. Raw bit values: false (0) = NotOccur: Digital Tamper Flag (SR[DTF]) is clear or chip reset has not occurred after Digital Tamper Flag (SR[DTF]) was set.; true (1) = Occur: Chip reset has occurred after Digital Tamper Flag (SR[DTF]) was set.
Sourcepub const fn tpf0(&self) -> bool
pub const fn tpf0(&self) -> bool
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn set_tpf0(&mut self, val: bool)
pub const fn set_tpf0(&mut self, val: bool)
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn tpf1(&self) -> bool
pub const fn tpf1(&self) -> bool
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn set_tpf1(&mut self, val: bool)
pub const fn set_tpf1(&mut self, val: bool)
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn tpf2(&self) -> bool
pub const fn tpf2(&self) -> bool
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn set_tpf2(&mut self, val: bool)
pub const fn set_tpf2(&mut self, val: bool)
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn tpf3(&self) -> bool
pub const fn tpf3(&self) -> bool
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn set_tpf3(&mut self, val: bool)
pub const fn set_tpf3(&mut self, val: bool)
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn tpf4(&self) -> bool
pub const fn tpf4(&self) -> bool
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected
Sourcepub const fn set_tpf4(&mut self, val: bool)
pub const fn set_tpf4(&mut self, val: bool)
Tamper Pin n Flag W1C only after pin equals expected level and filter output updates. Raw bit values: false (0) = NoDet: Pin tamper not detected; true (1) = Det: Pin tamper detected