Type Definition opentitanlib::test_utils::gpio::GpioSet

source ·
pub type GpioSet = gpio_set_t;

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<()>