Struct nrf52833_hal::i2s::I2S [−][src]
pub struct I2S { /* fields omitted */ }
Implementations
Takes ownership of the raw I2S peripheral, returning a safe wrapper in controller mode.
Takes ownership of the raw I2S peripheral, returning a safe wrapper in peripheral mode.
Enables/disables I2S transmission (TX).
Enables/disables I2S reception (RX).
Sets MCK generator frequency.
Sets sample width.
Sets the frame format.
Sets 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.
pub fn transfer<W, TxB, RxB>(
self,
tx_buffer: TxB,
rx_buffer: RxB
) -> Result<TransferFullDuplex<TxB, RxB>, Error> where
W: SupportedWordSize,
TxB: 'static + ReadBuffer<Word = W>,
RxB: 'static + WriteBuffer<Word = W>,
pub fn transfer<W, TxB, RxB>(
self,
tx_buffer: TxB,
rx_buffer: RxB
) -> Result<TransferFullDuplex<TxB, RxB>, Error> where
W: SupportedWordSize,
TxB: 'static + ReadBuffer<Word = W>,
RxB: 'static + WriteBuffer<Word = W>,
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.
Auto Trait Implementations
impl RefUnwindSafe for I2S
impl UnwindSafe for I2S
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.