MotorWare f2806x Module API Documentation

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

float/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/math/src/float/math.h"
18
19
20 // solutions
21
22
27
28
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34
35 // **************************************************************************
36 // the defines
37
38
39 // **************************************************************************
40 // the typedefs
41
44 typedef struct _HAL_AdcData_t_
45 {
46 MATH_vec3 I_A;
47
48 MATH_vec3 V_V;
49
50 float_t dcBus_V;
51
52 } HAL_AdcData_t;
53
54
57 typedef struct _HAL_DacData_t_
58 {
59 float_t value[4];
60
61 } HAL_DacData_t;
62
63
66 typedef struct _HAL_PwmData_t_
67 {
68 MATH_vec3 Vabc_pu;
69
70 } HAL_PwmData_t;
71
72
73 // **************************************************************************
74 // the globals
75
76
77 // **************************************************************************
78 // the function prototypes
79
80
81 #ifdef __cplusplus
82 }
83 #endif // extern "C"
84
86
87
88 #endif // end of _HAL_DATA_H_ definition
89
_HAL_PwmData_t_::Vabc_pu
MATH_vec3 Vabc_pu
the PWM time-durations for each motor phase
Definition: 32b/hal_data.h:69
HAL_PwmData_t
struct _HAL_PwmData_t_ HAL_PwmData_t
Defines the PWM data.
math.h
Contains the public interface to the math (MATH) module routines.
_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.
_HAL_AdcData_t_::dcBus_V
float_t dcBus_V
the dcBus value
Definition: float/hal_data.h:50
_HAL_AdcData_t_::I_A
MATH_vec3 I_A
the current values
Definition: float/hal_data.h:46
_HAL_AdcData_t_::V_V
MATH_vec3 V_V
the voltage values
Definition: float/hal_data.h:48
_HAL_DacData_t_
Defines the DAC data.
Definition: boostxldrv8301_revB/f28x/f2806x/src/hal_obj.h:103
_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
HAL_AdcData_t
struct _HAL_AdcData_t_ HAL_AdcData_t
Defines the ADC data.
float_t
float float_t
Defines the portable data type for 32 bit, signed floating-point data.
Definition: types.h:121