#[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