Struct stm32_metapac::can::regs::Txbcr
#[repr(transparent)]pub struct Txbcr(pub u32);
Expand description
FDCAN Tx buffer cancellation request register
Tuple Fields§
§0: u32
Implementations§
§impl Txbcr
impl Txbcr
pub const fn cr(&self, n: usize) -> bool
pub const fn cr(&self, n: usize) -> bool
Cancellation request. Each Tx buffer has its own cancellation request bit. Writing a 1 sets the corresponding CR bit; writing a 0 has no impact. This enables the Host to set cancellation requests for multiple Tx buffers with one write to TXBCR. The bits remain set until the corresponding TXBRP bit is reset
pub fn set_cr(&mut self, n: usize, val: bool)
pub fn set_cr(&mut self, n: usize, val: bool)
Cancellation request. Each Tx buffer has its own cancellation request bit. Writing a 1 sets the corresponding CR bit; writing a 0 has no impact. This enables the Host to set cancellation requests for multiple Tx buffers with one write to TXBCR. The bits remain set until the corresponding TXBRP bit is reset
Trait Implementations§
impl Copy for Txbcr
impl Eq for Txbcr
impl StructuralPartialEq for Txbcr
Auto Trait Implementations§
impl Freeze for Txbcr
impl RefUnwindSafe for Txbcr
impl Send for Txbcr
impl Sync for Txbcr
impl Unpin for Txbcr
impl UnwindSafe for Txbcr
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
)