Struct capsules::max17205::MAX17205Driver [] [src]

pub struct MAX17205Driver<'a> {
    max17205: &'a MAX17205<'a>,
    callback: Cell<Option<Callback>>,
}

Fields

Methods

impl<'a> MAX17205Driver<'a>
[src]

[src]

Trait Implementations

impl<'a> MAX17205Client for MAX17205Driver<'a>
[src]

[src]

[src]

[src]

[src]

[src]

impl<'a> Driver for MAX17205Driver<'a>
[src]

[src]

Setup callback.

subscribe_num

  • 0: Setup a callback for when all events complete or data is ready.

[src]

Setup and read the MAX17205.

command_num

  • 0: Driver check.
  • 1: Read the current status of the MAX17205.
  • 2: Read the current state of charge percent.
  • 3: Read the current voltage and current draw.
  • 4: Read the raw coulomb count.
  • 5: Read the unique 64 bit RomID.

[src]

allow lets an application give the driver access to a buffer in the application's memory. This returns ENOSUPPORT if not used. Read more