Skip to main content

Pwm

Struct Pwm 

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

Output compare modules configured for PWM

Implementations§

Source§

impl Pwm<OCMP1, TimebaseUninit>

Source

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

Initialize the output compare module for PWM.

The respective timer must be set up previously. The HAL code for PWM reads the respective timer period register to get the maximum duty cycle value.

Source§

impl<TIMEBASE> Pwm<OCMP1, TIMEBASE>

Source

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

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

Source

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

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

Source

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

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

Source

pub fn fault(&self) -> bool

Get fault state

Returns false if fault pin is not enabled.

Source

pub fn on(&mut self)

Turn PWM on.

Can be used to re-enable PWM after a fault has been detected.

Source

pub fn off(&mut self)

Turn PWM off.

Source

pub fn free(self) -> OCMP1

Deactivate the output compare module and return the PAC object

Source§

impl Pwm<OCMP2, TimebaseUninit>

Source

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

Initialize the output compare module for PWM.

The respective timer must be set up previously. The HAL code for PWM reads the respective timer period register to get the maximum duty cycle value.

Source§

impl<TIMEBASE> Pwm<OCMP2, TIMEBASE>

Source

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

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

Source

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

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

Source

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

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

Source

pub fn fault(&self) -> bool

Get fault state

Returns false if fault pin is not enabled.

Source

pub fn on(&mut self)

Turn PWM on.

Can be used to re-enable PWM after a fault has been detected.

Source

pub fn off(&mut self)

Turn PWM off.

Source

pub fn free(self) -> OCMP2

Deactivate the output compare module and return the PAC object

Source§

impl Pwm<OCMP3, TimebaseUninit>

Source

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

Initialize the output compare module for PWM.

The respective timer must be set up previously. The HAL code for PWM reads the respective timer period register to get the maximum duty cycle value.

Source§

impl<TIMEBASE> Pwm<OCMP3, TIMEBASE>

Source

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

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

Source

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

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

Source

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

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

Source

pub fn fault(&self) -> bool

Get fault state

Returns false if fault pin is not enabled.

Source

pub fn on(&mut self)

Turn PWM on.

Can be used to re-enable PWM after a fault has been detected.

Source

pub fn off(&mut self)

Turn PWM off.

Source

pub fn free(self) -> OCMP3

Deactivate the output compare module and return the PAC object

Source§

impl Pwm<OCMP4, TimebaseUninit>

Source

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

Initialize the output compare module for PWM.

The respective timer must be set up previously. The HAL code for PWM reads the respective timer period register to get the maximum duty cycle value.

Source§

impl<TIMEBASE> Pwm<OCMP4, TIMEBASE>

Source

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

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

Source

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

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

Source

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

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

Source

pub fn fault(&self) -> bool

Get fault state

Returns false if fault pin is not enabled.

Source

pub fn on(&mut self)

Turn PWM on.

Can be used to re-enable PWM after a fault has been detected.

Source

pub fn off(&mut self)

Turn PWM off.

Source

pub fn free(self) -> OCMP4

Deactivate the output compare module and return the PAC object

Source§

impl Pwm<OCMP5, TimebaseUninit>

Source

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

Initialize the output compare module for PWM.

The respective timer must be set up previously. The HAL code for PWM reads the respective timer period register to get the maximum duty cycle value.

Source§

impl<TIMEBASE> Pwm<OCMP5, TIMEBASE>

Source

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

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

Source

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

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

Source

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

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

Source

pub fn fault(&self) -> bool

Get fault state

Returns false if fault pin is not enabled.

Source

pub fn on(&mut self)

Turn PWM on.

Can be used to re-enable PWM after a fault has been detected.

Source

pub fn off(&mut self)

Turn PWM off.

Source

pub fn free(self) -> OCMP5

Deactivate the output compare module and return the PAC object

Trait Implementations§

Source§

impl<TIMEBASE> ErrorType for Pwm<OCMP1, TIMEBASE>

Source§

type Error = Infallible

Error type
Source§

impl<TIMEBASE> ErrorType for Pwm<OCMP2, TIMEBASE>

Source§

type Error = Infallible

Error type
Source§

impl<TIMEBASE> ErrorType for Pwm<OCMP3, TIMEBASE>

Source§

type Error = Infallible

Error type
Source§

impl<TIMEBASE> ErrorType for Pwm<OCMP4, TIMEBASE>

Source§

type Error = Infallible

Error type
Source§

impl<TIMEBASE> ErrorType for Pwm<OCMP5, TIMEBASE>

Source§

type Error = Infallible

Error type
Source§

impl PwmPin for Pwm<OCMP1, Timebase16even>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP1, Timebase16odd>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP1, Timebase32>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP2, Timebase16even>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP2, Timebase16odd>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP2, Timebase32>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP3, Timebase16even>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP3, Timebase16odd>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP3, Timebase32>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP4, Timebase16even>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP4, Timebase16odd>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP4, Timebase32>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP5, Timebase16even>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP5, Timebase16odd>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl PwmPin for Pwm<OCMP5, Timebase32>

Source§

type Duty = u32

Type for the duty methods Read more
Source§

fn enable(&mut self)

Enables a PWM channel
Source§

fn disable(&mut self)

Disables a PWM channel
Source§

fn get_duty(&self) -> Self::Duty

Returns the current duty cycle
Source§

fn set_duty(&mut self, duty: Self::Duty)

Sets a new duty cycle
Source§

fn get_max_duty(&self) -> Self::Duty

Returns the maximum duty cycle value
Source§

impl SetDutyCycle for Pwm<OCMP1, Timebase16even>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP1, Timebase16odd>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP2, Timebase16even>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP2, Timebase16odd>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP3, Timebase16even>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP3, Timebase16odd>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP4, Timebase16even>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP4, Timebase16odd>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP5, Timebase16even>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more
Source§

impl SetDutyCycle for Pwm<OCMP5, Timebase16odd>

Source§

fn max_duty_cycle(&self) -> u16

Get the maximum duty cycle value. Read more
Source§

fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>

Set the duty cycle to duty / max_duty. Read more
Source§

fn set_duty_cycle_fully_off(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 0%, or always inactive.
Source§

fn set_duty_cycle_fully_on(&mut self) -> Result<(), Self::Error>

Set the duty cycle to 100%, or always active.
Source§

fn set_duty_cycle_fraction( &mut self, num: u16, denom: u16, ) -> Result<(), Self::Error>

Set the duty cycle to num / denom. Read more
Source§

fn set_duty_cycle_percent(&mut self, percent: u8) -> Result<(), Self::Error>

Set the duty cycle to percent / 100 Read more

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<OCMP, TIMEBASE> UnwindSafe for Pwm<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.