pub struct UltradebugGpio {
pub device: Rc<RefCell<Context>>,
}
Expand description
Represents the Ultradebug GPIO pins.
Fields§
§device: Rc<RefCell<Context>>
Implementations§
Source§impl UltradebugGpio
impl UltradebugGpio
Sourcepub const PIN_SPI_ZB: u8 = 4u8
pub const PIN_SPI_ZB: u8 = 4u8
Request the upstream SPI bus to tristate so ultradebug may drive the SPI bus (platforms-ultradebug only).
Sourcepub const PIN_RESET_B: u8 = 5u8
pub const PIN_RESET_B: u8 = 5u8
Reset the chip attached to ultradebug.
Sourcepub const PIN_BOOTSTRAP: u8 = 6u8
pub const PIN_BOOTSTRAP: u8 = 6u8
Request bootstrap mode on the chip attached to ultradebug.
Sourcepub const PIN_TGT_RESET: u8 = 7u8
pub const PIN_TGT_RESET: u8 = 7u8
Reset the target system attached to ultradebug (platforms-ultradebug only).
pub fn open(ultradebug: &Ultradebug) -> Result<Self>
pub fn pin(&self, pinname: &str) -> Result<UltradebugGpioPin>
Sourcepub fn pin_name_to_number(&self, pinname: &str) -> Result<u8>
pub fn pin_name_to_number(&self, pinname: &str) -> Result<u8>
Given an ultradebug pin name, return its pin number.
Auto Trait Implementations§
impl Freeze for UltradebugGpio
impl !RefUnwindSafe for UltradebugGpio
impl !Send for UltradebugGpio
impl !Sync for UltradebugGpio
impl Unpin for UltradebugGpio
impl !UnwindSafe for UltradebugGpio
Blanket Implementations§
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