Enum nrf52832_pac::pwm0::mode::UPDOWNR
source · pub enum UPDOWNR {
UP,
UPANDDOWN,
}
Expand description
Possible values of the field UPDOWN
Variants§
UP
Up counter - edge aligned PWM duty-cycle
UPANDDOWN
Up and down counter - center aligned PWM duty cycle
Implementations§
source§impl UPDOWNR
impl UPDOWNR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_up_and_down(&self) -> bool
pub fn is_up_and_down(&self) -> bool
Checks if the value of the field is UPANDDOWN