pub struct MID0013rev2 {
pub parameter_set_id: u16,
pub parameter_set_name: String,
pub rotation_direction: RotationDirection,
pub batch_size: u8,
pub torque_min: u32,
pub torque_max: u32,
pub final_torque_target: u32,
pub angle_min: u16,
pub angle_max: u16,
pub final_angle_target: u16,
pub first_target: u32,
pub start_final_angle: u32,
}
Fields§
§parameter_set_id: u16
Three ASCII digits for the parameter set ID
parameter_set_name: String
25 ASCII characters for the parameter set name, right-padded with spaces if less
rotation_direction: RotationDirection
One ASCII digit for rotation direction: 1=CW, 2=CCW
batch_size: u8
Two ASCII digits for batch size
torque_min: u32
Six ASCII digits for torque minimum, multiplied by 100
torque_max: u32
Six ASCII digits for torque maximum, multiplied by 100
final_torque_target: u32
Six ASCII digits for the final torque target, multiplied by 100
angle_min: u16
Five ASCII digits for angle minimum
angle_max: u16
Five ASCII digits for angle maximum
final_angle_target: u16
Five ASCII digits for the final angle target
first_target: u32
Five ASCII digits for angle maximum
start_final_angle: u32
Five ASCII digits for the final angle target
Trait Implementations§
Source§impl Debug for MID0013rev2
impl Debug for MID0013rev2
Source§impl Decode for MID0013rev2
impl Decode for MID0013rev2
Source§impl Default for MID0013rev2
impl Default for MID0013rev2
Source§fn default() -> MID0013rev2
fn default() -> MID0013rev2
Returns the “default value” for a type. Read more
Source§impl Encode for MID0013rev2
impl Encode for MID0013rev2
Source§impl Message for MID0013rev2
impl Message for MID0013rev2
fn mid() -> u16
fn to_mid(&self) -> u16
fn revision() -> u16
fn to_revision(&self) -> u16
fn message_type() -> MessageType
fn to_message_type(&self) -> MessageType
Source§impl PartialEq for MID0013rev2
impl PartialEq for MID0013rev2
impl Eq for MID0013rev2
impl StructuralPartialEq for MID0013rev2
Auto Trait Implementations§
impl Freeze for MID0013rev2
impl RefUnwindSafe for MID0013rev2
impl Send for MID0013rev2
impl Sync for MID0013rev2
impl Unpin for MID0013rev2
impl UnwindSafe for MID0013rev2
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