Struct Mode
#[repr(transparent)]pub struct Mode(pub u32);
Expand description
Operation mode
Tuple Fields§
§0: u32
Implementations§
§impl Mode
impl Mode
pub const fn mode(&self) -> Mode
pub const fn mode(&self) -> Mode
The mode of operation to be used. The settings in this register apply when the CRYPT task is triggered.
pub fn set_mode(&mut self, val: Mode)
pub fn set_mode(&mut self, val: Mode)
The mode of operation to be used. The settings in this register apply when the CRYPT task is triggered.
pub fn set_protocol(&mut self, val: Protocol)
pub fn set_protocol(&mut self, val: Protocol)
Protocol and packet format selection
pub fn set_datarate(&mut self, val: Datarate)
pub fn set_datarate(&mut self, val: Datarate)
Radio data rate that the CCM shall run synchronous with
pub fn set_maclen(&mut self, val: Maclen)
pub fn set_maclen(&mut self, val: Maclen)
CCM MAC length (bytes)
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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
)