Type Alias xmc4200::hrpwm0_csg0::sc::SVSC_R

source ·
pub type SVSC_R = FieldReader<SVSC_A>;
Expand description

Field SVSC reader - Slope reference value mode

Aliased Type§

struct SVSC_R { /* private fields */ }

Implementations§

source§

impl SVSC_R

source

pub const fn variant(&self) -> Option<SVSC_A>

Get enumerated values variant

source

pub fn is_value1(&self) -> bool

Only CSGyDSV1This register contains the actual value used for the DSV1 reference. value is used for the slope generation: if slope is incrementing, CSGyDSV1This register contains the actual value used for the DSV1 reference. is the bottom reference value from where the ramp starts; if decrementing, then CSGyDSV1This register contains the actual value used for the DSV1 reference. is the upper reference value from where the ramp starts.

source

pub fn is_value2(&self) -> bool

The two reference values are being used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the ramp starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as a static value (this value is constantly fed to the DAC after a stop trigger as been detected).

source

pub fn is_value3(&self) -> bool

The two reference values are used: CSGyDSV1This register contains the actual value used for the DSV1 reference. is the low or high reference value from where the slope starts (incrementing or decrementing respectively); CSGyDSV2This register contains the actual value used for the DSV2 reference. is used as an internal re start condition for the slope.