pub struct Saadc { /* private fields */ }
Expand description
Analog to Digital Converter 0
Implementations§
Source§impl Saadc
impl Saadc
pub const unsafe fn from_ptr(ptr: *mut ()) -> Saadc
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn tasks_start(self) -> Reg<u32, W>
pub const fn tasks_start(self) -> Reg<u32, W>
Start the ADC and prepare the result buffer in RAM
Sourcepub const fn tasks_sample(self) -> Reg<u32, W>
pub const fn tasks_sample(self) -> Reg<u32, W>
Take one ADC sample, if scan is enabled all channels are sampled
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stop the ADC and terminate any on-going conversion
Sourcepub const fn tasks_calibrateoffset(self) -> Reg<u32, W>
pub const fn tasks_calibrateoffset(self) -> Reg<u32, W>
Starts offset auto-calibration
Sourcepub const fn subscribe_start(self) -> Reg<Subscribe, RW>
pub const fn subscribe_start(self) -> Reg<Subscribe, RW>
Subscribe configuration for task START
Sourcepub const fn subscribe_sample(self) -> Reg<Subscribe, RW>
pub const fn subscribe_sample(self) -> Reg<Subscribe, RW>
Subscribe configuration for task SAMPLE
Sourcepub const fn subscribe_stop(self) -> Reg<Subscribe, RW>
pub const fn subscribe_stop(self) -> Reg<Subscribe, RW>
Subscribe configuration for task STOP
Sourcepub const fn subscribe_calibrateoffset(self) -> Reg<Subscribe, RW>
pub const fn subscribe_calibrateoffset(self) -> Reg<Subscribe, RW>
Subscribe configuration for task CALIBRATEOFFSET
Sourcepub const fn events_started(self) -> Reg<u32, RW>
pub const fn events_started(self) -> Reg<u32, RW>
The ADC has started
Sourcepub const fn events_end(self) -> Reg<u32, RW>
pub const fn events_end(self) -> Reg<u32, RW>
The ADC has filled up the Result buffer
Sourcepub const fn events_done(self) -> Reg<u32, RW>
pub const fn events_done(self) -> Reg<u32, RW>
A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM.
Sourcepub const fn events_resultdone(self) -> Reg<u32, RW>
pub const fn events_resultdone(self) -> Reg<u32, RW>
A result is ready to get transferred to RAM.
Sourcepub const fn events_calibratedone(self) -> Reg<u32, RW>
pub const fn events_calibratedone(self) -> Reg<u32, RW>
Calibration is complete
Sourcepub const fn events_stopped(self) -> Reg<u32, RW>
pub const fn events_stopped(self) -> Reg<u32, RW>
The ADC has stopped
Sourcepub const fn publish_started(self) -> Reg<Publish, RW>
pub const fn publish_started(self) -> Reg<Publish, RW>
Publish configuration for event STARTED
Sourcepub const fn publish_end(self) -> Reg<Publish, RW>
pub const fn publish_end(self) -> Reg<Publish, RW>
Publish configuration for event END
Sourcepub const fn publish_done(self) -> Reg<Publish, RW>
pub const fn publish_done(self) -> Reg<Publish, RW>
Publish configuration for event DONE
Sourcepub const fn publish_resultdone(self) -> Reg<Publish, RW>
pub const fn publish_resultdone(self) -> Reg<Publish, RW>
Publish configuration for event RESULTDONE
Sourcepub const fn publish_calibratedone(self) -> Reg<Publish, RW>
pub const fn publish_calibratedone(self) -> Reg<Publish, RW>
Publish configuration for event CALIBRATEDONE
Sourcepub const fn publish_stopped(self) -> Reg<Publish, RW>
pub const fn publish_stopped(self) -> Reg<Publish, RW>
Publish configuration for event STOPPED
Sourcepub const fn publish_ch(self, n: usize) -> PublishCh
pub const fn publish_ch(self, n: usize) -> PublishCh
Publish configuration for events
Sourcepub const fn resolution(self) -> Reg<Resolution, RW>
pub const fn resolution(self) -> Reg<Resolution, RW>
Resolution configuration
Sourcepub const fn oversample(self) -> Reg<Oversample, RW>
pub const fn oversample(self) -> Reg<Oversample, RW>
Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.
Sourcepub const fn samplerate(self) -> Reg<Samplerate, RW>
pub const fn samplerate(self) -> Reg<Samplerate, RW>
Controls normal or continuous sample rate