Data Structures | |
struct | DLOG_4CH |
Defines the Four Channel Data Logger (DLOG_4CH) structure. More... | |
Functions | |
static void | DLOG_4CH_reset (DLOG_4CH *v) |
resets internal storage data More... | |
static void | DLOG_4CH_config (DLOG_4CH *v, float32_t *inputPtr1, float32_t *inputPtr2, float32_t *inputPtr3, float32_t *inputPtr4, float32_t *outputPtr1, float32_t *outputPtr2, float32_t *outputPtr3, float32_t *outputPtr4, float32_t size, float32_t trigValue, float32_t preScalar) |
Configures DLOG_4CH module. More... | |
static void | DLOG_4CH_run (DLOG_4CH *v) |
Run the DLOG_4CH module. More... | |
Typedefs | |
typedef float | float32_t |
typedef long double | float64_t |
Macros | |
#define | C2000_IEEE754_TYPES |
The Four Channel Data Logger (DLOG_4CH) API provides a set of functions that performs data logging to emulate an oscilloscope in software to graphically observe system variables.
This software module performs data logging over data stored in in a location pointed to by input_ptr 1-4. The input variable value is then stored in the array pointed to by output_ptr 1-4.
The data logger is triggered at the positive edge of the value pointed by the input pointer1. The trigger value is programmable by writing the trig_value to the module variable. The size of the data logger has to be specified and the module can be configured to log data every n number module call, by specifying a pre scalar value.
The following is a sequence of steps that can be followed to use the DLOG_4CH 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 using 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 incorporate this library into your project:
There is only one module in this package, the APIs can be referenced at DLOG_4CH. The module headers are located at dlog_4ch.h.
#define C2000_IEEE754_TYPES |
Definition at line 48 of file dlog_4ch.h.
typedef float float32_t |
Definition at line 53 of file dlog_4ch.h.
typedef long double float64_t |
Definition at line 54 of file dlog_4ch.h.
|
inlinestatic |
resets internal storage data
*v | The DLOG_4CH structure pointer |
Definition at line 87 of file dlog_4ch.h.
|
inlinestatic |
Configures DLOG_4CH module.
*v | The pointer to DLOG_4CH structure pointer |
input_ptr1 | Pointer to data being buffered in the first buffer |
input_ptr2 | Pointer to data being buffered in the second buffer |
input_ptr3 | Pointer to data being buffered in the third buffer |
input_ptr4 | Pointer to data being buffered in the fourth buffer |
output_ptr1 | Pointer to where first array of buffered data is stored |
output_ptr2 | Pointer to where second array of buffered data is stored |
output_ptr3 | Pointer to where third array of buffered data is stored |
output_ptr4 | Pointer to where fourth array of buffered data is stored |
size | Data buffer size |
trigValue | Trigger point for the datalogger |
preScalar | Variable to skip data logging points |
Definition at line 111 of file dlog_4ch.h.
|
inlinestatic |
Run the DLOG_4CH module.
*v | The DLOG_4CH structure pointer |
Definition at line 146 of file dlog_4ch.h.