# This is the 1st commit message: init commit # This is the commit message #2: smaller fixes for config files # This is the commit message #3: update VA416xx flash script file # This is the commit message #4: completed UART HAL, added first example # This is the commit message #5: UART, WDT and CLKGEN # This is the commit message #6: smaller workspace file tweaks # This is the commit message #7: SPI peripheral implementation # This is the commit message #8: update VS Code files # This is the commit message #9: update JLink files # This is the commit message #10: update VS Code files # This is the commit message #11: timer, PWM and I2C module # This is the commit message #12: Add CI # This is the commit message #13: update docs # This is the commit message #14: updates for documentation # This is the commit message #15: update CI as well # This is the commit message #16: add docs for setting up binary crate # This is the commit message #17: add additional memory section
30 lines
1.3 KiB
Rust
30 lines
1.3 KiB
Rust
#[doc = "Register `FIFO_DATA` reader"]
|
|
pub type R = crate::R<FifoDataSpec>;
|
|
#[doc = "Field `ADC_DATA` reader - ADC acquisition data from the FIFO"]
|
|
pub type AdcDataR = crate::FieldReader<u16>;
|
|
#[doc = "Field `CHAN_TAG` reader - If enabled, this will include the number of the channel corresponding to the measurement"]
|
|
pub type ChanTagR = crate::FieldReader;
|
|
impl R {
|
|
#[doc = "Bits 0:11 - ADC acquisition data from the FIFO"]
|
|
#[inline(always)]
|
|
pub fn adc_data(&self) -> AdcDataR {
|
|
AdcDataR::new((self.bits & 0x0fff) as u16)
|
|
}
|
|
#[doc = "Bits 12:15 - If enabled, this will include the number of the channel corresponding to the measurement"]
|
|
#[inline(always)]
|
|
pub fn chan_tag(&self) -> ChanTagR {
|
|
ChanTagR::new(((self.bits >> 12) & 0x0f) as u8)
|
|
}
|
|
}
|
|
#[doc = "FIFO data\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`fifo_data::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
|
|
pub struct FifoDataSpec;
|
|
impl crate::RegisterSpec for FifoDataSpec {
|
|
type Ux = u32;
|
|
}
|
|
#[doc = "`read()` method returns [`fifo_data::R`](R) reader structure"]
|
|
impl crate::Readable for FifoDataSpec {}
|
|
#[doc = "`reset()` method sets FIFO_DATA to value 0"]
|
|
impl crate::Resettable for FifoDataSpec {
|
|
const RESET_VALUE: u32 = 0;
|
|
}
|