[−][src]Struct msp430fr2x5x_hal::pwm::Pwm
An initialized Pwm pin
Trait Implementations
impl<T: PwmPeriph<C>, C> PwmPin for Pwm<T, C>
[src]
type Duty = u16
Number of cycles
pub fn set_duty(&mut self, duty: Self::Duty)
[src]
pub fn get_duty(&self) -> Self::Duty
[src]
pub fn get_max_duty(&self) -> Self::Duty
[src]
Maximum valid duty is equal to the period. If number of duty cycles exceeds number of period cycles, then signal stays high (equivalent to 100% duty cycle).
pub fn disable(&mut self)
[src]
pub fn enable(&mut self)
[src]
Auto Trait Implementations
impl<T, C> Send for Pwm<T, C> where
C: Send,
T: Send,
<T as PwmPeriph<C>>::Gpio: Send,
[src]
C: Send,
T: Send,
<T as PwmPeriph<C>>::Gpio: Send,
impl<T, C> Sync for Pwm<T, C> where
C: Sync,
T: Sync,
<T as PwmPeriph<C>>::Gpio: Sync,
[src]
C: Sync,
T: Sync,
<T as PwmPeriph<C>>::Gpio: Sync,
impl<T, C> Unpin for Pwm<T, C> where
C: Unpin,
T: Unpin,
<T as PwmPeriph<C>>::Gpio: Unpin,
[src]
C: Unpin,
T: Unpin,
<T as PwmPeriph<C>>::Gpio: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,