no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
app.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef APP_H_
35#define APP_H_
36#include <stdint.h>
37#include <stdbool.h>
38#include "ad5940.h"
39
40struct eit_config {
41 uint16_t nElectrodeCnt;
42 uint16_t nForceDist;
43 uint16_t nSenseDist;
44 uint16_t nRefEl;
45};
46
48 uint16_t nFrequency; // Frequency of Excitation in Khz
49 uint16_t nAmplitudePP; // Amplitude of DAC output in mV
50 bool bMagnitudeMode; // If true, will return magnitude
51 // otherwise, will return
52 // comma-separated complex numbers
53 bool bImpedanceReadMode; // If true, it will measure Impedance
54 // otherwise, it will measure Voltage.
55 bool bSweepEn; // Enable Sweep Frequency
56};
57
58extern volatile uint32_t
59ucInterrupted; /* Flag to indicate interrupt occurred */
61int ADG2128_SwRst(struct ad5940_dev *dev);
62uint32_t GetMCUIntFlag(void);
63uint32_t ClrMCUIntFlag(void);
64void AD5940BiaStructInit(void);
65#endif /* APP_H_ */
int ADG2128_SwRst(struct ad5940_dev *dev)
Definition app.c:63
int app_main()
void AD5940BiaStructInit(void)
Definition app.c:291
uint32_t GetMCUIntFlag(void)
Definition app.c:72
uint32_t ClrMCUIntFlag(void)
Definition app.c:77
volatile uint32_t ucInterrupted
Definition app.c:58
Definition app.h:40
uint16_t nSenseDist
Definition app.h:43
uint16_t nElectrodeCnt
Definition app.h:41
uint16_t nForceDist
Definition app.h:42
uint16_t nRefEl
Definition app.h:44
Definition app.h:47
uint16_t nFrequency
Definition app.h:48
bool bMagnitudeMode
Definition app.h:50
uint16_t nAmplitudePP
Definition app.h:49
bool bImpedanceReadMode
Definition app.h:53
bool bSweepEn
Definition app.h:55