NewAskSin
 All Classes Files Functions Variables Groups Pages
Public Attributes | List of all members
EE::s_cnlTbl Struct Reference

Channel Table Entry. More...

#include <EEprom.h>

Public Attributes

const uint8_t cnl
 Channel.
 
const uint8_t lst
 List within the channel.
 
const uint8_t sIdx
 Index of first entry in channel slice address definition.
 
const uint8_t sLen
 Number of registers.
 
const uint16_t pAddr
 Address of first byte in EEprom memory.
 

Detailed Description

Channel Table Entry.

This structure is used in the channels definition, where all existing channels are assigned with channel slice address information and EEprom addresses, where actual register data is to be stored.

For each channel

const uint8_t cnlAddr[] PROGMEM = {
0x02, 0x05, 0x0a, 0x0b, 0x0c, 0x14, 0x24, 0x25, 0x26, 0x27, // sIdx 0x00, 10 bytes for Channel0/List0
0x01, // sIdx 0x0a, 1 byte for Channel1/List4
}; // 11 byte
EE::s_cnlTbl cnlTbl[] = {
// cnl, lst, sIdx, sLen, pAddr;
{ 0, 0, 0x00, 10, 0x000f }, // Channel0/List0, 10 bytes at sIdx 0x00, Addr 0x000f
{ 1, 4, 0x0a, 1, 0x0019 }, // Channel1/List4, 1 byte at sIdx 0x0a, Addr 0x0019
};
Note
The number of entries in the list EE::s_cnlTbl cnlTbl must match the number of channels specified in EE::s_devDef devDef.

For other configuration data stored in EEprom memory, see s_peerTbl.


The documentation for this struct was generated from the following file: