Struct nrf52::i2c::TWIM [] [src]

pub struct TWIM {
    registers: *const TWIM,
    client: Cell<Option<&'static I2CHwMasterClient>>,
    buf: TakeCell<'static, [u8]>,
}

An I2C master device.

A TWIM instance wraps a registers::TWIM together with additional data necessary to implement an asynchronous interface.

Fields

Methods

impl TWIM
[src]

[src]

[src]

[src]

[src]

Configures an already constructed TWIM.

[src]

Sets the I2C bus speed to one of three possible values enumerated in Speed.

[src]

Enables hardware TWIM peripheral.

[src]

Disables hardware TWIM peripheral.

[src]

[src]

Trait Implementations

impl I2CMaster for TWIM
[src]

[src]

[src]

[src]

[src]

[src]

impl I2CSlave for TWIM
[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl I2CMasterSlave for TWIM
[src]