Struct esp32s3_hal::pac::pwm0::gen1_force::R
pub struct R(_);
Expand description
Register GEN1_FORCE
reader
Implementations§
§impl R
impl R
pub fn gen1_cntuforce_upmethod(&self) -> FieldReaderRaw<u8, u8>
pub fn gen1_cntuforce_upmethod(&self) -> FieldReaderRaw<u8, u8>
Bits 0:5 - Updating method for continuous software force of PWM generator 1. When all bits are set to 0: immediately, when bit0 is set to 1: TEZ,,when bit1 is set to 1: TEP, when bit2 is set to 1: TEA, when bit3 is set to 1: TEB, when bit4 is set to 1: sync, when bit5 is set to 1: disable update. (TEA/B here and below means an event generated when the timer’s value equals to that of register A/B.)
pub fn gen1_a_cntuforce_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn gen1_a_cntuforce_mode(&self) -> FieldReaderRaw<u8, u8>
Bits 6:7 - Continuous software force mode for PWM1A. 0: disabled, 1: low, 2: high, 3: disabled
pub fn gen1_b_cntuforce_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn gen1_b_cntuforce_mode(&self) -> FieldReaderRaw<u8, u8>
Bits 8:9 - Continuous software force mode for PWM1B. 0: disabled, 1: low, 2: high, 3: disabled
pub fn gen1_a_nciforce(&self) -> BitReaderRaw<bool>
pub fn gen1_a_nciforce(&self) -> BitReaderRaw<bool>
Bit 10 - Trigger of non-continuous immediate software-force event for PWM1A, a toggle will trigger a force event.
pub fn gen1_a_nciforce_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn gen1_a_nciforce_mode(&self) -> FieldReaderRaw<u8, u8>
Bits 11:12 - non-continuous immediate software force mode for PWM1A, 0: disabled, 1: low, 2: high, 3: disabled
pub fn gen1_b_nciforce(&self) -> BitReaderRaw<bool>
pub fn gen1_b_nciforce(&self) -> BitReaderRaw<bool>
Bit 13 - Trigger of non-continuous immediate software-force event for PWM1B, a toggle will trigger a force event.
pub fn gen1_b_nciforce_mode(&self) -> FieldReaderRaw<u8, u8>
pub fn gen1_b_nciforce_mode(&self) -> FieldReaderRaw<u8, u8>
Bits 14:15 - non-continuous immediate software force mode for PWM1B, 0: disabled, 1: low, 2: high, 3: disabled
Methods from Deref<Target = R<GEN1_FORCE_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.