stm32-metapac

Crates

git

Versions

stm32u3b5cg

Flavors

Skip to main content

I2ccfgr

Struct I2ccfgr 

#[repr(transparent)]
pub struct I2ccfgr(pub u32);
Expand description

I3C I2C target configuration register. Only on STM32H543/553, H7P and U356/366. Can be written only when EN = 0.

Tuple Fields§

§0: u32

Implementations§

§

impl I2ccfgr

pub const fn saval(&self) -> bool

7-bit static address valid (when the I3C peripheral is initialized as target).

pub const fn set_saval(&mut self, val: bool)

7-bit static address valid (when the I3C peripheral is initialized as target).

pub const fn sa(&self) -> u8

7-bit static address (when the I3C peripheral is initialized as target).

pub const fn set_sa(&mut self, val: u8)

7-bit static address (when the I3C peripheral is initialized as target).

pub const fn maval(&self) -> bool

Minimum I3C target address 7’h01 is valid (when the I3C peripheral is initialized as target). When set, a direct SETDASA CCC with 7’h01 address is acknowledged.

pub const fn set_maval(&mut self, val: bool)

Minimum I3C target address 7’h01 is valid (when the I3C peripheral is initialized as target). When set, a direct SETDASA CCC with 7’h01 address is acknowledged.

pub const fn anfon(&self) -> bool

Analog filter enable (when the I3C peripheral is initialized as target), enables the 50 ns spike filter on SCL and SDA for I2C Fm/Fm+ buses.

pub const fn set_anfon(&mut self, val: bool)

Analog filter enable (when the I3C peripheral is initialized as target), enables the 50 ns spike filter on SCL and SDA for I2C Fm/Fm+ buses.

pub const fn fmp(&self) -> bool

High drive enable for Fast-mode plus (when the I3C peripheral is initialized as target), enables the 20 mA drive on SCL and SDA.

pub const fn set_fmp(&mut self, val: bool)

High drive enable for Fast-mode plus (when the I3C peripheral is initialized as target), enables the 20 mA drive on SCL and SDA.

Trait Implementations§

§

impl Clone for I2ccfgr

§

fn clone(&self) -> I2ccfgr

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
§

impl Copy for I2ccfgr

§

impl Default for I2ccfgr

§

fn default() -> I2ccfgr

Returns the “default value” for a type. Read more
§

impl Eq for I2ccfgr

§

impl PartialEq for I2ccfgr

§

fn eq(&self, other: &I2ccfgr) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for I2ccfgr

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 = !

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.