pub struct gpio_set_t {
pub action: gpio_action_t,
pub pin_mask: u32,
pub state: u32,
}
Fields§
§action: gpio_action_t
§pin_mask: u32
§state: u32
Implementations§
Source§impl gpio_set_t
impl gpio_set_t
pub fn write(uart: &dyn Uart, pin: u32, state: bool) -> Result<()>
pub fn set_enabled(uart: &dyn Uart, pin: u32, state: bool) -> Result<()>
pub fn write_all(uart: &dyn Uart, state: u32) -> Result<()>
pub fn set_enabled_all(uart: &dyn Uart, state: u32) -> Result<()>
pub fn write_masked(uart: &dyn Uart, mask: u32, state: u32) -> Result<()>
pub fn set_enabled_masked(uart: &dyn Uart, mask: u32, state: u32) -> Result<()>
pub fn set_input_noise_filter( uart: &dyn Uart, mask: u32, state: u32, ) -> Result<()>
pub fn irq_restore_all(uart: &dyn Uart, state: u32) -> Result<()>
pub fn irq_disable_all(uart: &dyn Uart, state: u32) -> Result<()>
pub fn irq_acknowledge_all(uart: &dyn Uart) -> Result<()>
pub fn irq_set_trigger( uart: &dyn Uart, state: u32, trigger: String, ) -> Result<()>
Trait Implementations§
Source§impl Clone for gpio_set_t
impl Clone for gpio_set_t
Source§fn clone(&self) -> gpio_set_t
fn clone(&self) -> gpio_set_t
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for gpio_set_t
impl Debug for gpio_set_t
Source§impl<'de> Deserialize<'de> for gpio_set_t
impl<'de> Deserialize<'de> for gpio_set_t
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for gpio_set_t
impl PartialEq for gpio_set_t
Source§impl Serialize for gpio_set_t
impl Serialize for gpio_set_t
impl Eq for gpio_set_t
impl StructuralPartialEq for gpio_set_t
Auto Trait Implementations§
impl Freeze for gpio_set_t
impl RefUnwindSafe for gpio_set_t
impl Send for gpio_set_t
impl Sync for gpio_set_t
impl Unpin for gpio_set_t
impl UnwindSafe for gpio_set_t
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more