MotorWare f2806x Module API Documentation

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

32b/hal_data.h
Go to the documentation of this file.
1 #ifndef _HAL_DATA_H_
2 #define _HAL_DATA_H_
3
8
9
10 // **************************************************************************
11 // the includes
12
13 // drivers
14
15
16 // modules
17 #include "sw/modules/iqmath/src/32b/IQmathLib.h"
18 #include "sw/modules/math/src/32b/math.h"
19
20
21 // solutions
22
23
28
29
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35
36 // **************************************************************************
37 // the defines
38
39
40 // **************************************************************************
41 // the typedefs
42
45 typedef struct _HAL_AdcData_t_
46 {
47 MATH_vec3 I_pu;
48
49 MATH_vec3 V_pu;
50
51 _iq dcBus_pu;
52
53 } HAL_AdcData_t;
54
55
58 typedef struct _HAL_DacData_t_
59 {
60 _iq value[4];
61
62 } HAL_DacData_t;
63
64
67 typedef struct _HAL_PwmData_t_
68 {
69 MATH_vec3 Vabc_pu;
70
71 } HAL_PwmData_t;
72
73
74 // **************************************************************************
75 // the globals
76
77
78 // **************************************************************************
79 // the function prototypes
80
81
82 #ifdef __cplusplus
83 }
84 #endif // extern "C"
85
87
88
89 #endif // end of _HAL_DATA_H_ definition
90
_HAL_PwmData_t_::Vabc_pu
MATH_vec3 Vabc_pu
the PWM time-durations for each motor phase
Definition: 32b/hal_data.h:69
_HAL_AdcData_t_::dcBus_pu
_iq dcBus_pu
the dcBus value
Definition: 32b/hal_data.h:51
HAL_PwmData_t
struct _HAL_PwmData_t_ HAL_PwmData_t
Defines the PWM data.
_iq
long _iq
Definition: 32b/IQmathLib.h:223
_HAL_PwmData_t_
Defines the PWM data.
Definition: boostxldrv8301_revB/f28x/f2806x/src/hal_obj.h:116
_MATH_vec3_
Defines a three element vector.
Definition: 32b/math.h:258
HAL_DacData_t
struct _HAL_DacData_t_ HAL_DacData_t
Defines the DAC data.
math.h
Contains the public interface to the math (MATH) module routines.
_HAL_DacData_t_
Defines the DAC data.
Definition: boostxldrv8301_revB/f28x/f2806x/src/hal_obj.h:103
_HAL_AdcData_t_::V_pu
MATH_vec3 V_pu
the voltage values
Definition: 32b/hal_data.h:49
_HAL_DacData_t_::value
_iq value[4]
the DAC data
Definition: boostxldrv8301_revB/f28x/f2806x/src/hal_obj.h:105
_HAL_AdcData_t_
Defines the ADC data.
Definition: boostxldrv8301_revB/f28x/f2806x/src/hal_obj.h:88
IQmathLib.h
_HAL_AdcData_t_::I_pu
MATH_vec3 I_pu
the current values
Definition: 32b/hal_data.h:47
HAL_AdcData_t
struct _HAL_AdcData_t_ HAL_AdcData_t
Defines the ADC data.