Struct esp32s2_hal::peripherals::SYSTIMER
source · pub struct SYSTIMER { /* private fields */ }
Implementations§
source§impl SYSTIMER
impl SYSTIMER
sourcepub unsafe fn steal() -> SYSTIMER
pub unsafe fn steal() -> SYSTIMER
Unsafely create an instance of this peripheral out of thin air.
Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
pub fn conf(&self) -> &Reg<CONF_SPEC>
pub fn conf(&self) -> &Reg<CONF_SPEC>
0x00 - Configure system timer clock
pub fn load(&self) -> &Reg<LOAD_SPEC>
pub fn load(&self) -> &Reg<LOAD_SPEC>
0x04 - Load value to system timer
pub fn load_hi(&self) -> &Reg<LOAD_HI_SPEC>
pub fn load_hi(&self) -> &Reg<LOAD_HI_SPEC>
0x08 - High 32 bits to be loaded to system timer
pub fn load_lo(&self) -> &Reg<LOAD_LO_SPEC>
pub fn load_lo(&self) -> &Reg<LOAD_LO_SPEC>
0x0c - Low 32 bits to be loaded to system timer
pub fn step(&self) -> &Reg<STEP_SPEC>
pub fn step(&self) -> &Reg<STEP_SPEC>
0x10 - System timer accumulation step
pub fn target0_hi(&self) -> &Reg<TARGET0_HI_SPEC>
pub fn target0_hi(&self) -> &Reg<TARGET0_HI_SPEC>
0x14 - System timer target 0, high 32 bits
pub fn target0_lo(&self) -> &Reg<TARGET0_LO_SPEC>
pub fn target0_lo(&self) -> &Reg<TARGET0_LO_SPEC>
0x18 - System timer target 0, low 32 bits
pub fn target1_hi(&self) -> &Reg<TARGET1_HI_SPEC>
pub fn target1_hi(&self) -> &Reg<TARGET1_HI_SPEC>
0x1c - System timer target 1, high 32 bits
pub fn target1_lo(&self) -> &Reg<TARGET1_LO_SPEC>
pub fn target1_lo(&self) -> &Reg<TARGET1_LO_SPEC>
0x20 - System timer target 1, low 32 bits
pub fn target2_hi(&self) -> &Reg<TARGET2_HI_SPEC>
pub fn target2_hi(&self) -> &Reg<TARGET2_HI_SPEC>
0x24 - System timer target 2, high 32 bits
pub fn target2_lo(&self) -> &Reg<TARGET2_LO_SPEC>
pub fn target2_lo(&self) -> &Reg<TARGET2_LO_SPEC>
0x28 - System timer target 2, low 32 bits
pub fn target0_conf(&self) -> &Reg<TARGET0_CONF_SPEC>
pub fn target0_conf(&self) -> &Reg<TARGET0_CONF_SPEC>
0x2c - Configure work mode for system timer target 0
pub fn target1_conf(&self) -> &Reg<TARGET1_CONF_SPEC>
pub fn target1_conf(&self) -> &Reg<TARGET1_CONF_SPEC>
0x30 - Configure work mode for system timer target 1
pub fn target2_conf(&self) -> &Reg<TARGET2_CONF_SPEC>
pub fn target2_conf(&self) -> &Reg<TARGET2_CONF_SPEC>
0x34 - Configure work mode for system timer target 2
pub fn unit0_op(&self) -> &Reg<UNIT0_OP_SPEC>
pub fn unit0_op(&self) -> &Reg<UNIT0_OP_SPEC>
0x38 - Read out system timer value
pub fn unit0_value_hi(&self) -> &Reg<UNIT0_VALUE_HI_SPEC>
pub fn unit0_value_hi(&self) -> &Reg<UNIT0_VALUE_HI_SPEC>
0x3c - System timer value, high 32 bits
pub fn unit0_value_lo(&self) -> &Reg<UNIT0_VALUE_LO_SPEC>
pub fn unit0_value_lo(&self) -> &Reg<UNIT0_VALUE_LO_SPEC>
0x40 - System timer value, low 32 bits
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x44 - System timer interrupt enable
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x48 - System timer interrupt raw
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x4c - System timer interrupt clear
pub fn date(&self) -> &Reg<DATE_SPEC>
pub fn date(&self) -> &Reg<DATE_SPEC>
0xfc - Version control register