Skip to main content

Command

Enum Command 

Source
#[repr(u8)]
pub enum Command {
Show 37 variants GetModInfo = 1, GetModInfoResp = 2, SetDataComponents = 3, GetData = 4, GetDataResp = 5, SetConfig = 6, GetConfig = 7, GetConfigResp = 8, Save = 9, StartCal = 10, StopCal = 11, SetFIRFilters = 12, GetFIRFilters = 13, GetFIRFiltersResp = 14, PowerDown = 15, SaveDone = 16, UserCalSampleCount = 17, UserCalScore = 18, SetConfigDone = 19, SetFIRFiltersDone = 20, StartContinuousMode = 21, StopContinuousMode = 22, PowerUpDone = 23, SetAcqParams = 24, GetAcqParams = 25, SetAcqParamsDone = 26, GetAcqParamsResp = 27, PowerDownDone = 28, FactoryMagCoeff = 29, FactoryMagCoeffDone = 30, TakeUserCalSample = 31, FactorylAccelCoeff = 36, FactoryAccelCoeffDone = 37, CopyCoeffSet = 43, CopyCoeffSetDone = 44, SerialNumber = 52, SerialNumberResp = 53,
}
Expand description

The type of command being sent/recieved from the device. All frames have a command.

Variants§

§

GetModInfo = 1

Queries the device’s type and firmware revision.

§

GetModInfoResp = 2

Response to GetModInfo

§

SetDataComponents = 3

Sets the data components to be output

§

GetData = 4

Queries the TargetPoint3 for data

§

GetDataResp = 5

Response to GetData

§

SetConfig = 6

Sets internal configurations in TargetPoint3

§

GetConfig = 7

Queries TargetPoint3 for the current internal configuration

§

GetConfigResp = 8

Response to GetConfig

§

Save = 9

Saves the current internal configuration and any new user calibration coefficients to non- volatile memory.

§

StartCal = 10

Commands the TargetPoint3 to start user calibratio

§

StopCal = 11

Commands the TargetPoint3 to stop user calibration

§

SetFIRFilters = 12

Sets the FIR filter settings for the magnetometer & accelerometer sensors.

§

GetFIRFilters = 13

Queries for the FIR filter settings for the magnetometer & accelerometer sensors.

§

GetFIRFiltersResp = 14

Contains the FIR filter settings for the magnetometer & accelerometer sensors.

§

PowerDown = 15

Powers down the module

§

SaveDone = 16

Response to kSave

§

UserCalSampleCount = 17

Sent from the TargetPoint3 after taking a calibration sample point

§

UserCalScore = 18

Contains the calibration score

§

SetConfigDone = 19

Response to SetConfig

§

SetFIRFiltersDone = 20

Response to SetFIRFilters

§

StartContinuousMode = 21

Commands the TargetPoint3 to output data at a fixed interval

§

StopContinuousMode = 22

Stops data output when in Continuous Mode

§

PowerUpDone = 23

Confirms the TargetPoint3 has received a signal to power up

§

SetAcqParams = 24

Sets the sensor acquisition parameters

§

GetAcqParams = 25

Queries for the sensor acquisition parameters

§

SetAcqParamsDone = 26

Response to SetAcqParams

§

GetAcqParamsResp = 27

Response to GetAcqParams

§

PowerDownDone = 28

Response to PowerDown

§

FactoryMagCoeff = 29

Resets magnetometer calibration coefficients to original factory-established values

§

FactoryMagCoeffDone = 30

Response to kFactoryMagCoeff

§

TakeUserCalSample = 31

Commands the TargetPoint3 to take a sample during user calibration

§

FactorylAccelCoeff = 36

Resets accelerometer calibration coefficients to original factory-established values

§

FactoryAccelCoeffDone = 37

Respond to FactoryAccelCoeff

§

CopyCoeffSet = 43

Copy one set of calibration coefficient to another set

§

CopyCoeffSetDone = 44

Respond to CopyCoeffSet

§

SerialNumber = 52

Request Serial Number of TargetPoint3 unit

§

SerialNumberResp = 53

Respond to SerialNumber

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.