MSPM0G3519SensoredFOCMotorControlLibrary  1.0
Data Structures | Enumerations | Variables
appUserOutputs.h File Reference

Detailed Description

Application Outputs Module.


Overview

Handles the output variables for user to understand


#include "stdint.h"
#include "mcLib.h"
Include dependency graph for appUserOutputs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  OUTPUTS_CURRENT_PI_T
 PI Current output structure. More...
 
struct  OUTPUTS_PI_T
 PI output structure. More...
 
struct  OUTPUT_DQ_T
 DQ structure. More...
 
struct  appVersion
 appVersion structure More...
 
union  APP_VERSION_T
 appVersion register More...
 
struct  USER_STATUS_INTERFACE_T
 User output structure. More...
 

Enumerations

enum  MOTOR_STATE_TYPES_T {
  MOTOR_IDLE = 0,
  MOTOR_ISD = 1,
  MOTOR_TRISTATE = 2,
  MOTOR_BRAKE_ON_START = 3,
  MOTOR_IPD = 4,
  MOTOR_SLOW_FIRST_CYCLE = 5,
  MOTOR_ALIGN = 6,
  MOTOR_OPEN_LOOP = 7,
  MOTOR_CLOSE_LOOP_UNALIGNED = 8,
  MOTOR_CLOSE_LOOP_ALIGNED = 9,
  MOTOR_CLOSE_LOOP_ACTIVE_BRAKING = 10,
  MOTOR_SOFT_STOP = 11,
  MOTOR_BRAKE_ON_STOP = 12,
  MOTOR_FAULT = 13,
  MOTOR_MAX = 0xFFFF
}
 Motor states. More...
 
enum  USER_FAULT_TYPES {
  NO_FAULTS = 0,
  FAULT_MOTOR_STALL = 1,
  FAULT_VOLTAGE_OUT_OF_BOUNDS = 2,
  FAULT_LOAD_STALL = 3,
  FAULT_HARDWARE_OVER_CURRENT = 4,
  FAULT_HV_DIE = 5,
  FAULT_NONE = 0xFFFF
}
 Fault types. More...
 

Variables

USER_STATUS_INTERFACE_TpUserStatusRegs
 pointer to userOutputs
 

Enumeration Type Documentation

§ MOTOR_STATE_TYPES_T

Motor states.

Enumerator
MOTOR_IDLE 

Motor Idle state

MOTOR_ISD 

Motor in ISD state

MOTOR_TRISTATE 

Motor in Tristate state

MOTOR_BRAKE_ON_START 

Motor in Brake on start state

MOTOR_IPD 

Motor in IPD state

MOTOR_SLOW_FIRST_CYCLE 

Motor in Slow first cycle state

MOTOR_ALIGN 

Motor in align state

MOTOR_OPEN_LOOP 

Motor in open loop state

MOTOR_CLOSE_LOOP_UNALIGNED 

Motor in close loop unaligned state

MOTOR_CLOSE_LOOP_ALIGNED 

Motor in close loop aligned state

MOTOR_CLOSE_LOOP_ACTIVE_BRAKING 

Motor in active brake state

MOTOR_SOFT_STOP 

Motor in soft stop state

MOTOR_BRAKE_ON_STOP 

Motor in brake on stop state

MOTOR_FAULT 

Motor in fault state

MOTOR_MAX 

Motor Max State

§ USER_FAULT_TYPES

Fault types.

Enumerator
NO_FAULTS 

No Fault

FAULT_MOTOR_STALL 

Motor Stall detected

FAULT_VOLTAGE_OUT_OF_BOUNDS 

Voltage out of bounds detected

FAULT_LOAD_STALL 

Motor startup fault detected

FAULT_HARDWARE_OVER_CURRENT 

Over current fault detected

FAULT_HV_DIE 

HVDie Fault

FAULT_NONE 

Fault Max

© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale