xwrust::xwds::soc

Struct Soc

source
#[repr(C)]
pub struct Soc { /* private fields */ }
Expand description

SOC设备

Trait Implementations§

source§

impl Eirq for Soc

source§

fn eirq_req( &self, port: GpioPort, pinmsk: XwSq, eirq: XwId, flag: EirqFlag, isr: fn(_: &Self, _: XwId), ) -> XwEr

申请外部中断 Read more
source§

fn eirq_rls(&self, port: GpioPort, pinmsk: XwSq, eirq: XwId) -> XwEr

释放外部中断 Read more
source§

impl Gpio for Soc

source§

fn gpio_req(&self, port: GpioPort, pinmsk: XwSq) -> XwEr

申请GPIO Read more
source§

fn gpio_rls(&self, port: GpioPort, pinmsk: XwSq) -> XwEr

释放GPIO Read more
source§

fn gpio_cfg(&self, port: GpioPort, pinmsk: XwSq, cfg: *mut c_void) -> XwEr

配置GPIO Read more
source§

fn gpio_set(&self, port: GpioPort, pinmsk: XwSq) -> XwEr

将GPIO设置为高电平 Read more
source§

fn gpio_reset(&self, port: GpioPort, pinmsk: XwSq) -> XwEr

将GPIO设置为低电平 Read more
source§

fn gpio_toggle(&self, port: GpioPort, pinmsk: XwSq) -> XwEr

翻转GPIO的电平 Read more
source§

fn gpio_output(&self, port: GpioPort, pinmsk: XwSq, out: XwSq) -> XwEr

写GPIO Read more
source§

fn gpio_input(&self, port: GpioPort, pinmsk: XwSq) -> (XwEr, XwSq)

读取GPIO Read more

Auto Trait Implementations§

§

impl !Freeze for Soc

§

impl !RefUnwindSafe for Soc

§

impl Send for Soc

§

impl !Sync for Soc

§

impl Unpin for Soc

§

impl UnwindSafe for Soc

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.