pub struct PixRacerProServoMonstrosity {
pub timers: [TimerEnum; 3],
pub chan_list: [(usize, TimerChannel); 7],
/* private fields */
}Fields§
§timers: [TimerEnum; 3]§chan_list: [(usize, TimerChannel); 7]Implementations§
Source§impl PixRacerProServoMonstrosity
impl PixRacerProServoMonstrosity
pub fn new( timers: [TimerEnum; 3], chan_list: [(usize, TimerChannel); 7], ) -> Self
pub fn with_timer_kinds( timers: [TimerEnum; 3], chan_list: [(usize, TimerChannel); 7], timer_kinds: [PwmTimerBlockKind; 3], ) -> Self
pub fn with_timer_kinds_and_dma( timers: [TimerEnum; 3], chan_list: [(usize, TimerChannel); 7], timer_kinds: [PwmTimerBlockKind; 3], timer_dmas: [Option<DshotDma>; 3], ) -> Self
pub fn len(&mut self) -> usize
pub fn enable(&mut self, ch: usize) -> Result<(), TimerError>
pub fn disable(&mut self, ch: usize) -> Result<(), TimerError>
pub fn set_duty_cycle(&mut self, ch: usize, duty: u16) -> Result<(), TimerError>
pub fn configure_output_rates( &mut self, rates_hz: &[f64], ) -> Result<(), TimerError>
pub fn output_protocol( &self, ch: usize, ) -> Result<PwmOutputProtocol, TimerError>
pub fn send_normalized_commands( &mut self, commands: &[f64], ) -> Result<(), TimerError>
pub fn send_disarmed_commands( &mut self, output_types: &[MixerOutputType], ) -> Result<(), TimerError>
pub fn max_duty_cycle(&self, ch: usize) -> u16
Auto Trait Implementations§
impl Freeze for PixRacerProServoMonstrosity
impl RefUnwindSafe for PixRacerProServoMonstrosity
impl Send for PixRacerProServoMonstrosity
impl Sync for PixRacerProServoMonstrosity
impl Unpin for PixRacerProServoMonstrosity
impl UnsafeUnpin for PixRacerProServoMonstrosity
impl !UnwindSafe for PixRacerProServoMonstrosity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.