Struct stm32_metapac::can::regs::Txbar
#[repr(transparent)]pub struct Txbar(pub u32);
Expand description
FDCAN Tx buffer add request register
Tuple Fields§
§0: u32
Implementations§
§impl Txbar
impl Txbar
pub const fn ar(&self, n: usize) -> bool
pub const fn ar(&self, n: usize) -> bool
Add request. Each Tx buffer has its own add request bit. Writing a 1 sets the corresponding add request bit; writing a 0 has no impact. This enables the Host to set transmission requests for multiple Tx buffers with one write to TXBAR. When no Tx scan is running, the bits are reset immediately, else the bits remain set until the Tx scan process has completed
pub fn set_ar(&mut self, n: usize, val: bool)
pub fn set_ar(&mut self, n: usize, val: bool)
Add request. Each Tx buffer has its own add request bit. Writing a 1 sets the corresponding add request bit; writing a 0 has no impact. This enables the Host to set transmission requests for multiple Tx buffers with one write to TXBAR. When no Tx scan is running, the bits are reset immediately, else the bits remain set until the Tx scan process has completed
Trait Implementations§
impl Copy for Txbar
impl Eq for Txbar
impl StructuralPartialEq for Txbar
Auto Trait Implementations§
impl Freeze for Txbar
impl RefUnwindSafe for Txbar
impl Send for Txbar
impl Sync for Txbar
impl Unpin for Txbar
impl UnwindSafe for Txbar
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
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)
clone_to_uninit
)