Struct capsules::tmp006::TMP006 [] [src]

pub struct TMP006<'a> {
    i2c: &'a I2CDevice,
    interrupt_pin: &'a Pin,
    sampling_period: Cell<u8>,
    repeated_mode: Cell<bool>,
    callback: Cell<Option<Callback>>,
    protocol_state: Cell<ProtocolState>,
    buffer: TakeCell<'static, [u8]>,
}

Fields

Methods

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

[src]

The interrupt_pin must be pulled-up since the TMP006 is open-drain.

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> I2CClient for TMP006<'a>
[src]

[src]

Called when an I2C command completed. The error denotes whether the command completed successfully or if an error occured. Read more

impl<'a> Client for TMP006<'a>
[src]

[src]

Called when an interrupt occurs. The identifier will be the same value that was passed to enable_interrupt() when the interrupt was configured. Read more

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

[src]

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

[src]

command instructs a driver to perform some action synchronously. 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