pub struct Format {
pub bit_order: BitOrder,
pub byte_order: ByteOrder,
pub enable_2byte_mode: bool,
}
Available on crate feature
unstable
only.Expand description
Controls how the peripheral should treat data received from the DMA.
Fields§
§bit_order: BitOrder
Configures the bit order for data transmission.
byte_order: ByteOrder
Configures the byte order for data transmission.
- In 8-bit mode, ByteOrder::Inverted means every two bytes are swapped.
- In 16-bit mode, this controls the byte order (endianness).
enable_2byte_mode: bool
If true, the width of the output is 16 bits. Otherwise, the width of the output is 8 bits.
Trait Implementations§
impl Copy for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)