#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mscbemb.h"
Go to the source code of this file.
Defines | |
#define | FIRST_DAQ 18 |
#define | LAST_DAQ FIRST_DAQ + 8 |
#define | N_CHANNEL 4 |
#define | VREF 2.4986f |
#define | CONVER_FAC1 65536.0f |
#define | CONVER_FAC2 131072.0f |
#define | CLEAR 0 |
#define | PCA_OUT 0x00 |
#define | PCA_INDEX 1 |
#define | SST_LINE 1 |
#define | P1_DATA P1 |
Functions | |
void | user_write (unsigned char index) reentrant |
void | user_init (unsigned char init) |
unsigned char | user_read (unsigned char index) |
unsigned char | user_func (unsigned char *data_in, unsigned char *data_out) |
void | user_loop (void) |
Variables | |
char code | node_name [] = "GENERIC310_REV1" |
char idata | svn_rev_code [] = "$Rev: 57 $" |
unsigned char idata | _n_sub_addr = 1 |
SYS_INFO | sys_info |
unsigned char xdata | ADT7486A_addrArray [] = {0x48, 0x4A} |
unsigned char xdata | ADDR_LTC2489 [] = {0x24, 0x17} |
unsigned char xdata | DAQ_ADDRESS = 0x42 |
unsigned char xdata | PCA9536_ADD = 0x41 |
unsigned char xdata | FCS_Mismatch |
unsigned char xdata | BiasIndex |
unsigned char bdata | bChange |
sbit | LTC2605_Flag = bChange ^ 0 |
sbit | PCA9536_Flag = bChange ^ 1 |
unsigned char bdata | rErr |
sbit | adc = rErr ^ 0 |
sbit | INTtemp = rErr ^ 1 |
sbit | EXTtemp = rErr ^ 2 |
struct { | |
unsigned char error | |
unsigned char pca9536 | |
float volt [8] | |
signed long adc [8] | |
unsigned int daq [8] | |
float intemp [2] | |
float temp [4] | |
} | user_data |
MSCB_INFO_VAR code | vars [] |
MSCB_INFO_VAR * | variables = vars |
char xdata | flag = 0 |
sbit | LED_GREEN = LED_1 |
sbit | LED_RED = LED_0 |
sbit | SST = MSCB_SST1 |
sbit | P1_0 = P1 ^ 0 |
sbit | P1_1 = P1 ^ 1 |
sbit | P1_2 = P1 ^ 2 |
sbit | P1_3 = P1 ^ 3 |
sbit | P1_4 = P1 ^ 4 |
sbit | P1_5 = P1 ^ 5 |
sbit | P1_6 = P1 ^ 6 |
sbit | P1_7 = P1 ^ 7 |
sbit | P2_0 = P2 ^ 0 |
sbit | P2_1 = P2 ^ 1 |
sbit | P2_2 = P2 ^ 2 |
sbit | P2_3 = P2 ^ 3 |
sbit | P2_4 = P2 ^ 4 |
sbit | P2_5 = P2 ^ 5 |
sbit | P0_1 = P0 ^ 1 |
sbit | P0_2 = P0 ^ 2 |
#define CLEAR 0 |
Definition at line 61 of file Generic_SST_DAC_EEPROM.c.
#define CONVER_FAC1 65536.0f |
Definition at line 59 of file Generic_SST_DAC_EEPROM.c.
#define CONVER_FAC2 131072.0f |
Definition at line 60 of file Generic_SST_DAC_EEPROM.c.
#define FIRST_DAQ 18 |
Definition at line 55 of file Generic_SST_DAC_EEPROM.c.
#define LAST_DAQ FIRST_DAQ + 8 |
Definition at line 56 of file Generic_SST_DAC_EEPROM.c.
#define N_CHANNEL 4 |
Definition at line 57 of file Generic_SST_DAC_EEPROM.c.
#define P1_DATA P1 |
Definition at line 138 of file Generic_SST_DAC_EEPROM.c.
#define PCA_INDEX 1 |
Definition at line 63 of file Generic_SST_DAC_EEPROM.c.
#define PCA_OUT 0x00 |
Definition at line 62 of file Generic_SST_DAC_EEPROM.c.
#define SST_LINE 1 |
Definition at line 64 of file Generic_SST_DAC_EEPROM.c.
#define VREF 2.4986f |
Definition at line 58 of file Generic_SST_DAC_EEPROM.c.
unsigned char user_func | ( | unsigned char * | data_in, | |
unsigned char * | data_out | |||
) |
Definition at line 281 of file Generic_SST_DAC_EEPROM.c.
void user_init | ( | unsigned char | init | ) |
Definition at line 167 of file Generic_SST_DAC_EEPROM.c.
void user_loop | ( | void | ) |
Definition at line 296 of file Generic_SST_DAC_EEPROM.c.
unsigned char user_read | ( | unsigned char | index | ) |
Definition at line 272 of file Generic_SST_DAC_EEPROM.c.
void user_write | ( | unsigned char | index | ) |
Definition at line 255 of file Generic_SST_DAC_EEPROM.c.
unsigned char idata _n_sub_addr = 1 |
Definition at line 43 of file Generic_SST_DAC_EEPROM.c.
Definition at line 72 of file Generic_SST_DAC_EEPROM.c.
unsigned char xdata ADDR_LTC2489[] = {0x24, 0x17} |
Definition at line 48 of file Generic_SST_DAC_EEPROM.c.
unsigned char xdata ADT7486A_addrArray[] = {0x48, 0x4A} |
Definition at line 47 of file Generic_SST_DAC_EEPROM.c.
unsigned char bdata bChange |
Definition at line 66 of file Generic_SST_DAC_EEPROM.c.
unsigned char xdata BiasIndex |
Definition at line 53 of file Generic_SST_DAC_EEPROM.c.
unsigned int daq[8] |
Definition at line 86 of file Generic_SST_DAC_EEPROM.c.
unsigned char xdata DAQ_ADDRESS = 0x42 |
Definition at line 49 of file Generic_SST_DAC_EEPROM.c.
unsigned char error |
Definition at line 82 of file Generic_SST_DAC_EEPROM.c.
Definition at line 74 of file Generic_SST_DAC_EEPROM.c.
unsigned char xdata FCS_Mismatch |
Definition at line 52 of file Generic_SST_DAC_EEPROM.c.
char xdata flag = 0 |
Definition at line 129 of file Generic_SST_DAC_EEPROM.c.
float intemp[2] |
Definition at line 87 of file Generic_SST_DAC_EEPROM.c.
Definition at line 73 of file Generic_SST_DAC_EEPROM.c.
sbit LED_GREEN = LED_1 |
Definition at line 139 of file Generic_SST_DAC_EEPROM.c.
sbit LED_RED = LED_0 |
Definition at line 140 of file Generic_SST_DAC_EEPROM.c.
sbit LTC2605_Flag = bChange ^ 0 |
Definition at line 67 of file Generic_SST_DAC_EEPROM.c.
char code node_name[] = "GENERIC310_REV1" |
Definition at line 39 of file Generic_SST_DAC_EEPROM.c.
sbit P0_1 = P0 ^ 1 |
Definition at line 158 of file Generic_SST_DAC_EEPROM.c.
sbit P0_2 = P0 ^ 2 |
Definition at line 159 of file Generic_SST_DAC_EEPROM.c.
sbit P1_0 = P1 ^ 0 |
Definition at line 143 of file Generic_SST_DAC_EEPROM.c.
sbit P1_1 = P1 ^ 1 |
Definition at line 144 of file Generic_SST_DAC_EEPROM.c.
sbit P1_2 = P1 ^ 2 |
Definition at line 145 of file Generic_SST_DAC_EEPROM.c.
sbit P1_3 = P1 ^ 3 |
Definition at line 146 of file Generic_SST_DAC_EEPROM.c.
sbit P1_4 = P1 ^ 4 |
Definition at line 147 of file Generic_SST_DAC_EEPROM.c.
sbit P1_5 = P1 ^ 5 |
Definition at line 148 of file Generic_SST_DAC_EEPROM.c.
sbit P1_6 = P1 ^ 6 |
Definition at line 149 of file Generic_SST_DAC_EEPROM.c.
sbit P1_7 = P1 ^ 7 |
Definition at line 150 of file Generic_SST_DAC_EEPROM.c.
sbit P2_0 = P2 ^ 0 |
Definition at line 152 of file Generic_SST_DAC_EEPROM.c.
sbit P2_1 = P2 ^ 1 |
Definition at line 153 of file Generic_SST_DAC_EEPROM.c.
sbit P2_2 = P2 ^ 2 |
Definition at line 154 of file Generic_SST_DAC_EEPROM.c.
sbit P2_3 = P2 ^ 3 |
Definition at line 155 of file Generic_SST_DAC_EEPROM.c.
sbit P2_4 = P2 ^ 4 |
Definition at line 156 of file Generic_SST_DAC_EEPROM.c.
sbit P2_5 = P2 ^ 5 |
Definition at line 157 of file Generic_SST_DAC_EEPROM.c.
unsigned char pca9536 |
Definition at line 83 of file Generic_SST_DAC_EEPROM.c.
unsigned char xdata PCA9536_ADD = 0x41 |
Definition at line 50 of file Generic_SST_DAC_EEPROM.c.
sbit PCA9536_Flag = bChange ^ 1 |
Definition at line 68 of file Generic_SST_DAC_EEPROM.c.
unsigned char bdata rErr |
Definition at line 71 of file Generic_SST_DAC_EEPROM.c.
sbit SST = MSCB_SST1 |
Definition at line 141 of file Generic_SST_DAC_EEPROM.c.
char idata svn_rev_code[] = "$Rev: 57 $" |
Definition at line 40 of file Generic_SST_DAC_EEPROM.c.
SYS_INFO sys_info |
float temp[4] |
Definition at line 88 of file Generic_SST_DAC_EEPROM.c.
struct { ... } user_data |
Definition at line 127 of file Generic_SST_DAC_EEPROM.c.
MSCB_INFO_VAR code vars[] |
Definition at line 91 of file Generic_SST_DAC_EEPROM.c.
float volt[8] |
Definition at line 84 of file Generic_SST_DAC_EEPROM.c.