Struct stm32f103xx_hal::pwm::Pwm
[−]
[src]
pub struct Pwm<TIM, CHANNEL> { /* fields omitted */ }
Trait Implementations
impl PwmPin for Pwm<TIM2, C1>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM2, C2>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM2, C3>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM2, C4>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM3, C1>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM3, C2>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM3, C3>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM3, C4>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM4, C1>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM4, C2>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM4, C3>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle
impl PwmPin for Pwm<TIM4, C4>
[src]
type Duty = u16
Type for the duty
methods Read more
fn disable(&mut self)
[src]
Disables a PWM channel
fn enable(&mut self)
[src]
Enables a PWM channel
fn get_duty(&self) -> u16
[src]
Returns the current duty cycle
fn get_max_duty(&self) -> u16
[src]
Returns the maximum duty cycle value
fn set_duty(&mut self, duty: u16)
[src]
Sets a new duty cycle