pub struct PwmActions<const IS_A: bool>(/* private fields */);
unstable
only.Expand description
Settings for what actions should be taken on timing events
§Note:
The hardware supports using a timestamp A event to trigger an action on output B or vice versa. For clearer ownership semantics this HAL does not support such configurations.
Implementations§
Source§impl<const IS_A: bool> PwmActions<IS_A>
impl<const IS_A: bool> PwmActions<IS_A>
Sourcepub const UP_ACTIVE_HIGH: Self
pub const UP_ACTIVE_HIGH: Self
Using this setting together with a timer configured with
PwmWorkingMode::Increase
will set the output high for a duration proportional to the set
timestamp.
Sourcepub const UP_DOWN_ACTIVE_HIGH: Self
pub const UP_DOWN_ACTIVE_HIGH: Self
Using this setting together with a timer configured with
PwmWorkingMode::UpDown
will
set the output high for a duration proportional to the set
timestamp.
Sourcepub const fn on_up_counting_timer_equals_zero(
self,
action: UpdateAction,
) -> Self
pub const fn on_up_counting_timer_equals_zero( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an UTEZ
event
Sourcepub const fn on_up_counting_timer_equals_period(
self,
action: UpdateAction,
) -> Self
pub const fn on_up_counting_timer_equals_period( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an UTEP
event
Sourcepub const fn on_up_counting_timer_equals_timestamp(
self,
action: UpdateAction,
) -> Self
pub const fn on_up_counting_timer_equals_timestamp( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an UTEA
/UTEB
event
Sourcepub const fn on_up_counting_timer_equals_ch_timestamp<const CH_A: bool>(
self,
action: UpdateAction,
) -> Self
pub const fn on_up_counting_timer_equals_ch_timestamp<const CH_A: bool>( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an UTEA
/UTEB
event where you can
specify which of the A/B to use
Sourcepub const fn on_down_counting_timer_equals_zero(
self,
action: UpdateAction,
) -> Self
pub const fn on_down_counting_timer_equals_zero( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an DTEZ
event
Sourcepub const fn on_down_counting_timer_equals_period(
self,
action: UpdateAction,
) -> Self
pub const fn on_down_counting_timer_equals_period( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an DTEP
event
Sourcepub const fn on_down_counting_timer_equals_timestamp(
self,
action: UpdateAction,
) -> Self
pub const fn on_down_counting_timer_equals_timestamp( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an DTEA
/DTEB
event
Sourcepub const fn on_down_counting_timer_equals_ch_timestamp<const CH_A: bool>(
self,
action: UpdateAction,
) -> Self
pub const fn on_down_counting_timer_equals_ch_timestamp<const CH_A: bool>( self, action: UpdateAction, ) -> Self
Choose an UpdateAction
for an DTEA
/DTEB
event where you can
specify which of the A/B to use