#[repr(transparent)]pub struct Data(pub u32);Expand description
TSI Data and Status Register. TSICNT is read-only. EOSF, OVERRUNF, OUTRGF and DPD_OUTRGF are write-one-to-clear: write only intended flag bits, not read-modify-write. DMA transfer clears EOSF/OUTRGF automatically. DPD_OUTRGF can be read only with GENCS.TSIEN_DPD=1. OVERRUNF encoding descriptions contradict the assertion prose; no polarity enum is supplied.
Tuple Fields§
§0: u32Implementations§
Source§impl Data
impl Data
Sourcepub const fn set_tsicnt(&mut self, val: u16)
pub const fn set_tsicnt(&mut self, val: u16)
TSI Conversion Counter Value
Sourcepub const fn tsicnt_overflow_flag(&self) -> bool
pub const fn tsicnt_overflow_flag(&self) -> bool
TSI Counter Overflow Flag. Encodings: 0: The DATA[TSICNT] value has no overflow occurrence in the last scan process; 1: The DATA[TSICNT] value has an overflow occurrence in the last scan process
Sourcepub const fn set_tsicnt_overflow_flag(&mut self, val: bool)
pub const fn set_tsicnt_overflow_flag(&mut self, val: bool)
TSI Counter Overflow Flag. Encodings: 0: The DATA[TSICNT] value has no overflow occurrence in the last scan process; 1: The DATA[TSICNT] value has an overflow occurrence in the last scan process
Sourcepub const fn eosf(&self) -> bool
pub const fn eosf(&self) -> bool
End of Scan Flag. Encodings: 0: Scan is not done; 1: Scan is done
Sourcepub const fn set_eosf(&mut self, val: bool)
pub const fn set_eosf(&mut self, val: bool)
End of Scan Flag. Encodings: 0: Scan is not done; 1: Scan is done
Sourcepub const fn overrunf(&self) -> bool
pub const fn overrunf(&self) -> bool
Overrun flag, write-one-to-clear according to the register diagram. The assertion prose says a trigger or configuration write during an active scan asserts the flag, but the encoding list reverses that polarity (59.6.1.25); no polarity enum is supplied.
Sourcepub const fn set_overrunf(&mut self, val: bool)
pub const fn set_overrunf(&mut self, val: bool)
Overrun flag, write-one-to-clear according to the register diagram. The assertion prose says a trigger or configuration write during an active scan asserts the flag, but the encoding list reverses that polarity (59.6.1.25); no polarity enum is supplied.
Sourcepub const fn outrgf(&self) -> bool
pub const fn outrgf(&self) -> bool
Out of Range Flag. Encodings: 0: The counter value is not out of range; 1: The counter value is out of range
Sourcepub const fn set_outrgf(&mut self, val: bool)
pub const fn set_outrgf(&mut self, val: bool)
Out of Range Flag. Encodings: 0: The counter value is not out of range; 1: The counter value is out of range
Sourcepub const fn dpd_outrgf(&self) -> bool
pub const fn dpd_outrgf(&self) -> bool
DPD Out of Range Flag. Encodings: 0: The counter value is not out of range; 1: The counter value is out of range
Sourcepub const fn set_dpd_outrgf(&mut self, val: bool)
pub const fn set_dpd_outrgf(&mut self, val: bool)
DPD Out of Range Flag. Encodings: 0: The counter value is not out of range; 1: The counter value is out of range