#[repr(transparent)]pub struct Sinc(pub u32);Expand description
TSI SINC Filter Register. Low four bits report SSC/filter state; configuration is in bits 16 and above. SINC_CUTOFF encodings 8-15 are NC. Its prose says default div=0 while code 0 is listed as div=1; preserve the raw code rather than interpreting the inconsistent default wording.
Tuple Fields§
§0: u32Implementations§
Source§impl Sinc
impl Sinc
Sourcepub const fn ssc_control_out(&self) -> bool
pub const fn ssc_control_out(&self) -> bool
SSC_CONTROL_OUT. Encodings: 0: SSC output value is 0; 1: SSC output value is 1
Sourcepub const fn set_ssc_control_out(&mut self, val: bool)
pub const fn set_ssc_control_out(&mut self, val: bool)
SSC_CONTROL_OUT. Encodings: 0: SSC output value is 0; 1: SSC output value is 1
Sourcepub const fn sinc_valid(&self) -> bool
pub const fn sinc_valid(&self) -> bool
SINC_VALID. Encodings: 0: SINC filter is disabled; 1: SINC filter is enabled
Sourcepub const fn set_sinc_valid(&mut self, val: bool)
pub const fn set_sinc_valid(&mut self, val: bool)
SINC_VALID. Encodings: 0: SINC filter is disabled; 1: SINC filter is enabled
Sourcepub const fn sinc_overflow_flag(&self) -> bool
pub const fn sinc_overflow_flag(&self) -> bool
SINC_OVERFLOW_FLAG. Encodings: 0: The counter result has no overflow occurrence in the last scan process; 1: The counter result has an overflow occurrence in the last scan process
Sourcepub const fn set_sinc_overflow_flag(&mut self, val: bool)
pub const fn set_sinc_overflow_flag(&mut self, val: bool)
SINC_OVERFLOW_FLAG. Encodings: 0: The counter result has no overflow occurrence in the last scan process; 1: The counter result has an overflow occurrence in the last scan process
Sourcepub const fn switch_enable(&self) -> bool
pub const fn switch_enable(&self) -> bool
SWITCH_ENABLE. Encodings: 0: SSC function is disabled; 1: SSC function is enabled
Sourcepub const fn set_switch_enable(&mut self, val: bool)
pub const fn set_switch_enable(&mut self, val: bool)
SWITCH_ENABLE. Encodings: 0: SSC function is disabled; 1: SSC function is enabled
Sourcepub const fn sinc_decimation(&self) -> u8
pub const fn sinc_decimation(&self) -> u8
Numeric code N accumulates N+1 trigger periods, 1..32 periods.
Sourcepub const fn set_sinc_decimation(&mut self, val: u8)
pub const fn set_sinc_decimation(&mut self, val: u8)
Numeric code N accumulates N+1 trigger periods, 1..32 periods.
Sourcepub const fn sinc_order(&self) -> bool
pub const fn sinc_order(&self) -> bool
SINC_ORDER. Encodings: 0: Using 1 order sinc filter; 1: Using 2 order sinc filter
Sourcepub const fn set_sinc_order(&mut self, val: bool)
pub const fn set_sinc_order(&mut self, val: bool)
SINC_ORDER. Encodings: 0: Using 1 order sinc filter; 1: Using 2 order sinc filter
Sourcepub const fn sinc_cutoff(&self) -> u8
pub const fn sinc_cutoff(&self) -> u8
SINC_CUTOFF. Encodings: 0: div=1; 1: div=2; 2: div=4; 3: div=8; 4: div=16; 5: div=32; 6: div=64; 7: div=128; 8: NC; 9: NC; 10: NC; 11: NC; 12: NC; 13: NC; 14: NC; 15: NC
Sourcepub const fn set_sinc_cutoff(&mut self, val: u8)
pub const fn set_sinc_cutoff(&mut self, val: u8)
SINC_CUTOFF. Encodings: 0: div=1; 1: div=2; 2: div=4; 3: div=8; 4: div=16; 5: div=32; 6: div=64; 7: div=128; 8: NC; 9: NC; 10: NC; 11: NC; 12: NC; 13: NC; 14: NC; 15: NC