dlog4ch-HVBLDC_Sensored.h 2.9 KB

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