Struct capsules::dac::Dac [] [src]

pub struct Dac<'a> {
    dac: &'a DacChannel,
}

Fields

Methods

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

[src]

Trait Implementations

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

[src]

Control the DAC.

command_num

  • 0: Driver check.
  • 1: Initialize and enable the DAC.
  • 2: Set the output to data1, a scaled output value.

[src]

subscribe lets an application pass a callback to the driver to be called later. This returns ENOSUPPORT if not used. Read more

[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