Data Structures | |
struct | ABC_DQ0_NEG |
Defines the ABC_DQ0_NEG transform structure. More... | |
struct | ABC_DQ0_POS |
Defines the ABC_DQ0_POS transform structure. More... | |
Functions | |
static void | ABC_DQ0_NEG_reset (ABC_DQ0_NEG *v) |
Resets internal data to zero. More... | |
static void | ABC_DQ0_NEG_run (ABC_DQ0_NEG *v, float32_t a, float32_t b, float32_t c, float32_t sine_val, float32_t cosine_val) |
Runs ABC_DQ0_NEG routine. More... | |
static void | ABC_DQ0_POS_reset (ABC_DQ0_POS *v) |
Resets internal data to zero. More... | |
static void | ABC_DQ0_POS_run (ABC_DQ0_POS *v, float32_t a, float32_t b, float32_t c, float32_t sine_val, float32_t cosine_val) |
Run ABC_DQ0_POS routine. More... | |
Typedefs | |
typedef float | float32_t |
typedef long double | float64_t |
typedef float | float32_t |
typedef long double | float64_t |
Macros | |
#define | C2000_IEEE754_TYPES |
#define | C2000_IEEE754_TYPES |
The Positive & Negative Sequence Transform frame (ABC_DQ0_POSN and ABC_DQ0_NEG) API provides a set of functions that implements the transform from ABC to DQ0 axis.
The block converts the three phase quantities into DC quantities in rotating reference frame for positive and negative sequence.
Where:
and
and
The following is a sequence of steps that can be followed to use the ABC_DQ0_POS and ABC_DQ0_NEG API library functions in an existing C program. For a set of code examples that illustrates the use of this library, see the examples in the Digial Power SDK.
Before you can use the library you must add the libraries directory path as a searchable directory in the project include options. This can be done by right-clicking on the project in the Project Explorer window, selecting "Properties". In the window that opens, navigate to "Build, C2000 Compiler, Include Options". In the include path window, click on the green add directory path button on the right and enter the path to the Digital Power SDK libraries directory.
This allows CCS to search the entire directory for library files.
Once that is done you should follow these steps to incorporate the library into a project:
There are two modules in this package, the APIs can be referenced at ABC_DQ0_NEG and ABC_DQ0_POS. The module headers are located at abc_dq0_pos.h and abc_dq0_pos.h .
#define C2000_IEEE754_TYPES |
Definition at line 47 of file abc_dq0_neg.h.
#define C2000_IEEE754_TYPES |
Definition at line 47 of file abc_dq0_pos.h.
typedef float float32_t |
Definition at line 52 of file abc_dq0_neg.h.
typedef long double float64_t |
Definition at line 53 of file abc_dq0_neg.h.
typedef float float32_t |
Definition at line 52 of file abc_dq0_pos.h.
typedef long double float64_t |
Definition at line 53 of file abc_dq0_pos.h.
|
inlinestatic |
Resets internal data to zero.
*v | The ABC_DQ0_NEG structure pointer |
Definition at line 79 of file abc_dq0_neg.h.
|
inlinestatic |
Runs ABC_DQ0_NEG routine.
*v | The ABC_DQ0_NEG structure pointer |
a | Phase a value |
b | Phase b value |
c | Phase c value |
sine_val | sine value of the grid angle |
cosine_val | cosine value of the grid angle |
Definition at line 97 of file abc_dq0_neg.h.
|
inlinestatic |
Resets internal data to zero.
*v | The ABC_DQ0_POS structure pointer |
Definition at line 78 of file abc_dq0_pos.h.
|
inlinestatic |
Run ABC_DQ0_POS routine.
*v | The ABC_DQ0_POS structure pointer |
a | Phase a value |
b | Phase b value |
c | Phase c value |
sine_val | sine value of the grid angle |
cosine_val | cosine value of the grid angle |
Definition at line 96 of file abc_dq0_pos.h.