pub struct Tx(_);
Expand description

Can be used to write data to the AES peripheral

You can access this struct via Stream.

Implementations

Write a block to the AES peripheral

Please note that only one block can be written before you need to read the processed block back using [Read::read]. Calling this method multiple times without calling [Read::read] in between will result in an error to be returned.

Writes the provided buffer to the AES peripheral using DMA

Returns a DMA transfer that is ready to be started. It needs to be started for anything to happen.

Panics

Panics, if the buffer length is larger than u16::max_value().

The AES peripheral works with 128-bit blocks, which means the buffer length must be a multiple of 16. Panics, if this is not the case.

Panics, if the buffer is not aligned to a word boundary.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.