aboutsummaryrefslogtreecommitdiff
path: root/libarmep/libarmep.h
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-10-14 12:56:57 +0800
committerAndy Green <andy.green@linaro.org>2012-10-14 13:40:56 +0800
commitbadb9cf4e9f0afee1a25254ddb0f0178a624cb10 (patch)
tree561993d498566a2ae417eae70d8f50efdbe62970 /libarmep/libarmep.h
parent93a3d0724c9bc593d6759d80fdbc430151afab36 (diff)
config allow virtual summing supplies in config
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'libarmep/libarmep.h')
-rw-r--r--libarmep/libarmep.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libarmep/libarmep.h b/libarmep/libarmep.h
index 49e0b31..4377b0a 100644
--- a/libarmep/libarmep.h
+++ b/libarmep/libarmep.h
@@ -60,6 +60,7 @@
#define IGNORE_NEG_PRIOR_TO_SAMPLES 500
#define NEGATIVE_ADJUST_SCALING_FACTOR 0.1
+#define MAX_VIRTUAL_CHANNELS 8
struct avg_mean_us {
unsigned short *ring;
@@ -237,12 +238,13 @@ struct aep_shared {
int head;
int tail;
struct aep_result aep_result[1000];
- char channel_name[MAX_PROBES * CHANNELS_PER_PROBE][64];
- char channel_name_pretty[MAX_PROBES * CHANNELS_PER_PROBE][64];
- char supply[MAX_PROBES * CHANNELS_PER_PROBE][64];
- char colour[MAX_PROBES * CHANNELS_PER_PROBE][16];
- char class[MAX_PROBES * CHANNELS_PER_PROBE][16];
+ char channel_name[MAX_VIRTUAL_CHANNELS + MAX_PROBES * CHANNELS_PER_PROBE][64];
+ char channel_name_pretty[MAX_VIRTUAL_CHANNELS + MAX_PROBES * CHANNELS_PER_PROBE][64];
+ char supply[MAX_VIRTUAL_CHANNELS + MAX_PROBES * CHANNELS_PER_PROBE][64];
+ char colour[MAX_VIRTUAL_CHANNELS + MAX_PROBES * CHANNELS_PER_PROBE][16];
+ char class[MAX_VIRTUAL_CHANNELS + MAX_PROBES * CHANNELS_PER_PROBE][16];
int chans;
+ int vchans; /* appear after probed physical channels in the arrays*/
int finished;
double averages[MAX_PROBES * CHANNELS_PER_PROBE][3];
double min[MAX_PROBES * CHANNELS_PER_PROBE][3];
@@ -252,6 +254,8 @@ struct aep_shared {
struct aep_context {
struct aep aeps[MAX_PROBES];
+ struct aep_channel vch[MAX_VIRTUAL_CHANNELS];
+ int count_virtual_channels;
int auto_zero;
char config_filepath[256];
char configuration_name[64];