Expand description

Successive approximation register (SAR) analog-to-digital converter

Re-exports

pub use events_ch::EVENTS_CH;
pub use ch::CH;
pub use result::RESULT;

Modules

Cluster Unspecified
Enable or disable SAADC
Calibration is complete
Cluster Peripheral events.
A conversion task has been completed. Depending on the configuration, multiple conversions might be needed for a result to be transferred to RAM.
The SAADC has filled up the result buffer
Result ready for transfer to RAM
The SAADC has started
The SAADC has stopped
Enable or disable interrupt
Disable interrupt
Enable interrupt
Oversampling configuration. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.
Resolution configuration
Cluster RESULT EasyDMA channel
Controls normal or continuous sample rate
Status
Starts offset auto-calibration
Takes one SAADC sample
Starts the SAADC and prepares the result buffer in RAM
Stops the SAADC and terminates all on-going conversions

Structs

Register block

Type Definitions

ENABLE (rw) register accessor: an alias for Reg<ENABLE_SPEC>
EVENTS_CALIBRATEDONE (rw) register accessor: an alias for Reg<EVENTS_CALIBRATEDONE_SPEC>
EVENTS_DONE (rw) register accessor: an alias for Reg<EVENTS_DONE_SPEC>
EVENTS_END (rw) register accessor: an alias for Reg<EVENTS_END_SPEC>
EVENTS_RESULTDONE (rw) register accessor: an alias for Reg<EVENTS_RESULTDONE_SPEC>
EVENTS_STARTED (rw) register accessor: an alias for Reg<EVENTS_STARTED_SPEC>
EVENTS_STOPPED (rw) register accessor: an alias for Reg<EVENTS_STOPPED_SPEC>
INTEN (rw) register accessor: an alias for Reg<INTEN_SPEC>
INTENCLR (rw) register accessor: an alias for Reg<INTENCLR_SPEC>
INTENSET (rw) register accessor: an alias for Reg<INTENSET_SPEC>
OVERSAMPLE (rw) register accessor: an alias for Reg<OVERSAMPLE_SPEC>
RESOLUTION (rw) register accessor: an alias for Reg<RESOLUTION_SPEC>
SAMPLERATE (rw) register accessor: an alias for Reg<SAMPLERATE_SPEC>
STATUS (r) register accessor: an alias for Reg<STATUS_SPEC>
TASKS_CALIBRATEOFFSET (w) register accessor: an alias for Reg<TASKS_CALIBRATEOFFSET_SPEC>
TASKS_SAMPLE (w) register accessor: an alias for Reg<TASKS_SAMPLE_SPEC>
TASKS_START (w) register accessor: an alias for Reg<TASKS_START_SPEC>
TASKS_STOP (w) register accessor: an alias for Reg<TASKS_STOP_SPEC>