Go to the source code of this file.
Data Structures | |
struct | EEPAGE |
struct | user_data_type |
Defines | |
#define | VREF 2.455f |
#define | ADT7486A_address 0x48 |
#define | SST_LINE1 1 |
#define | SST_TIME (unsigned long) 1 |
#define | TEMP_TIME (unsigned long) 2 |
#define | ON 1 |
#define | DONE 1 |
#define | SET 1 |
#define | OFF 0 |
#define | FAILED 0 |
#define | CLEAR 0 |
#define | IGAIN1 0 |
#define | IGAIN2 1 |
#define | IGAIN4 2 |
#define | IGAIN8 3 |
#define | IGAIN16 4 |
#define | SERIALN_LENGTH 4 |
#define | SERIALN_ADD (PageAddr[3]) |
#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 | EEP_RW_IDX 0x02 |
#define | IDXEER 1 |
#define | IDXCTL 2 |
#define | IDXEEP_CTL 27 |
#define | UFTEMPERATURE_MASK (unsigned int) 0x0300 |
#define | BTEMPERATURE_MASK (unsigned int) 0x0C00 |
#define | VOLTAGE_MASK (unsigned int) 0x00FE |
#define | CURRENT_MASK (unsigned int) 0x0001 |
Functions | |
void | user_init (unsigned char init) |
void | user_loop (void) |
void | user_write (unsigned char index) reentrant |
unsigned char | user_read (unsigned char index) |
unsigned char | user_func (unsigned char *data_in, unsigned char *data_out) |
float | read_voltage (unsigned char channel, unsigned int *rvalue, unsigned char gain) |
Variables | |
unsigned int xdata | PageAddr [] = {0x000, 0x200, 0x400, 0x600} |
struct EEPAGE xdata | eepage |
struct EEPAGE xdata | eepage2 |
unsigned char bdata | rCTL |
sbit | CPup = rCTL ^ 0 |
sbit | CXclk = rCTL ^ 1 |
sbit | Ccfg = rCTL ^ 2 |
sbit | Cdeb1 = rCTL ^ 3 |
sbit | CeeS = rCTL ^ 4 |
sbit | CeeR = rCTL ^ 5 |
sbit | CeeClr = rCTL ^ 6 |
sbit | CmSd = rCTL ^ 7 |
unsigned char bdata | rCSR |
sbit | SPup = rCSR ^ 0 |
sbit | SXclk = rCSR ^ 1 |
sbit | SLinkOn = rCSR ^ 2 |
sbit | Swdog = rCSR ^ 3 |
sbit | SeeS = rCSR ^ 4 |
sbit | SeeR = rCSR ^ 5 |
sbit | SsS = rCSR ^ 6 |
sbit | SmSd = rCSR ^ 7 |
unsigned int bdata | rESR |
sbit | DI4mon = rESR ^ 8 |
sbit | DV4mon = rESR ^ 9 |
sbit | AV33mon = rESR ^ 10 |
sbit | AV25mon = rESR ^ 11 |
sbit | DV15mon = rESR ^ 12 |
sbit | DV18mon = rESR ^ 13 |
sbit | DV25mon = rESR ^ 14 |
sbit | DV33mon = rESR ^ 15 |
sbit | uCT = rESR ^ 0 |
sbit | FPGAssTT = rESR ^ 1 |
sbit | Vreg1ssTT = rESR ^ 2 |
sbit | Vreg2ssTT = rESR ^ 3 |
sbit | RdssT = rESR ^ 4 |
sbit | EEPROM = rESR ^ 5 |
sbit | AsumLock = rESR ^ 6 |
sbit | V4_OC = rESR ^ 7 |
float code | coeff [8] = {1.901, 2.000 , 1.426, 1.426, 1.0, 1.0, 1.426, 1.426} |
float code | offset [8] = {0.000, 0.0, 0.0, 0.0 , 0.0, 0.0, 0.0 , 0.0} |
struct user_data_type xdata | user_data |
float read_voltage | ( | unsigned char | channel, | |
unsigned int * | rvalue, | |||
unsigned char | gain | |||
) |
unsigned char user_func | ( | unsigned char * | data_in, | |
unsigned char * | data_out | |||
) |
float code coeff[8] = {1.901, 2.000 , 1.426, 1.426, 1.0, 1.0, 1.426, 1.426} |
float code offset[8] = {0.000, 0.0, 0.0, 0.0 , 0.0, 0.0, 0.0 , 0.0} |
struct user_data_type xdata user_data |