#[non_exhaustive]pub struct AuxPwmCommand {
pub aux1_pwm1: Option<f32>,
pub aux1_pwm2: Option<f32>,
pub aux1_pwm3: Option<f32>,
pub aux1_pwm4: Option<f32>,
pub aux1_pwm5: Option<f32>,
pub aux2_pwm1: Option<f32>,
pub aux2_pwm2: Option<f32>,
pub aux2_pwm3: Option<f32>,
pub aux2_pwm4: Option<f32>,
pub aux2_pwm5: Option<f32>,
}Expand description
AUX PWM output command.
Sets PWM duty cycles on the AUX1 and AUX2 ports. Each port supports up to 5 PWM channels. Values are 0.0-1.0 duty cycle.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.aux1_pwm1: Option<f32>AUX1 PWM channel 1 duty cycle (0.0-1.0)
aux1_pwm2: Option<f32>AUX1 PWM channel 2 duty cycle (0.0-1.0)
aux1_pwm3: Option<f32>AUX1 PWM channel 3 duty cycle (0.0-1.0)
aux1_pwm4: Option<f32>AUX1 PWM channel 4 duty cycle (0.0-1.0)
aux1_pwm5: Option<f32>AUX1 PWM channel 5 duty cycle (0.0-1.0)
aux2_pwm1: Option<f32>AUX2 PWM channel 1 duty cycle (0.0-1.0)
aux2_pwm2: Option<f32>AUX2 PWM channel 2 duty cycle (0.0-1.0)
aux2_pwm3: Option<f32>AUX2 PWM channel 3 duty cycle (0.0-1.0)
aux2_pwm4: Option<f32>AUX2 PWM channel 4 duty cycle (0.0-1.0)
aux2_pwm5: Option<f32>AUX2 PWM channel 5 duty cycle (0.0-1.0)
Implementations§
Source§impl AuxPwmCommand
impl AuxPwmCommand
pub fn aux1_pwm1(self, value: f32) -> Self
pub fn aux1_pwm2(self, value: f32) -> Self
pub fn aux1_pwm3(self, value: f32) -> Self
pub fn aux1_pwm4(self, value: f32) -> Self
pub fn aux1_pwm5(self, value: f32) -> Self
pub fn aux2_pwm1(self, value: f32) -> Self
pub fn aux2_pwm2(self, value: f32) -> Self
pub fn aux2_pwm3(self, value: f32) -> Self
pub fn aux2_pwm4(self, value: f32) -> Self
pub fn aux2_pwm5(self, value: f32) -> Self
Source§impl AuxPwmCommand
impl AuxPwmCommand
Sourcepub fn serialize(&self, frame: &mut CanFdFrame, format: &AuxPwmFormat)
pub fn serialize(&self, frame: &mut CanFdFrame, format: &AuxPwmFormat)
Serializes this command to a CAN frame.
Trait Implementations§
Source§impl Clone for AuxPwmCommand
impl Clone for AuxPwmCommand
Source§fn clone(&self) -> AuxPwmCommand
fn clone(&self) -> AuxPwmCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuxPwmCommand
impl Debug for AuxPwmCommand
Source§impl Default for AuxPwmCommand
impl Default for AuxPwmCommand
Source§fn default() -> AuxPwmCommand
fn default() -> AuxPwmCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuxPwmCommand
impl RefUnwindSafe for AuxPwmCommand
impl Send for AuxPwmCommand
impl Sync for AuxPwmCommand
impl Unpin for AuxPwmCommand
impl UnsafeUnpin for AuxPwmCommand
impl UnwindSafe for AuxPwmCommand
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