[−][src]Struct stusb4500::STUSB4500
Implementations
impl<I2C, E> STUSB4500<I2C> where
I2C: Write<Error = E> + Read<Error = E>,
[src]
I2C: Write<Error = E> + Read<Error = E>,
pub fn new(i2c: I2C, address: Address) -> Self
[src]
pub fn clear_interrupts(&mut self) -> Result<(), Error<E>>
[src]
Read all interrupt registers to clear them
pub fn set_alerts_mask(&mut self, alerts: AlertMask) -> Result<(), Error<E>>
[src]
Set interrupt mask
pub fn get_alerts(&mut self) -> Result<Alert, Error<E>>
[src]
Get active interrupt flags
pub fn soft_reset(&mut self) -> Result<(), Error<E>>
[src]
Perform a soft reset Triggers re-negotiation of PDO's.
pub fn set_pdo(&mut self, pdo: PdoChannel, data: &Pdo) -> Result<(), Error<E>>
[src]
pub fn get_pdo(&mut self, pdo: PdoChannel) -> Result<Pdo, Error<E>>
[src]
pub fn get_current_rdo(&mut self) -> Result<Rdo, Error<E>>
[src]
pub fn set_num_pdo(&mut self, num: u8) -> Result<(), Error<E>>
[src]
Auto Trait Implementations
impl<I2C> RefUnwindSafe for STUSB4500<I2C> where
I2C: RefUnwindSafe,
I2C: RefUnwindSafe,
impl<I2C> Send for STUSB4500<I2C> where
I2C: Send,
I2C: Send,
impl<I2C> Sync for STUSB4500<I2C> where
I2C: Sync,
I2C: Sync,
impl<I2C> Unpin for STUSB4500<I2C> where
I2C: Unpin,
I2C: Unpin,
impl<I2C> UnwindSafe for STUSB4500<I2C> where
I2C: UnwindSafe,
I2C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,