Struct atsam4s2a_pac::adc::cor::W

source ·
pub struct W(_);
Expand description

Register COR writer

Implementations§

source§

impl W

source

pub fn off0(&mut self) -> OFF0_W<'_, 0>

Bit 0 - Offset for channel 0

source

pub fn off1(&mut self) -> OFF1_W<'_, 1>

Bit 1 - Offset for channel 1

source

pub fn off2(&mut self) -> OFF2_W<'_, 2>

Bit 2 - Offset for channel 2

source

pub fn off3(&mut self) -> OFF3_W<'_, 3>

Bit 3 - Offset for channel 3

source

pub fn off4(&mut self) -> OFF4_W<'_, 4>

Bit 4 - Offset for channel 4

source

pub fn off5(&mut self) -> OFF5_W<'_, 5>

Bit 5 - Offset for channel 5

source

pub fn off6(&mut self) -> OFF6_W<'_, 6>

Bit 6 - Offset for channel 6

source

pub fn off7(&mut self) -> OFF7_W<'_, 7>

Bit 7 - Offset for channel 7

source

pub fn off8(&mut self) -> OFF8_W<'_, 8>

Bit 8 - Offset for channel 8

source

pub fn off9(&mut self) -> OFF9_W<'_, 9>

Bit 9 - Offset for channel 9

source

pub fn off10(&mut self) -> OFF10_W<'_, 10>

Bit 10 - Offset for channel 10

source

pub fn off11(&mut self) -> OFF11_W<'_, 11>

Bit 11 - Offset for channel 11

source

pub fn off12(&mut self) -> OFF12_W<'_, 12>

Bit 12 - Offset for channel 12

source

pub fn off13(&mut self) -> OFF13_W<'_, 13>

Bit 13 - Offset for channel 13

source

pub fn off14(&mut self) -> OFF14_W<'_, 14>

Bit 14 - Offset for channel 14

source

pub fn off15(&mut self) -> OFF15_W<'_, 15>

Bit 15 - Offset for channel 15

source

pub fn diff0(&mut self) -> DIFF0_W<'_, 16>

Bit 16 - Differential inputs for channel 0

source

pub fn diff1(&mut self) -> DIFF1_W<'_, 17>

Bit 17 - Differential inputs for channel 1

source

pub fn diff2(&mut self) -> DIFF2_W<'_, 18>

Bit 18 - Differential inputs for channel 2

source

pub fn diff3(&mut self) -> DIFF3_W<'_, 19>

Bit 19 - Differential inputs for channel 3

source

pub fn diff4(&mut self) -> DIFF4_W<'_, 20>

Bit 20 - Differential inputs for channel 4

source

pub fn diff5(&mut self) -> DIFF5_W<'_, 21>

Bit 21 - Differential inputs for channel 5

source

pub fn diff6(&mut self) -> DIFF6_W<'_, 22>

Bit 22 - Differential inputs for channel 6

source

pub fn diff7(&mut self) -> DIFF7_W<'_, 23>

Bit 23 - Differential inputs for channel 7

source

pub fn diff8(&mut self) -> DIFF8_W<'_, 24>

Bit 24 - Differential inputs for channel 8

source

pub fn diff9(&mut self) -> DIFF9_W<'_, 25>

Bit 25 - Differential inputs for channel 9

source

pub fn diff10(&mut self) -> DIFF10_W<'_, 26>

Bit 26 - Differential inputs for channel 10

source

pub fn diff11(&mut self) -> DIFF11_W<'_, 27>

Bit 27 - Differential inputs for channel 11

source

pub fn diff12(&mut self) -> DIFF12_W<'_, 28>

Bit 28 - Differential inputs for channel 12

source

pub fn diff13(&mut self) -> DIFF13_W<'_, 29>

Bit 29 - Differential inputs for channel 13

source

pub fn diff14(&mut self) -> DIFF14_W<'_, 30>

Bit 30 - Differential inputs for channel 14

source

pub fn diff15(&mut self) -> DIFF15_W<'_, 31>

Bit 31 - Differential inputs for channel 15

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<COR_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<COR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<COR_SPEC>> for W

source§

fn from(writer: W<COR_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.