pub struct I2S { /* private fields */ }

Implementations

Takes ownership of the raw I2S peripheral, returning a safe wrapper in controller mode.

Enables the I2S module.

Disables the I2S module.

Starts I2S transfer.

Stops the I2S transfer and waits until it has stopped.

Enables/disables I2S transmission (TX).

Enables/disables I2S reception (RX).

Sets MCK generator frequency.

Sets MCK / LRCK ratio.

Sets sample width.

Sets the sample alignment within a frame.

Sets the frame format.

Sets the I2S channel configuration.

Returns the I2S channel configuration.

Receives data into the given buffer until it’s filled. Buffer address must be 4 byte aligned and located in RAM. Returns a value that represents the in-progress DMA transfer.

Full duplex DMA transfer. Transmits the given tx_buffer while simultaneously receiving data into the given rx_buffer until it is filled. The buffers must be of equal size and their addresses must be 4 byte aligned and located in RAM. Returns a value that represents the in-progress DMA transfer.

Transmits the given tx_buffer. Buffer address must be 4 byte aligned and located in RAM. Returns a value that represents the in-progress DMA transfer.

Sets the transmit buffer RAM start address.

Sets the receive buffer RAM start address.

Sets the size (in 32bit words) of the receive and transmit buffers.

Checks if an event has been triggered.

Marks event as handled.

Enables interrupt triggering on the specified event.

Disables interrupt triggering on the specified event.

Returns reference to Stopped event endpoint for PPI.

Returns reference to RxPtrUpdated event endpoint for PPI.

Returns reference to TxPtrUpdated event endpoint for PPI.

Returns reference to Start task endpoint for PPI.

Returns reference to Stop task endpoint for PPI.

Consumes self and returns back the raw 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.

Casts the value.

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

OverflowingCasts the value.

Should always be Self

Casts the value.

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.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.