SpiMessageType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
All the supported SPI messages
public enum SpiMessageType
type SpiMessageType =
Public Enum SpiMessageType
- Inheritance
-
SpiMessageType
Fields
GetFirmwareVersion | 4 | Get firmware version |
GetHardwareVersion | 3 | Get hardware version |
GetId | 5 | Get identifier |
GetManufacturer | 1 | Get manufacturer |
GetMotorAEncoder | 30 | Get encoder of motor A |
GetMotorAStatus | 34 | Get status of motor A |
GetMotorBEncoder | 31 | Get encoder of motor B |
GetMotorBStatus | 35 | Get status of motor B |
GetMotorCEncoder | 32 | Get encoder of motor C |
GetMotorCStatus | 36 | Get status of motor C |
GetMotorDEncoder | 33 | Get encoder of motor D |
GetMotorDStatus | 37 | Get status of motor D |
GetName | 2 | Get name |
GetSensor1 | 13 | Get sensor 1 |
GetSensor2 | 14 | Get sensor 2 |
GetSensor3 | 15 | Get sensor 3 |
GetSensor4 | 16 | Get sensor 4 |
GetVoltage3V3 | 7 | Get Voltage (3.3V) |
GetVoltage5V | 8 | Get Voltage (5V) |
GetVoltage9V | 9 | Get Voltage (9V) |
GetVoltageVcc | 10 | Get Voltage (Vcc) |
I2CTransact1 | 17 | I2C transaction 1 |
I2CTransact2 | 18 | I2C transaction 2 |
I2CTransact3 | 19 | I2C transaction 3 |
I2CTransact4 | 20 | I2C transaction 4 |
None | 0 | None |
OffsetMotorEncoder | 29 | Offset motor encoder |
SetAddress | 11 | Set address |
SetLed | 6 | Set LED |
setMotorDps | 25 | |
SetMotorDps | 25 | Set motor angular speed (degrees per second) |
setMotorDpsKD | 27 | |
SetMotorDpsKD | 27 | Set derivative factor (KD) of motor angular speed controller |
SetMotorDpsKP | 26 | Set proportional factor (KP) of motor angular speed controller |
setMotorLimits | 28 | |
SetMotorLimits | 28 | Set motor limits |
SetMotorPosition | 22 | Set motor position |
SetMotorPositionKD | 24 | Set derivative factor (KD) of motor position controller |
SetMotorPositionKP | 23 | Set proportional factor (KP) of motor position controller |
SetMotorPower | 21 | Set motor power |
SetSensorType | 12 | Get sensor type |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for