Skip to main content

OB_TypeDef

Struct OB_TypeDef 

Source
#[repr(C)]
pub struct OB_TypeDef { pub RDP: u8, pub USER: u8, pub nRDP: u8, pub nUSER: u8, pub SDK_STRT: u8, pub SDK_END: u8, pub nSDK_STRT: u8, pub nSDK_END: u8, pub RESERVED1: u32, pub WRP: u16, pub nWRP: u16, }
Expand description

@brief Option Bytes

Fields§

§RDP: u8

< FLASH option byte Read protection, Address offset: 0x00

§USER: u8

< FLASH option byte user options, Address offset: 0x01

§nRDP: u8

< Complemented FLASH option byte Read protection,Address offset: 0x02

§nUSER: u8

< Complemented FLASH option byte user options, Address offset: 0x03

§SDK_STRT: u8

< SDK area start address(stored in SDK[4:0]), Address offset: 0x04

§SDK_END: u8

< SDK area end address(stored in SDK[12:8]), Address offset: 0x05

§nSDK_STRT: u8

< Complemented SDK area start address, Address offset: 0x06

§nSDK_END: u8

< Complemented SDK area end address, Address offset: 0x07

§RESERVED1: u32

< RESERVED1, Address offset: 0x08

§WRP: u16

< FLASH option byte write protection, Address offset: 0x0C

§nWRP: u16

< Complemented FLASH option byte write protection,Address offset: 0x0E

Trait Implementations§

Source§

impl Clone for OB_TypeDef

Source§

fn clone(&self) -> OB_TypeDef

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OB_TypeDef

Source§

impl Debug for OB_TypeDef

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.