capsules_extra::max17205

Trait MAX17205Client

Source
pub trait MAX17205Client {
    // Required methods
    fn status(&self, status: u16, error: Result<(), ErrorCode>);
    fn state_of_charge(
        &self,
        percent: u16,
        capacity: u16,
        full_capacity: u16,
        error: Result<(), ErrorCode>,
    );
    fn voltage_current(
        &self,
        voltage: u16,
        current: u16,
        error: Result<(), ErrorCode>,
    );
    fn coulomb(&self, coulomb: u16, error: Result<(), ErrorCode>);
    fn romid(&self, rid: u64, error: Result<(), ErrorCode>);
}

Required Methods§

Source

fn status(&self, status: u16, error: Result<(), ErrorCode>)

Source

fn state_of_charge( &self, percent: u16, capacity: u16, full_capacity: u16, error: Result<(), ErrorCode>, )

Source

fn voltage_current( &self, voltage: u16, current: u16, error: Result<(), ErrorCode>, )

Source

fn coulomb(&self, coulomb: u16, error: Result<(), ErrorCode>)

Source

fn romid(&self, rid: u64, error: Result<(), ErrorCode>)

Implementors§