Enum stm32f1::stm32f100::i2c1::ccr::DUTYR [−][src]
pub enum DUTYR { DUTY2_1, DUTY16_9, }
Possible values of the field DUTY
Variants
DUTY2_1
Duty cycle t_low/t_high = 2/1
DUTY16_9
Duty cycle t_low/t_high = 16/9
Methods
impl DUTYR
[src]
impl DUTYR
pub fn bit_is_clear(&self) -> bool
[src]
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
pub fn bit_is_set(&self) -> bool
[src]
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
pub fn bit(&self) -> bool
[src]
pub fn bit(&self) -> bool
Value of the field as raw bits
pub fn is_duty2_1(&self) -> bool
[src]
pub fn is_duty2_1(&self) -> bool
Checks if the value of the field is DUTY2_1
pub fn is_duty16_9(&self) -> bool
[src]
pub fn is_duty16_9(&self) -> bool
Checks if the value of the field is DUTY16_9
Trait Implementations
impl Clone for DUTYR
[src]
impl Clone for DUTYR
fn clone(&self) -> DUTYR
[src]
fn clone(&self) -> DUTYR
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for DUTYR
[src]
impl Copy for DUTYR
impl Debug for DUTYR
[src]
impl Debug for DUTYR
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DUTYR
[src]
impl PartialEq for DUTYR