#[repr(C)]pub struct CANSparkMaxLowLevel {
pub _base: MotorController,
pub m_motorType: CANSparkMaxLowLevel_MotorType,
pub m_sparkMaxHandle: *mut c_void,
pub m_deviceID: c_int,
}Fields§
§_base: MotorController§m_motorType: CANSparkMaxLowLevel_MotorType§m_sparkMaxHandle: *mut c_void§m_deviceID: c_intImplementations§
Source§impl CANSparkMaxLowLevel
impl CANSparkMaxLowLevel
pub unsafe fn GetFirmwareVersion(&mut self) -> u32
pub unsafe fn GetFirmwareVersion1(&mut self, isDebugBuild: *mut bool) -> u32
pub unsafe fn GetFirmwareString(&mut self) -> string
pub unsafe fn GetSerialNumber(&mut self) -> vector
pub unsafe fn GetDeviceId(&self) -> c_int
pub unsafe fn GetInitialMotorType(&mut self) -> CANSparkMaxLowLevel_MotorType
pub unsafe fn GetMotorType(&mut self) -> CANSparkMaxLowLevel_MotorType
pub unsafe fn SetPeriodicFramePeriod( &mut self, frame: CANSparkMaxLowLevel_PeriodicFrame, periodMs: c_int, ) -> REVLibError
pub unsafe fn SetControlFramePeriodMs(&mut self, periodMs: c_int)
pub unsafe fn RestoreFactoryDefaults(&mut self, persist: bool) -> REVLibError
pub unsafe fn EnableExternalUSBControl(enable: bool)
pub unsafe fn SetEnable(enable: bool)
pub unsafe fn GetPeriodicStatus0( &mut self, ) -> CANSparkMaxLowLevel_PeriodicStatus0
pub unsafe fn GetPeriodicStatus1( &mut self, ) -> CANSparkMaxLowLevel_PeriodicStatus1
pub unsafe fn GetPeriodicStatus2( &mut self, ) -> CANSparkMaxLowLevel_PeriodicStatus2
pub unsafe fn SetFollow( &mut self, config: CANSparkMaxLowLevel_FollowConfig, ) -> REVLibError
pub unsafe fn SetpointCommand( &mut self, value: f64, ctrl: CANSparkMaxLowLevel_ControlType, pidSlot: c_int, arbFeedforward: f64, arbFFUnits: c_int, ) -> REVLibError
pub unsafe fn GetSafeFloat(&mut self, f: f32) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CANSparkMaxLowLevel
impl RefUnwindSafe for CANSparkMaxLowLevel
impl !Send for CANSparkMaxLowLevel
impl !Sync for CANSparkMaxLowLevel
impl Unpin for CANSparkMaxLowLevel
impl UnwindSafe for CANSparkMaxLowLevel
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