Struct nrf52832_hal::twis::Twis[][src]

pub struct Twis<T>(_)
where
    T: Instance
;
Expand description

Interface to a TWIS instance.

Implementations

Configures secondary I2C address.

Sets the over-read character (character sent on over-read of the transmit buffer).

Enables the TWIS instance.

Disables the TWIS instance.

Stops the TWI transaction and waits until it has stopped.

Enables interrupt for specified command.

Disables interrupt for specified command.

Resets read and write events.

Resets specified event.

Returns matched address for latest command.

Checks if specified event has been triggered.

Checks if the TWI transaction is done.

Returns number of bytes received in last granted transaction.

Checks if RX buffer overflow was detected.

Checks if NACK was sent after receiving a data byte.

Checks if TX buffer over-read was detected and ORC was clocked out.

Returns reference to READ event endpoint for PPI.

Returns reference to WRITE event endpoint for PPI.

Returns reference to STOPPED event endpoint for PPI.

Returns reference to ERROR event endpoint for PPI.

Returns reference to RXSTARTED event endpoint for PPI.

Returns reference to TXSTARTED event endpoint for PPI.

Returns reference to STOP task endpoint for PPI.

Returns reference to SUSPEND task endpoint for PPI.

Returns reference to RESUME task endpoint for PPI.

Returns reference to PREPARERX task endpoint for PPI.

Returns reference to PREPARETX task endpoint for PPI.

Write to an I2C controller.

The buffer must reside in RAM and have a length of at most 255 bytes on the nRF52832 and at most 65535 bytes on the nRF52840.

Read from an I2C controller.

The buffer must have a length of at most 255 bytes on the nRF52832 and at most 65535 bytes on the nRF52840.

Receives data into the given buffer. Buffer must be located in RAM. Returns a value that represents the in-progress DMA transfer.

Transmits data from the given buffer. Buffer must be located in RAM. Returns a value that represents the in-progress DMA transfer.

Return the raw interface to the underlying TWIS peripheral.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.