Struct stm32_metapac::flash::regs::Crcsaddr
#[repr(transparent)]pub struct Crcsaddr(pub u32);
Expand description
FLASH CRC start address register.
Tuple Fields§
§0: u32
Implementations§
§impl Crcsaddr
impl Crcsaddr
pub const fn crc_start_addr(&self) -> u16
pub const fn crc_start_addr(&self) -> u16
CRC start address This register is used when CRC_BY_SECT is cleared. It must be programmed to the address of the first Flash word to use for the CRC calculation, done burst by burst. CRC computation starts at an address aligned to the burst size defined in CRC_BURST of FLASH_CRCCR register. Hence least significant bits [5:0] of the address are set by hardware to 0 (minimum burst size= 64 bytes). The address is relative to the Flash bank.
pub fn set_crc_start_addr(&mut self, val: u16)
pub fn set_crc_start_addr(&mut self, val: u16)
CRC start address This register is used when CRC_BY_SECT is cleared. It must be programmed to the address of the first Flash word to use for the CRC calculation, done burst by burst. CRC computation starts at an address aligned to the burst size defined in CRC_BURST of FLASH_CRCCR register. Hence least significant bits [5:0] of the address are set by hardware to 0 (minimum burst size= 64 bytes). The address is relative to the Flash bank.
Trait Implementations§
impl Copy for Crcsaddr
impl Eq for Crcsaddr
impl StructuralPartialEq for Crcsaddr
Auto Trait Implementations§
impl Freeze for Crcsaddr
impl RefUnwindSafe for Crcsaddr
impl Send for Crcsaddr
impl Sync for Crcsaddr
impl Unpin for Crcsaddr
impl UnwindSafe for Crcsaddr
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
)