Difference between revisions of "Configuration Structures"

From lechacal
Jump to: navigation, search
(C0)
(D0)
(3 intermediate revisions by one user not shown)
Line 12: Line 12:
 
'''Hardware''': RPICT3T1 RPICT3V1
 
'''Hardware''': RPICT3T1 RPICT3V1
  
<syntaxhighlight lang="C" line='line'>
+
struct config_A2_t
struct config_A2_t
+
{
{
+
 
   char KEY[4];
 
   char KEY[4];
 
   byte VERSION = 0xA2;
 
   byte VERSION = 0xA2;
Line 26: Line 25:
 
   uint8_t N_cycles;
 
   uint8_t N_cycles;
 
   uint8_t debug;
 
   uint8_t debug;
};
+
};
</syntaxhighlight>
+
  
 
=B0=
 
=B0=
Line 41: Line 39:
 
'''Hardware''': RPICT7V1 version 2&3; RPICT8 version 1&3; RPICT4V3 versions 2&3; RPI_LCT4V3
 
'''Hardware''': RPICT7V1 version 2&3; RPICT8 version 1&3; RPICT4V3 versions 2&3; RPI_LCT4V3
  
<syntaxhighlight lang="C" line='line'>
+
 
struct config_B4_t
+
struct config_B4_t
{
+
{
 
   char KEY[4];
 
   char KEY[4];
 
   byte VERSION = 0xB4;
 
   byte VERSION = 0xB4;
Line 63: Line 61:
 
   byte CH_id[MAX_CHANNELS_];
 
   byte CH_id[MAX_CHANNELS_];
 
   uint8_t debug;
 
   uint8_t debug;
};
+
};
</syntaxhighlight>
+
  
 
=C0=
 
=C0=
Line 74: Line 71:
 
'''Hardware''': Emonwrt3
 
'''Hardware''': Emonwrt3
  
<syntaxhighlight lang="C" line='line'>
+
 
struct config_D0_t
+
struct config_D0_t
{
+
{
 
   char KEY[4];
 
   char KEY[4];
 
   uint8_t VERSION;
 
   uint8_t VERSION;
Line 90: Line 87:
 
   uint8_t CH_type[MAX_CHANNELS_];
 
   uint8_t CH_type[MAX_CHANNELS_];
 
   uint8_t CH_id[MAX_CHANNELS_];
 
   uint8_t CH_id[MAX_CHANNELS_];
};
+
};
</syntaxhighlight>
+

Revision as of 17:32, 7 November 2019

A0

Hardware: RPICT3V1; RPICT3T1; RPICT4T4

A1

Hardware: RPICT3V1

A2

Hardware: RPICT3T1 RPICT3V1

struct config_A2_t
{
 char KEY[4];
 byte VERSION = 0xA2;
 byte FORMAT;
 byte NODEID;
 unsigned int POLLING;
 float KCAL[8];
 uint8_t PHASECAL;
 float VEST;
 uint8_t xpFREQ;
 uint8_t N_cycles;
 uint8_t debug;
};

B0

B1

B2

B3

B4

Hardware: RPICT7V1 version 2&3; RPICT8 version 1&3; RPICT4V3 versions 2&3; RPI_LCT4V3


struct config_B4_t
{
 char KEY[4];
 byte VERSION = 0xB4;
 byte FORMAT;
 byte NODEID;
 unsigned int POLLING;
 float KCAL[N_MAX_BOARD][N_SENSORS];
 int8_t PHASECAL;
 float VEST;
 uint8_t xpFREQ;
 uint8_t N_cycles;
 byte N_nodes;
 byte N_channels;
 byte HW_sct[MAX_NODES];
 byte HW_mcp_sct[MAX_NODES];
 byte HW_vol[MAX_NODES];
 byte HW_mcp_vol[MAX_NODES];
 byte CH_type[MAX_CHANNELS_];
 byte CH_id[MAX_CHANNELS_];
 uint8_t debug;
};

C0

Hardware: RPIZ_CT4V3T1

D0

Hardware: Emonwrt3


struct config_D0_t
{
 char KEY[4];
 uint8_t VERSION;
 uint8_t FORMAT;
 uint8_t NODEID;
 unsigned long POLLING;
 float KCAL[N_SENSORS];
 float VEST;
 uint8_t N_nodes;
 uint8_t N_channels;
 uint8_t HW_sct[MAX_NODES];
 uint8_t HW_vol[MAX_NODES];
 uint8_t CH_type[MAX_CHANNELS_];
 uint8_t CH_id[MAX_CHANNELS_];
};