#[repr(transparent)]pub struct Nchannels(pub u32);
Expand description
The number of channels this DMA instance is equipped with. This DMA supports up to 16 hardware channels, but can be configured with as few as one, to minimise silicon area.
Tuple Fields§
§0: u32
Implementations§
source§impl Nchannels
impl Nchannels
pub const fn n_channels(&self) -> u8
pub fn set_n_channels(&mut self, val: u8)
Trait Implementations§
impl Copy for Nchannels
impl Eq for Nchannels
impl StructuralPartialEq for Nchannels
Auto Trait Implementations§
impl Freeze for Nchannels
impl RefUnwindSafe for Nchannels
impl Send for Nchannels
impl Sync for Nchannels
impl Unpin for Nchannels
impl UnwindSafe for Nchannels
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)