pub struct LEDC { /* private fields */ }Expand description
LEDC
Implementations§
Source§impl LEDC
impl LEDC
Sourcepub const PTR: *const RegisterBlock = {0x2008000 as *const ledc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2008000 as *const ledc::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn led_t01_timing_ctrl(&self) -> &LED_T01_TIMING_CTRL
pub fn led_t01_timing_ctrl(&self) -> &LED_T01_TIMING_CTRL
0x04 - LEDC T0 T1 Timing Control Register
Sourcepub fn ledc_data_finish_cnt(&self) -> &LEDC_DATA_FINISH_CNT
pub fn ledc_data_finish_cnt(&self) -> &LEDC_DATA_FINISH_CNT
0x08 - LEDC Data Finish Counter Register
Sourcepub fn led_reset_timing_ctrl(&self) -> &LED_RESET_TIMING_CTRL
pub fn led_reset_timing_ctrl(&self) -> &LED_RESET_TIMING_CTRL
0x0c - LEDC Reset Timing Control Register
Sourcepub fn ledc_wait_time0_ctrl(&self) -> &LEDC_WAIT_TIME0_CTRL
pub fn ledc_wait_time0_ctrl(&self) -> &LEDC_WAIT_TIME0_CTRL
0x10 - LEDC Wait Time0 Control Register
Sourcepub fn ledc_dma_ctrl(&self) -> &LEDC_DMA_CTRL
pub fn ledc_dma_ctrl(&self) -> &LEDC_DMA_CTRL
0x18 - LEDC DMA Control Register
Sourcepub fn ledc_int_ctrl(&self) -> &LEDC_INT_CTRL
pub fn ledc_int_ctrl(&self) -> &LEDC_INT_CTRL
0x1c - LEDC Interrupt Control Register
Sourcepub fn ledc_int_sts(&self) -> &LEDC_INT_STS
pub fn ledc_int_sts(&self) -> &LEDC_INT_STS
0x20 - LEDC Interrupt Status Register
Sourcepub fn ledc_wait_time1_ctrl(&self) -> &LEDC_WAIT_TIME1_CTRL
pub fn ledc_wait_time1_ctrl(&self) -> &LEDC_WAIT_TIME1_CTRL
0x28 - LEDC Wait Time1 Control Register
Sourcepub fn ledc_fifo_data(&self, n: usize) -> &LEDC_FIFO_DATA
pub fn ledc_fifo_data(&self, n: usize) -> &LEDC_FIFO_DATA
0x30..0xb0 - LEDC FIFO Data Register