/home/daqweb/fgddaq/c8051/temp36.h File Reference

Go to the source code of this file.

Data Structures

struct  EEPAGE

Defines

#define SST_LINE1   1
#define SST_LINE2   2
#define TAVGMAX   (int) 30
#define SERIALN_LENGTH   4
#define SERIALN_ADD   (PageAddr[3])
#define PAGE_SIZE   sizeof(eepage)
#define EEP_CTRL_KEY   0x3C000000
#define EEP_CTRL_READ   0x00110000
#define EEP_CTRL_WRITE   0x00220000
#define EEP_CTRL_INVAL_REQ   0xff000000
#define EEP_CTRL_INVAL_KEY   0x00ff0000
#define EEP_CTRL_OFF_RANGE   0x0000ff00
#define PAGE_SIZE   sizeof(eepage)
#define TEMPOFF_LAST_INDX   36
#define EEP_RW_IDX   4
#define humsen1   1
#define humsen2   2
#define First_DACIndex   90
#define Last_DACIndex   97
#define IDXEER   1
#define IDXCTL   2
#define IDXNAVG   5
#define IDXREF   47
#define IDXEEP_CTL   85
#define DONE   1
#define FAILED   0
#define SET   1
#define CLEAR   0

Variables

struct {
   unsigned long   SerialN
   unsigned int   error
   unsigned char   control
   unsigned char   status
   unsigned char   eepage
   unsigned int   navge
   unsigned char   terror [5]
   float   Temp [36]
   float   ref
   float   AT [36]
   unsigned long   eepValue
   long   eeCtrSet
   float   SHTtemp1
   float   SHThumi1
   float   SHTtemp2
   float   SHThumi2
   unsigned int   DAC [8]
user_data
unsigned char xdata ADT7486A_addrArray [] = {0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50}
unsigned char xdata Terrorclear [] = {0xFE, 0xFD, 0xFB, 0xF7, 0xEF, 0xDF, 0xBF, 0x7F}
unsigned char xdata Terrorset [] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}
float xdata Taverage [36][TAVGMAX]
unsigned int xdata PageAddr [] = {0x000, 0x200, 0x400, 0x600}
sbit SHT_GND1 = P1^2
sbit SHT_VDD1 = P1^1
sbit SHT_GND2 = P3^2
sbit SHT_VDD2 = P3^1
unsigned char bdata rCTL
sbit Cref = rCTL ^ 1
sbit CHum = rCTL ^ 2
sbit CeeS = rCTL ^ 4
sbit CeeR = rCTL ^ 5
sbit CeeClr = rCTL ^ 6
unsigned char bdata rCSR
sbit Sref = rCSR ^ 1
sbit SeeS = rCSR ^ 4
sbit SeeR = rCSR ^ 5
unsigned int bdata rESR
sbit err1 = rESR ^ 8
sbit err2 = rESR ^ 9
sbit err3 = rESR ^ 10
sbit err4 = rESR ^ 11
sbit err5 = rESR ^ 12
sbit err6 = rESR ^ 13
sbit err7 = rESR ^ 14
sbit err8 = rESR ^ 15
sbit uCT = rESR ^ 0
sbit err10 = rESR ^ 1
sbit err11 = rESR ^ 2
sbit err12 = rESR ^ 3
sbit RdssT = rESR ^ 4
sbit EEPROM = rESR ^ 5
sbit err15 = rESR ^ 6
sbit err16 = rESR ^ 7

Define Documentation

#define CLEAR   0

Definition at line 161 of file temp36.h.

#define DONE   1

Definition at line 158 of file temp36.h.

#define EEP_CTRL_INVAL_KEY   0x00ff0000

Definition at line 91 of file temp36.h.

#define EEP_CTRL_INVAL_REQ   0xff000000

Definition at line 90 of file temp36.h.

#define EEP_CTRL_KEY   0x3C000000

Definition at line 87 of file temp36.h.

#define EEP_CTRL_OFF_RANGE   0x0000ff00

Definition at line 92 of file temp36.h.

#define EEP_CTRL_READ   0x00110000

Definition at line 88 of file temp36.h.

#define EEP_CTRL_WRITE   0x00220000

Definition at line 89 of file temp36.h.

#define EEP_RW_IDX   4

Definition at line 95 of file temp36.h.

#define FAILED   0

Definition at line 159 of file temp36.h.

#define First_DACIndex   90

Definition at line 106 of file temp36.h.

#define humsen1   1

Definition at line 98 of file temp36.h.

#define humsen2   2

Definition at line 99 of file temp36.h.

#define IDXCTL   2

Definition at line 152 of file temp36.h.

#define IDXEEP_CTL   85

Definition at line 155 of file temp36.h.

#define IDXEER   1

Definition at line 151 of file temp36.h.

#define IDXNAVG   5

Definition at line 153 of file temp36.h.

#define IDXREF   47

Definition at line 154 of file temp36.h.

#define Last_DACIndex   97

Definition at line 107 of file temp36.h.

#define PAGE_SIZE   sizeof(eepage)

Definition at line 93 of file temp36.h.

#define PAGE_SIZE   sizeof(eepage)

Definition at line 93 of file temp36.h.

#define SERIALN_ADD   (PageAddr[3])

Definition at line 54 of file temp36.h.

#define SERIALN_LENGTH   4

Definition at line 53 of file temp36.h.

#define SET   1

Definition at line 160 of file temp36.h.

#define SST_LINE1   1

Definition at line 38 of file temp36.h.

#define SST_LINE2   2

Definition at line 39 of file temp36.h.

#define TAVGMAX   (int) 30

Definition at line 48 of file temp36.h.

#define TEMPOFF_LAST_INDX   36

Definition at line 94 of file temp36.h.


Variable Documentation

unsigned char xdata ADT7486A_addrArray[] = {0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50}

Definition at line 41 of file temp36.h.

float AT[36]

Definition at line 26 of file temp36.h.

sbit CeeClr = rCTL ^ 6

Definition at line 116 of file temp36.h.

sbit CeeR = rCTL ^ 5

Definition at line 115 of file temp36.h.

sbit CeeS = rCTL ^ 4

Definition at line 114 of file temp36.h.

sbit CHum = rCTL ^ 2

Definition at line 113 of file temp36.h.

unsigned char control

Definition at line 19 of file temp36.h.

sbit Cref = rCTL ^ 1

Definition at line 112 of file temp36.h.

unsigned int DAC[8]

Definition at line 33 of file temp36.h.

long eeCtrSet

Definition at line 28 of file temp36.h.

struct EEPAGE xdata eepage [read]
Initial value:
{

   0x00000000

 , 110

 , 10


 , 32, 48, 32, 32, 16, 16, 48, 16, 0, 16, 0, 0, 16, 32, 16, 32, -16, 32



 , 48, 32, 48, 64, 64, 32, 48, 64, 0, 16, 16, 32, 48, 48, 32, 32, 16, 32
}

Definition at line 21 of file temp36.h.

sbit EEPROM = rESR ^ 5

Definition at line 145 of file temp36.h.

unsigned long eepValue

Definition at line 27 of file temp36.h.

sbit err1 = rESR ^ 8

Definition at line 129 of file temp36.h.

sbit err10 = rESR ^ 1

Definition at line 140 of file temp36.h.

sbit err11 = rESR ^ 2

Definition at line 141 of file temp36.h.

sbit err12 = rESR ^ 3

Definition at line 142 of file temp36.h.

sbit err15 = rESR ^ 6

Definition at line 146 of file temp36.h.

sbit err16 = rESR ^ 7

Definition at line 147 of file temp36.h.

sbit err2 = rESR ^ 9

Definition at line 130 of file temp36.h.

sbit err3 = rESR ^ 10

Definition at line 131 of file temp36.h.

sbit err4 = rESR ^ 11

Definition at line 132 of file temp36.h.

sbit err5 = rESR ^ 12

Definition at line 134 of file temp36.h.

sbit err6 = rESR ^ 13

Definition at line 135 of file temp36.h.

sbit err7 = rESR ^ 14

Definition at line 136 of file temp36.h.

sbit err8 = rESR ^ 15

Definition at line 137 of file temp36.h.

unsigned int error

Definition at line 18 of file temp36.h.

unsigned int navge

Definition at line 22 of file temp36.h.

unsigned int xdata PageAddr[] = {0x000, 0x200, 0x400, 0x600}

Definition at line 52 of file temp36.h.

unsigned char bdata rCSR

Definition at line 119 of file temp36.h.

unsigned char bdata rCTL

Definition at line 111 of file temp36.h.

sbit RdssT = rESR ^ 4

Definition at line 144 of file temp36.h.

float ref

Definition at line 25 of file temp36.h.

unsigned int bdata rESR

Definition at line 128 of file temp36.h.

sbit SeeR = rCSR ^ 5

Definition at line 122 of file temp36.h.

sbit SeeS = rCSR ^ 4

Definition at line 121 of file temp36.h.

unsigned long SerialN

Definition at line 17 of file temp36.h.

sbit SHT_GND1 = P1^2

Definition at line 100 of file temp36.h.

sbit SHT_GND2 = P3^2

Definition at line 102 of file temp36.h.

sbit SHT_VDD1 = P1^1

Definition at line 101 of file temp36.h.

sbit SHT_VDD2 = P3^1

Definition at line 103 of file temp36.h.

float SHThumi1

Definition at line 30 of file temp36.h.

float SHThumi2

Definition at line 32 of file temp36.h.

float SHTtemp1

Definition at line 29 of file temp36.h.

float SHTtemp2

Definition at line 31 of file temp36.h.

sbit Sref = rCSR ^ 1

Definition at line 120 of file temp36.h.

unsigned char status

Definition at line 20 of file temp36.h.

float xdata Taverage[36][TAVGMAX]

Definition at line 49 of file temp36.h.

float Temp[36]

Definition at line 24 of file temp36.h.

unsigned char terror[5]

Definition at line 23 of file temp36.h.

unsigned char xdata Terrorclear[] = {0xFE, 0xFD, 0xFB, 0xF7, 0xEF, 0xDF, 0xBF, 0x7F}

Definition at line 44 of file temp36.h.

unsigned char xdata Terrorset[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}

Definition at line 47 of file temp36.h.

sbit uCT = rESR ^ 0

Definition at line 139 of file temp36.h.

struct { ... } user_data

Generated on 1 Feb 2022 for C8051-TEMP36 by  doxygen 1.6.1