test

C code posted
created at 31 Dec 00:19

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
typedef struct {

        uint16_t        MAGIC;      // valid eeprom identifier
        uint8_t         VERSION;    // eeprom version

        uint8_t         RF_ID;      // node ID
        uint8_t         RF_NETWORK;    // network ID
        uint8_t         RF_NODETYPE;    // node type. Bitmask;
            // 0: TX/polling only, 1: perm. RX, 2: router
        char            RF_KEY[17];    // RF network encryption key
        int8_t          RF_PWR;                 // RF transmit power
        uint8_t         RF_PWRMODE;             // RFM W=0 HW=1
        uint8_t         RF_RETRAN;              // number of retransmissions
        uint8_t         RF_ACKTIME;             // ACK timeout

        uint8_t         PWR_MODE;               // BATT=0 PSU=1 RTC=2
        uint8_t         PWR_SLEEPTIME;    // Mains power sleep time
        uint16_t        PWR_SLEEPCNT;           // Mains power sleep count
        uint16_t        PWR_RBTInt;             // Reboot every # wakeups

        uint16_t        CALIB_VRef;             // Calibration VRef
        uint8_t         CALIB_VBATSamp;         // Calibration VBat samples
        uint8_t         CALIB_VCCSamp;          // Calibration Vcc samples
        uint8_t         CALIB_TempSamp;         // Calibration Vcc samples
        float           CALIB_TOffset;          // Calibration internal temp offset
        float           CALIB_TCoeff;           // Calibration internal temp coefficient
        float           CALIB_VBAT_R1;          // Calibration VBat resistor1 value
        float           CALIB_VBAT_R2;          // Calibration VBat resistor2 value

} eeprom_config, *peeprom_config;
1.63 KB in 2 ms with coderay