Open FFBoard
Open source force feedback firmware
VescCAN.h File Reference

Go to the source code of this file.

Classes

struct  VescFlashAddrs
 
class  VescCAN
 
class  VESC_1
 
class  VESC_2
 

Enumerations

enum class  VescState : uint32_t {
  VESC_STATE_UNKNOWN = 0 , VESC_STATE_INCOMPATIBLE = 1 , VESC_STATE_PONG = 2 , VESC_STATE_COMPATIBLE = 3 ,
  VESC_STATE_READY = 4 , VESC_STATE_ERROR = 5
}
 
enum class  VescCANMsg : uint8_t {
  CAN_PACKET_FILL_RX_BUFFER = 5 , CAN_PACKET_FILL_RX_BUFFER_LONG = 6 , CAN_PACKET_PROCESS_RX_BUFFER = 7 , CAN_PACKET_PROCESS_SHORT_BUFFER = 8 ,
  CAN_PACKET_SET_CURRENT_REL = 10 , CAN_PACKET_PING = 17 , CAN_PACKET_PONG = 18 , CAN_PACKET_POLL_ROTOR_POS = 56
}
 
enum class  VescCmd : uint8_t { COMM_FW_VERSION = 0 , COMM_ROTOR_POSITION = 22 , COMM_GET_VALUES_SELECTIVE = 50 }
 
enum class  VescEncoderMode : uint8_t { ENCODER_OFF = 0 , ENCODER_ON = 3 }
 
enum class  VescCAN_commands : uint32_t {
  offbcanid , vesccanid , canspd , errorflags ,
  vescstate , voltage , encrate , pos ,
  torque , forcePosRead , useEncoder , offset
}
 

Enumeration Type Documentation

◆ VescCAN_commands

enum class VescCAN_commands : uint32_t
strong
Enumerator
offbcanid 
vesccanid 
canspd 
errorflags 
vescstate 
voltage 
encrate 
pos 
torque 
forcePosRead 
useEncoder 
offset 

Definition at line 57 of file VescCAN.h.

◆ VescCANMsg

enum class VescCANMsg : uint8_t
strong
Enumerator
CAN_PACKET_FILL_RX_BUFFER 
CAN_PACKET_FILL_RX_BUFFER_LONG 
CAN_PACKET_PROCESS_RX_BUFFER 
CAN_PACKET_PROCESS_SHORT_BUFFER 
CAN_PACKET_SET_CURRENT_REL 
CAN_PACKET_PING 
CAN_PACKET_PONG 
CAN_PACKET_POLL_ROTOR_POS 

Definition at line 37 of file VescCAN.h.

◆ VescCmd

enum class VescCmd : uint8_t
strong
Enumerator
COMM_FW_VERSION 
COMM_ROTOR_POSITION 
COMM_GET_VALUES_SELECTIVE 

Definition at line 48 of file VescCAN.h.

◆ VescEncoderMode

enum class VescEncoderMode : uint8_t
strong
Enumerator
ENCODER_OFF 
ENCODER_ON 

Definition at line 53 of file VescCAN.h.

◆ VescState

enum class VescState : uint32_t
strong
Enumerator
VESC_STATE_UNKNOWN 
VESC_STATE_INCOMPATIBLE 
VESC_STATE_PONG 
VESC_STATE_COMPATIBLE 
VESC_STATE_READY 
VESC_STATE_ERROR 

Definition at line 27 of file VescCAN.h.