Enum lpc177x_8x::uart1::lcr::SBSR [−][src]
pub enum SBSR { _1_STOP_BIT, _2_STOP_BITS, }
Possible values of the field SBS
Variants
_1_STOP_BIT
1 stop bit.
_2_STOP_BITS
2 stop bits (1.5 if LCR[1:0]=00).
Methods
impl SBSR
[src]
impl SBSR
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_1_stop_bit(&self) -> bool
[src]
pub fn is_1_stop_bit(&self) -> bool
Checks if the value of the field is _1_STOP_BIT
pub fn is_2_stop_bits(&self) -> bool
[src]
pub fn is_2_stop_bits(&self) -> bool
Checks if the value of the field is _2_STOP_BITS
Trait Implementations
impl Clone for SBSR
[src]
impl Clone for SBSR
fn clone(&self) -> SBSR
[src]
fn clone(&self) -> SBSR
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 SBSR
[src]
impl Copy for SBSR
impl Debug for SBSR
[src]
impl Debug for SBSR
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 SBSR
[src]
impl PartialEq for SBSR