#[repr(transparent)]pub struct Chanen(pub u32);Expand description
Channel Enable register
Tuple Fields§
§0: u32Implementations§
Source§impl Chanen
impl Chanen
Sourcepub const fn set_en_ch0(&mut self, val: bool)
pub const fn set_en_ch0(&mut self, val: bool)
Enable channel 0. When 1, PDM channel 0 is enabled.
Sourcepub const fn set_en_ch1(&mut self, val: bool)
pub const fn set_en_ch1(&mut self, val: bool)
Enable channel 1. When 1, PDM channel 1 is enabled.
Sourcepub const fn set_en_ch2(&mut self, val: bool)
pub const fn set_en_ch2(&mut self, val: bool)
Enable channel 2. When 1, PDM channel 2 is enabled.
Sourcepub const fn set_en_ch3(&mut self, val: bool)
pub const fn set_en_ch3(&mut self, val: bool)
Enable channel 3. When 1, PDM channel 3 is enabled.
Sourcepub const fn set_en_ch4(&mut self, val: bool)
pub const fn set_en_ch4(&mut self, val: bool)
Enable channel 4. When 1, PDM channel 4 is enabled.
Sourcepub const fn set_en_ch5(&mut self, val: bool)
pub const fn set_en_ch5(&mut self, val: bool)
Enable channel 5. When 1, PDM channel 5 is enabled.
Sourcepub const fn set_en_ch6(&mut self, val: bool)
pub const fn set_en_ch6(&mut self, val: bool)
Enable channel 6. When 1, PDM channel 6 is enabled.
Sourcepub const fn set_en_ch7(&mut self, val: bool)
pub const fn set_en_ch7(&mut self, val: bool)
Enable channel 7. When 1, PDM channel 7 is enabled.
Trait Implementations§
impl Copy for Chanen
impl Eq for Chanen
impl StructuralPartialEq for Chanen
Auto Trait Implementations§
impl Freeze for Chanen
impl RefUnwindSafe for Chanen
impl Send for Chanen
impl Sync for Chanen
impl Unpin for Chanen
impl UnwindSafe for Chanen
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