Data Structures | Macros | Functions
dlog_4ch_f.h File Reference
#include "device.h"

Go to the source code of this file.

Data Structures

struct  DLOG_4CH_F
 

Macros

#define DLOG_4CH_F_MACRO(v)
 

Functions

void DLOG_4CH_F_init (DLOG_4CH_F *v)
 
void DLOG_4CH_F_FUNC (DLOG_4CH_F *v)
 

Macro Definition Documentation

◆ DLOG_4CH_F_MACRO

#define DLOG_4CH_F_MACRO (   v)
Value:
switch(v.status) \
{ \
case 1: /* wait for trigger*/ \
if(*v.input_ptr1>v.trig_value && v.prev_value<v.trig_value) \
{ \
/* rising edge detected start logging data*/ \
v.status=2; \
} \
break; \
case 2: \
v.skip_count++; \
if(v.skip_count==v.pre_scalar) \
{ \
v.skip_count=0; \
v.output_ptr1[v.count]=*v.input_ptr1; \
v.output_ptr2[v.count]=*v.input_ptr2; \
v.output_ptr3[v.count]=*v.input_ptr3; \
v.output_ptr4[v.count]=*v.input_ptr4; \
v.count++; \
if(v.count==v.size) \
{ \
v.count=0; \
v.status=1; \
} \
} \
break; \
default: \
v.status=0; \
} \
v.prev_value=*v.input_ptr1; \

Function Documentation

◆ DLOG_4CH_F_init()

void DLOG_4CH_F_init ( DLOG_4CH_F v)

◆ DLOG_4CH_F_FUNC()

void DLOG_4CH_F_FUNC ( DLOG_4CH_F v)

Copyright 2023, Texas Instruments Incorporated