KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
shell_pv.c
1 /*
2  * KM3NeT CLB v2 Firmware
3  * ----------------------
4  *
5  * Copyright 2013 KM3NeT Collaboration
6  *
7  * All Rights Reserved.
8  *
9  *
10  * File : shell_pv.c
11  * Created : 6 mei 2014
12  * Author : Vincent van Beveren
13  */
14 #include <stdbool.h>
15 
16 #include "pv/vars.h"
17 #include "pv/access.h"
18 
19 const char cmd_pv_help[] = "List process variables";
20 
21 void listVariables()
22 {
23  int subsys, var;
24 
25  for (subsys = 0; subsys < SUBSYS_COUNT; ++subsys)
26  {
27  subsys_info_t * info = &subsys_info[subsys];
28 
29  printf("Subsystem %d has %d variables\n", subsys, subsys_info.count);
30  for (var = 0; var < subsys_info.count; ++var)
31  {
32  void * varPtr = subsys_info.ptrs[var];
33  printf(" - %08x: %-10s\n", subsys_info.ids[var], subsys_info.names[var]);
34 
35  }
36  }
37 }
38 
39 
40 bool cmd_pv_exec(int argc, const char *args[])
41 {
42 
43 
44  return true;
45 }
Access provides &#39;introspective&#39; access to process variables.