pub struct Gpio3And4FunctionControl { /* private fields */ }Expand description
Configures the function for GPIO3 and GPIO4 pins, and enables their GPIO mode.
Implementations§
Source§impl Gpio3And4FunctionControl
impl Gpio3And4FunctionControl
Sourcepub fn gpio_3_and_4_mode_enable(&self) -> bool
pub fn gpio_3_and_4_mode_enable(&self) -> bool
Read the gpio_3_and_4_mode_enable field of the register.
Enable GPIO mode for GPIO3 and GPIO4 as set by their respective function_select fields (true: GPIO mode, false: alternative function/disabled).
Sourcepub fn gpio_4_function_select(
&self,
) -> Result<Gpio4FunctionSetting, <Gpio4FunctionSetting as TryFrom<u8>>::Error>
pub fn gpio_4_function_select( &self, ) -> Result<Gpio4FunctionSetting, <Gpio4FunctionSetting as TryFrom<u8>>::Error>
Read the gpio_4_function_select field of the register.
Selects function for GPIO4 when gpio3_and_4_mode_enable is true.
Sourcepub fn gpio_3_function_select(&self) -> Gpio3FunctionSetting
pub fn gpio_3_function_select(&self) -> Gpio3FunctionSetting
Read the gpio_3_function_select field of the register.
Selects function for GPIO3 when gpio3_and_4_mode_enable is true.
Sourcepub fn set_gpio_3_and_4_mode_enable(&mut self, value: bool)
pub fn set_gpio_3_and_4_mode_enable(&mut self, value: bool)
Write the gpio_3_and_4_mode_enable field of the register.
Enable GPIO mode for GPIO3 and GPIO4 as set by their respective function_select fields (true: GPIO mode, false: alternative function/disabled).
Sourcepub fn set_gpio_4_function_select(&mut self, value: Gpio4FunctionSetting)
pub fn set_gpio_4_function_select(&mut self, value: Gpio4FunctionSetting)
Write the gpio_4_function_select field of the register.
Selects function for GPIO4 when gpio3_and_4_mode_enable is true.
Sourcepub fn set_gpio_3_function_select(&mut self, value: Gpio3FunctionSetting)
pub fn set_gpio_3_function_select(&mut self, value: Gpio3FunctionSetting)
Write the gpio_3_function_select field of the register.
Selects function for GPIO3 when gpio3_and_4_mode_enable is true.
Trait Implementations§
Source§impl BitAnd for Gpio3And4FunctionControl
impl BitAnd for Gpio3And4FunctionControl
Source§impl BitAndAssign for Gpio3And4FunctionControl
impl BitAndAssign for Gpio3And4FunctionControl
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for Gpio3And4FunctionControl
impl BitOr for Gpio3And4FunctionControl
Source§impl BitOrAssign for Gpio3And4FunctionControl
impl BitOrAssign for Gpio3And4FunctionControl
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for Gpio3And4FunctionControl
impl BitXor for Gpio3And4FunctionControl
Source§impl BitXorAssign for Gpio3And4FunctionControl
impl BitXorAssign for Gpio3And4FunctionControl
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for Gpio3And4FunctionControl
impl Clone for Gpio3And4FunctionControl
Source§fn clone(&self) -> Gpio3And4FunctionControl
fn clone(&self) -> Gpio3And4FunctionControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more