Skip to main content

Oc

Struct Oc 

Source
pub struct Oc<OCMP, TIMEBASE> { /* private fields */ }
Expand description

Output compare modules configured for non-PWM output compare operations

Implementations§

Source§

impl Oc<OCMP1, TimebaseUninit>

Source

pub fn oc1(ocmp: OCMP1, stop_in_idle_mode: bool) -> Self

Source§

impl<TIMEBASE> Oc<OCMP1, TIMEBASE>

Source

pub fn timebase16even(self) -> Oc<OCMP1, Timebase16even>

Select the even numbered 16-bit timer as the time base.

Source

pub fn timebase16odd(self) -> Oc<OCMP1, Timebase16odd>

Select the odd numbered 16-bit timer as the time base.

Source

pub fn timebase32(self) -> Oc<OCMP1, Timebase32>

Select both 16-bit timers as a 32-bit time base.

Source

pub fn free(self) -> OCMP1

Deactivate the output compare module and return the PAC object

Source

pub fn turn_off(&mut self)

Turn output compare module off

Source§

impl Oc<OCMP1, Timebase16even>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP1, Timebase16odd>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP1, Timebase32>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP2, TimebaseUninit>

Source

pub fn oc2(ocmp: OCMP2, stop_in_idle_mode: bool) -> Self

Source§

impl<TIMEBASE> Oc<OCMP2, TIMEBASE>

Source

pub fn timebase16even(self) -> Oc<OCMP2, Timebase16even>

Select the even numbered 16-bit timer as the time base.

Source

pub fn timebase16odd(self) -> Oc<OCMP2, Timebase16odd>

Select the odd numbered 16-bit timer as the time base.

Source

pub fn timebase32(self) -> Oc<OCMP2, Timebase32>

Select both 16-bit timers as a 32-bit time base.

Source

pub fn free(self) -> OCMP2

Deactivate the output compare module and return the PAC object

Source

pub fn turn_off(&mut self)

Turn output compare module off

Source§

impl Oc<OCMP2, Timebase16even>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP2, Timebase16odd>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP2, Timebase32>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP3, TimebaseUninit>

Source

pub fn oc3(ocmp: OCMP3, stop_in_idle_mode: bool) -> Self

Source§

impl<TIMEBASE> Oc<OCMP3, TIMEBASE>

Source

pub fn timebase16even(self) -> Oc<OCMP3, Timebase16even>

Select the even numbered 16-bit timer as the time base.

Source

pub fn timebase16odd(self) -> Oc<OCMP3, Timebase16odd>

Select the odd numbered 16-bit timer as the time base.

Source

pub fn timebase32(self) -> Oc<OCMP3, Timebase32>

Select both 16-bit timers as a 32-bit time base.

Source

pub fn free(self) -> OCMP3

Deactivate the output compare module and return the PAC object

Source

pub fn turn_off(&mut self)

Turn output compare module off

Source§

impl Oc<OCMP3, Timebase16even>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP3, Timebase16odd>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP3, Timebase32>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP4, TimebaseUninit>

Source

pub fn oc4(ocmp: OCMP4, stop_in_idle_mode: bool) -> Self

Source§

impl<TIMEBASE> Oc<OCMP4, TIMEBASE>

Source

pub fn timebase16even(self) -> Oc<OCMP4, Timebase16even>

Select the even numbered 16-bit timer as the time base.

Source

pub fn timebase16odd(self) -> Oc<OCMP4, Timebase16odd>

Select the odd numbered 16-bit timer as the time base.

Source

pub fn timebase32(self) -> Oc<OCMP4, Timebase32>

Select both 16-bit timers as a 32-bit time base.

Source

pub fn free(self) -> OCMP4

Deactivate the output compare module and return the PAC object

Source

pub fn turn_off(&mut self)

Turn output compare module off

Source§

impl Oc<OCMP4, Timebase16even>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP4, Timebase16odd>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP4, Timebase32>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP5, TimebaseUninit>

Source

pub fn oc5(ocmp: OCMP5, stop_in_idle_mode: bool) -> Self

Source§

impl<TIMEBASE> Oc<OCMP5, TIMEBASE>

Source

pub fn timebase16even(self) -> Oc<OCMP5, Timebase16even>

Select the even numbered 16-bit timer as the time base.

Source

pub fn timebase16odd(self) -> Oc<OCMP5, Timebase16odd>

Select the odd numbered 16-bit timer as the time base.

Source

pub fn timebase32(self) -> Oc<OCMP5, Timebase32>

Select both 16-bit timers as a 32-bit time base.

Source

pub fn free(self) -> OCMP5

Deactivate the output compare module and return the PAC object

Source

pub fn turn_off(&mut self)

Turn output compare module off

Source§

impl Oc<OCMP5, Timebase16even>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP5, Timebase16odd>

Source

pub fn turn_on(&mut self, config: OcConfig)

Source§

impl Oc<OCMP5, Timebase32>

Source

pub fn turn_on(&mut self, config: OcConfig)

Auto Trait Implementations§

§

impl<OCMP, TIMEBASE> Freeze for Oc<OCMP, TIMEBASE>
where OCMP: Freeze,

§

impl<OCMP, TIMEBASE> RefUnwindSafe for Oc<OCMP, TIMEBASE>
where OCMP: RefUnwindSafe, TIMEBASE: RefUnwindSafe,

§

impl<OCMP, TIMEBASE> Send for Oc<OCMP, TIMEBASE>
where OCMP: Send, TIMEBASE: Send,

§

impl<OCMP, TIMEBASE> Sync for Oc<OCMP, TIMEBASE>
where OCMP: Sync, TIMEBASE: Sync,

§

impl<OCMP, TIMEBASE> Unpin for Oc<OCMP, TIMEBASE>
where OCMP: Unpin, TIMEBASE: Unpin,

§

impl<OCMP, TIMEBASE> UnsafeUnpin for Oc<OCMP, TIMEBASE>
where OCMP: UnsafeUnpin,

§

impl<OCMP, TIMEBASE> UnwindSafe for Oc<OCMP, TIMEBASE>
where OCMP: UnwindSafe, TIMEBASE: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.