#[repr(C)]pub struct I2C_InitTypeDef {
pub ClockSpeed: u32,
pub DutyCycle: u32,
pub OwnAddress1: u32,
pub GeneralCallMode: u32,
pub NoStretchMode: u32,
}Expand description
@defgroup I2C_Configuration_Structure_definition I2C Configuration Structure definition @brief I2C Configuration Structure definition @{
Fields§
§ClockSpeed: u32< Specifies the clock frequency. This parameter must be set to a value lower than 400kHz
DutyCycle: u32< Specifies the I2C fast mode duty cycle. This parameter can be a value of @ref I2C_duty_cycle_in_fast_mode
OwnAddress1: u32< Specifies the first device own address. This parameter can be a 7-bit or 10-bit address.
GeneralCallMode: u32< Specifies if general call mode is selected. This parameter can be a value of @ref I2C_general_call_addressing_mode
NoStretchMode: u32< Specifies if nostretch mode is selected. This parameter can be a value of @ref I2C_nostretch_mode
Trait Implementations§
Source§impl Clone for I2C_InitTypeDef
impl Clone for I2C_InitTypeDef
Source§fn clone(&self) -> I2C_InitTypeDef
fn clone(&self) -> I2C_InitTypeDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for I2C_InitTypeDef
Auto Trait Implementations§
impl Freeze for I2C_InitTypeDef
impl RefUnwindSafe for I2C_InitTypeDef
impl Send for I2C_InitTypeDef
impl Sync for I2C_InitTypeDef
impl Unpin for I2C_InitTypeDef
impl UnsafeUnpin for I2C_InitTypeDef
impl UnwindSafe for I2C_InitTypeDef
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