Struct atsamd_hal::icm::RegionConfiguration  
source · [−]#[repr(C)]pub struct RegionConfiguration(pub u32);Expand description
Region Configuration Structure
Follows C-structure conventions
Tuple Fields
0: u32Implementations
sourceimpl RegionConfiguration
 
impl RegionConfiguration
sourcepub fn get_cdwbn(&self) -> bool
 
pub fn get_cdwbn(&self) -> bool
Compare Digest or Write Back Digest
- true: in Compare Digest mode.
- false: in Write Back Digest mode.
sourcepub fn set_cdwbn(&mut self, value: bool)
 
pub fn set_cdwbn(&mut self, value: bool)
Compare Digest or Write Back Digest
- true: in Compare Digest mode.
- false: in Write Back Digest mode.
sourcepub fn get_wrap(&self) -> bool
 
pub fn get_wrap(&self) -> bool
Wrap Command
- true: next region descriptor address loaded is DSCR.
- false: the next region descriptor address is current + 0x10.
sourcepub fn set_wrap(&mut self, value: bool)
 
pub fn set_wrap(&mut self, value: bool)
Wrap Command
- true: next region descriptor address loaded is DSCR.
- false: the next region descriptor address is current + 0x10.
sourcepub fn get_eom(&self) -> bool
 
pub fn get_eom(&self) -> bool
End of Monitoring
- true: the current descriptor terminates the Main List, WRAP bit has no effect.
- false: the current descriptor does not terminate the monitoring.
sourcepub fn set_eom(&mut self, value: bool)
 
pub fn set_eom(&mut self, value: bool)
End of Monitoring
- true: the current descriptor terminates the Main List, WRAP bit has no effect.
- false: the current descriptor does not terminate the monitoring.
sourcepub fn get_rhien(&self) -> bool
 
pub fn get_rhien(&self) -> bool
Region Hash Completed Interrupt Disable
- true: the RHCflag remains cleared even if the setting condition is met.
- false: the RHCflag is set when the fieldNEXT = 0is found in main or secondary list.
sourcepub fn set_rhien(&mut self, value: bool)
 
pub fn set_rhien(&mut self, value: bool)
Region Hash Completed Interrupt Disable
- true: the RHCflag remains cleared even if the setting condition is met.
- false: the RHCflag is set when the fieldNEXT = 0is found in main or secondary list.
sourcepub fn get_dmien(&self) -> bool
 
pub fn get_dmien(&self) -> bool
Digest Mismatch Interrupt Disable
- true: the RBEflag remains cleared even if the setting condition is met.
- false: the RBEflag is set when the hash value just calculated from the processed region differs from expected hash value.
sourcepub fn set_dmien(&mut self, value: bool)
 
pub fn set_dmien(&mut self, value: bool)
Digest Mismatch Interrupt Disable
- true: the RBEflag remains cleared even if the setting condition is met.
- false: the RBEflag is set when the hash value just calculated from the processed region differs from expected hash value.
sourcepub fn get_beien(&self) -> bool
 
pub fn get_beien(&self) -> bool
Bus Error Interrupt Disable
- true: the flag remains cleared even if the setting condition is met.
- false: the flag is set when an error is reported on the sysstem bus by the bus MATRIX.
sourcepub fn set_beien(&mut self, value: bool)
 
pub fn set_beien(&mut self, value: bool)
Bus Error Interrupt Disable
- true: the flag remains cleared even if the setting condition is met.
- false: the flag is set when an error is reported on the sysstem bus by the bus MATRIX.
sourcepub fn get_wcien(&self) -> bool
 
pub fn get_wcien(&self) -> bool
Wrap Condition Interrupt Disable
- true: the RWCflag remains cleared even if the setting condition is met.
- false: the RWCflag is set when the WRAP is encountered.
sourcepub fn set_wcien(&mut self, value: bool)
 
pub fn set_wcien(&mut self, value: bool)
Wrap Condition Interrupt Disable
- true: the RWCflag remains cleared even if the setting condition is met.
- false: the RWCflag is set when the WRAP is encountered.
sourcepub fn get_ecien(&self) -> bool
 
pub fn get_ecien(&self) -> bool
End Bit Condition Interrupt Enable
- true: the RECflag remains cleared even if the setting condition is met.
- false: the RECflag is set when the descriptor having theEOMbit set is processed.
sourcepub fn set_ecien(&mut self, value: bool)
 
pub fn set_ecien(&mut self, value: bool)
End Bit Condition Interrupt Enable
- true: the RECflag remains cleared even if the setting condition is met.
- false: the RECflag is set when the descriptor having theEOMbit set is processed.
sourcepub fn get_suien(&self) -> bool
 
pub fn get_suien(&self) -> bool
Monitoring Status Updated Condition Interrupt Enable
- true: the RSUflag remains cleared even if the condition is met.
- false: the RSUflag is set when the corresponding descriptor is loaded from memory to ICM.
sourcepub fn set_suien(&mut self, value: bool)
 
pub fn set_suien(&mut self, value: bool)
Monitoring Status Updated Condition Interrupt Enable
- true: the RSUflag remains cleared even if the condition is met.
- false: the RSUflag is set when the corresponding descriptor is loaded from memory to ICM.
sourcepub fn get_procdly(&self) -> bool
 
pub fn get_procdly(&self) -> bool
sourcepub fn set_procdly(&mut self, value: bool)
 
pub fn set_procdly(&mut self, value: bool)
sourceimpl RegionConfiguration
 
impl RegionConfiguration
sourcepub fn set_algo(&mut self, value: icm_algorithm)
 
pub fn set_algo(&mut self, value: icm_algorithm)
User SHA Algorithm
Allow setting this regions icm_algorithm.
sourcepub fn get_algo(&mut self) -> icm_algorithm
 
pub fn get_algo(&mut self) -> icm_algorithm
User SHA Algorithm
Get the current user sha algorithm
sourcepub fn reset_region_configuration_to_default(&mut self)
 
pub fn reset_region_configuration_to_default(&mut self)
Reset the RegionConfiguration to default values
Useful if changing between hashing and monitoring, etc.
Trait Implementations
sourceimpl<T> BitRange<T> for RegionConfigurationwhere
    u32: BitRange<T>,
 
impl<T> BitRange<T> for RegionConfigurationwhere
    u32: BitRange<T>,
sourceimpl Clone for RegionConfiguration
 
impl Clone for RegionConfiguration
sourcefn clone(&self) -> RegionConfiguration
 
fn clone(&self) -> RegionConfiguration
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more