EIT application source. More...
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "no_os_delay.h"
#include "no_os_uart.h"
#include "no_os_spi.h"
#include "no_os_gpio.h"
#include "bia_measurement.h"
#include "mux_board.h"
#include "app.h"
#include "parameters.h"
Macros | |
#define | APPBUFF_SIZE 100 |
Functions | |
int | ADG2128_SwRst (struct ad5940_dev *dev) |
uint32_t | GetMCUIntFlag (void) |
uint32_t | ClrMCUIntFlag (void) |
void | configMeasurement (struct measurement_config *oldCfg, struct measurement_config newCfg) |
void | ParseResultMode (struct measurement_config *pMeasCfg) |
int32_t | ParseConfig (char *pStr, struct eit_config *pEitCfg, struct measurement_config *pMeasCfg) |
int32_t | ParseQuery (char *pStr, struct electrode_combo *pElCmb, struct measurement_config *pMeasCfg) |
void | SendResultUint32 (uint32_t *pData, uint32_t nDataCount) |
void | SendResultFloat32 (float *data, uint32_t DataCount) |
void | SendResultIeee754 (float *data, uint32_t DataCount) |
void | SendResult (uint32_t *pData, uint16_t len, bool bImpedanceReadMode, bool bMagnitudeMode) |
void | MuxSupportedElectrodeCounts () |
void | AD5940BiaStructInit (void) |
uint16_t | generateSwitchCombination (struct eit_config eitCfg, struct electrode_combo *swSeq) |
int | app_main (struct no_os_i2c_desc *i2c, struct ad5940_init_param *ad5940_ip) |
Variables | |
struct no_os_uart_desc * | uart |
uint32_t | AppBuff [APPBUFF_SIZE] |
struct electrode_combo | swComboSeq [256] |
float | SinFreqVal = 0.0 |
unsigned int | SinFreqValUINT = 0 |
unsigned int | runningCmd = 0 |
volatile uint32_t | ucInterrupted = 0 |
volatile unsigned char | szInSring [32] |
EIT application source.
Copyright 2022(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define APPBUFF_SIZE 100 |
void AD5940BiaStructInit | ( | void | ) |
int ADG2128_SwRst | ( | struct ad5940_dev * | dev | ) |
int app_main | ( | struct no_os_i2c_desc * | i2c, |
struct ad5940_init_param * | ad5940_ip ) |
uint32_t ClrMCUIntFlag | ( | void | ) |
void configMeasurement | ( | struct measurement_config * | oldCfg, |
struct measurement_config | newCfg ) |
uint16_t generateSwitchCombination | ( | struct eit_config | eitCfg, |
struct electrode_combo * | swSeq ) |
uint32_t GetMCUIntFlag | ( | void | ) |
void MuxSupportedElectrodeCounts | ( | ) |
int32_t ParseConfig | ( | char * | pStr, |
struct eit_config * | pEitCfg, | ||
struct measurement_config * | pMeasCfg ) |
int32_t ParseQuery | ( | char * | pStr, |
struct electrode_combo * | pElCmb, | ||
struct measurement_config * | pMeasCfg ) |
void ParseResultMode | ( | struct measurement_config * | pMeasCfg | ) |
void SendResultFloat32 | ( | float * | data, |
uint32_t | DataCount ) |
void SendResultIeee754 | ( | float * | data, |
uint32_t | DataCount ) |
void SendResultUint32 | ( | uint32_t * | pData, |
uint32_t | nDataCount ) |
uint32_t AppBuff[APPBUFF_SIZE] |
unsigned int runningCmd = 0 |
float SinFreqVal = 0.0 |
unsigned int SinFreqValUINT = 0 |
struct electrode_combo swComboSeq[256] |
|
extern |
|
extern |
volatile uint32_t ucInterrupted = 0 |