opentitanlib::test_utils::gpio

Type Alias GpioSet

Source
pub type GpioSet = gpio_set_t;

Aliased Type§

struct GpioSet {
    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 GpioSet

Source

pub fn write(uart: &dyn Uart, pin: u32, state: bool) -> Result<()>

Source

pub fn set_enabled(uart: &dyn Uart, pin: u32, state: bool) -> Result<()>

Source

pub fn write_all(uart: &dyn Uart, state: u32) -> Result<()>

Source

pub fn set_enabled_all(uart: &dyn Uart, state: u32) -> Result<()>

Source

pub fn write_masked(uart: &dyn Uart, mask: u32, state: u32) -> Result<()>

Source

pub fn set_enabled_masked(uart: &dyn Uart, mask: u32, state: u32) -> Result<()>

Source

pub fn set_input_noise_filter( uart: &dyn Uart, mask: u32, state: u32, ) -> Result<()>

Source

pub fn irq_restore_all(uart: &dyn Uart, state: u32) -> Result<()>

Source

pub fn irq_disable_all(uart: &dyn Uart, state: u32) -> Result<()>

Source

pub fn irq_acknowledge_all(uart: &dyn Uart) -> Result<()>

Source

pub fn irq_set_trigger( uart: &dyn Uart, state: u32, trigger: String, ) -> Result<()>