![Logo](ti_logo.svg) |
AM263x Motor Control SDK
09.02.00
|
|
Go to the documentation of this file.
49 #include "../dcl_common.h"
57 typedef enum dcl_mlog_states
82 #define MLOG_DEFAULTS { { FDLOG_DEFAULTS, FDLOG_DEFAULTS, FDLOG_DEFAULTS, FDLOG_DEFAULTS }, \
83 { 0x0, 0x0, 0x0, 0x0 }, \
84 0.1, -0.1, 1, 1, MLOG_invalid }
102 DCL_initLog(&(q->captFrame[i]), (addr + i*size), size);
150 if (--(q->sCount) != 0)
170 if ((*(q->data[0]) > q->trigMax) || (*(q->data[0]) < q->trigMin))
183 if (q->captFrame[0].dptr == q->captFrame[0].fptr)
197 q->sCount = q->tScale;
207 #endif // _DCL_MLOG_H_
float32_t trigMax
Upper trigger threshold.
Definition: dcl_mlog.h:72
float32_t * data[MLOG_CHANS]
Data channel pointers.
Definition: dcl_mlog.h:71
DCL_mlog_states
Enumerated MLOG operating modes.
Definition: dcl_mlog.h:58
@ MLOG_COMPLETE
Full data frame captured and available for read-out.
Definition: dcl_mlog.h:63
_DCL_CODE_ACCESS void DCL_resetMLOG(DCL_MLOG *q)
Resets the MLOG module: clears all frame buffers and sets idle mode.
Definition: dcl_mlog.h:118
_DCL_CODE_ACCESS float32_t DCL_writeLog(DCL_FDLOG *buf, float32_t data)
Writes a data point into the buffer and advances the indexing pointer, wrapping if necessary....
Definition: dcl_fdlog.h:183
@ MLOG_ARMED
Armed: capturing monitor frame data and waiting for trigger.
Definition: dcl_mlog.h:61
_DCL_CODE_ACCESS void DCL_initLog(DCL_FDLOG *buf, float32_t *addr, uint32_t size)
Assigns the buffer pointers to a memory block or array and sets the data index pointer to the first a...
Definition: dcl_fdlog.h:165
DCL_FDLOG captFrame[MLOG_CHANS]
Capture data frames.
Definition: dcl_mlog.h:70
_DCL_VOLATILE struct dcl_mlog DCL_MLOG
#define _DCL_CODE_ACCESS
Defines the scope of dcl functions.
Definition: dcl_common.h:63
_DCL_CODE_ACCESS uint16_t DCL_runMLOG(DCL_MLOG *q)
Runs the MLOG module.
Definition: dcl_mlog.h:147
@ MLOG_IDLE
Memory initialised but module not armed.
Definition: dcl_mlog.h:60
#define DCL_clearLog(buf)
Clears the buffer contents by writing 0 to all elements and resets the data index pointer to the star...
Definition: dcl_fdlog.h:155
@ MLOG_INVALID
Buffer pointers not initialised.
Definition: dcl_mlog.h:59
_DCL_CODE_ACCESS uint16_t DCL_armMLOG(DCL_MLOG *q)
Changes the MLOG mode to "MLOG_ARMED". Only valid if current operating mode is "MLOG_IDLE".
Definition: dcl_mlog.h:135
float32_t trigMin
Lower trigger threshold.
Definition: dcl_mlog.h:73
uint32_t sCount
Sample counter.
Definition: dcl_mlog.h:75
_DCL_VOLATILE struct dcl_mlog MLOG
_DCL_VOLATILE struct dcl_fdlog DCL_FDLOG
_DCL_CODE_ACCESS void DCL_initMLOG(DCL_MLOG *q, float32_t *addr, uint32_t size, float32_t tmax, float32_t tmin, uint32_t div)
Initializes the MLOG module.
Definition: dcl_mlog.h:96
#define MLOG_CHANS
Defines the number of MLOG channels.
Definition: dcl_mlog.h:53
#define _DCL_VOLATILE
Defines volatile for DCL strctures.
Definition: dcl_common.h:79
@ MLOG_CAPTURE
Triggered: logging data into capture frame.
Definition: dcl_mlog.h:62
Defines the MLOG structure.
Definition: dcl_mlog.h:69
Defines a 32-bit floating-point data logger strcture and related functions.
uint32_t mode
Operating mode.
Definition: dcl_mlog.h:76
float float32_t
Definition: dcl_common.h:58
uint32_t tScale
Number of samples per log write.
Definition: dcl_mlog.h:74