Enum stm32f103xx::rcc::cfgr::ADCPRER [−][src]
pub enum ADCPRER {
DIV2,
DIV4,
DIV6,
DIV8,
}Possible values of the field ADCPRE
Variants
DIV2PCLK2 divided by 2
DIV4PCLK2 divided by 4
DIV6PCLK2 divided by 6
DIV8PCLK2 divided by 8
Methods
impl ADCPRER[src]
impl ADCPRERpub fn bits(&self) -> u8[src]
pub fn bits(&self) -> u8Value of the field as raw bits
pub fn is_div2(&self) -> bool[src]
pub fn is_div2(&self) -> boolChecks if the value of the field is DIV2
pub fn is_div4(&self) -> bool[src]
pub fn is_div4(&self) -> boolChecks if the value of the field is DIV4
pub fn is_div6(&self) -> bool[src]
pub fn is_div6(&self) -> boolChecks if the value of the field is DIV6
pub fn is_div8(&self) -> bool[src]
pub fn is_div8(&self) -> boolChecks if the value of the field is DIV8
Trait Implementations
impl Clone for ADCPRER[src]
impl Clone for ADCPRERfn clone(&self) -> ADCPRER[src]
fn clone(&self) -> ADCPRERReturns 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 ADCPRER[src]
impl Copy for ADCPRERimpl Debug for ADCPRER[src]
impl Debug for ADCPRERfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ADCPRER[src]
impl PartialEq for ADCPRER