Struct esp32s2::rtc_i2c::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 16 fields
pub scl_low: SCL_LOW,
pub ctrl: CTRL,
pub status: STATUS,
pub to: TO,
pub slave_addr: SLAVE_ADDR,
pub scl_high: SCL_HIGH,
pub sda_duty: SDA_DUTY,
pub scl_start_period: SCL_START_PERIOD,
pub scl_stop_period: SCL_STOP_PERIOD,
pub int_clr: INT_CLR,
pub int_raw: INT_RAW,
pub int_st: INT_ST,
pub int_ena: INT_ENA,
pub data: DATA,
pub cmd: [CMD; 16],
pub date: DATE,
/* private fields */
}
Expand description
Register block
Fields
scl_low: SCL_LOW
0x00 - Configure the low level width of SCL
ctrl: CTRL
0x04 - Transmission setting
status: STATUS
0x08 - RTC I2C status
to: TO
0x0c - Configure RTC I2C timeout
slave_addr: SLAVE_ADDR
0x10 - Configure slave address
scl_high: SCL_HIGH
0x14 - Configure the high level width of SCL
sda_duty: SDA_DUTY
0x18 - Configure the SDA hold time after a negative SCL edge
scl_start_period: SCL_START_PERIOD
0x1c - Configure the delay between the SDA and SCL negative edge for a start condition
scl_stop_period: SCL_STOP_PERIOD
0x20 - Configure the delay between SDA and SCL positive edge for a stop condition
int_clr: INT_CLR
0x24 - Clear RTC I2C interrupt
int_raw: INT_RAW
0x28 - RTC I2C raw interrupt
int_st: INT_ST
0x2c - RTC I2C interrupt status
int_ena: INT_ENA
0x30 - Enable RTC I2C interrupt
data: DATA
0x34 - RTC I2C read data
cmd: [CMD; 16]
0x38..0x78 - RTC I2C Command %s
date: DATE
0xfc - Version control register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more