-
Notifications
You must be signed in to change notification settings - Fork 19
/
dlog4ch-PM_Sensorless.h
executable file
·58 lines (48 loc) · 2.48 KB
/
dlog4ch-PM_Sensorless.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* ============================================================================
File name: DLOG4CH-PM_Sensorless.h
Originator :Advanced Embeeded Control (AEC)
Texas Instruments Inc.
Description: Header file containing constants, data type definitions, and
function prototypes for the DATALOG module.
===============================================================================
History:
-------------------------------------------------------------------------------
18-5-2001 (DD/MM/YYYY) Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef __DLOG4CH_H__
#define __DLOG4CH_H__
#define NULL 0
typedef struct { long task; // Variable: Task address pointer
int *iptr1; // Input: First input pointer (Q15)
int *iptr2; // Input: Second input pointer (Q15)
int *iptr3; // Input: Third input pointer (Q15)
int *iptr4; // Input: Fourth input pointer (Q15)
int trig_value; // Input: Trigger point (Q15)
int prescalar; // Parameter: Data log prescale
int skip_cntr; // Variable: Data log skip counter
int cntr; // Variable: Data log counter
long write_ptr; // Variable: Graph address pointer
int size; // Parameter: Maximum data buffer
int (*init)(); // Pointer to init function
int (*update)(); // Pointer to update function
} DLOG_4CH;
typedef DLOG_4CH *DLOG_4CH_handle;
void DLOG_4CH_init(void *);
void DLOG_4CH_update(void *);
/*=============================================================================
Default initalizer for the DLOG_4CH object.
==============================================================================*/
#define DLOG_4CH_DEFAULTS { 0UL, \
NULL, \
NULL, \
NULL, \
NULL, \
0, \
1, \
0, \
0, \
0UL, \
0x0C0, \
(int (*)(int))DLOG_4CH_init, \
(int (*)(int))DLOG_4CH_update }
#endif