35#define MOTOR_DIRECTION_OPTIONS 2
39#define INPUT_SOURCE_OPTIONS 2
52extern volatile uint16_t
ibus;
Motor config header file.
struct motorflags motorflags_t
Collection of all motor control flags.
struct motorconfigs motorconfigs_t
Collection of motor configurations.
struct faultflags faultflags_t
Collection of all fault flags.
volatile uint16_t vbusVref
VBUS voltage measurement (Register Value)
volatile uint8_t speedInput
The most recent "speed" input measurement.
volatile uint16_t ibus
Hi-side Current (IBUS) measurement (Register Value).
volatile motorconfigs_t motorConfigs
Motor Configs.
volatile int16_t iphaseW
In-line Phase W current current measurement (Register Value).
volatile uint16_t lastCommutationTicks
The number of 'ticks' between two hall sensor changes (store).
void TimersInit(void)
Initializes and synchronizes Timers.
volatile int16_t iphaseU
In-line Phase U current current measurement (Register Value).
static void ConfigsInit(void)
Initializes motorConfigs.
volatile int16_t iphaseV
In-line Phase V current current measurement (Register Value).
const SCPI_choice_def_t inputSources[2]
Array defining the possible input sources for speed/duty cycle control.
SCPI_Parser scpiParser
Speed input source options array.
const SCPI_choice_def_t motorDirections[2]
Array defining the possible motor directions for SCPI commands.
#define INPUT_SOURCE_OPTIONS
Motor direction options array.
#define MOTOR_DIRECTION_OPTIONS
Motor direction options array.
void ScpiInput(Stream &interface)
Processes incoming data from a serial interface for SCPI commands.
void ScpiInit(void)
Initializes the SCPI command parser and registers all supported commands.