#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mscbemb.h"
Go to the source code of this file.
Defines | |
#define | SST_LINE 1 |
#define | P1_DATA P1 |
Functions | |
float | avge (float temperature, char chan, int idx) |
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 | |
unsigned long | _systime |
char code | node_name [] = "GENERIC310_SST" |
char idata | svn_rev_code [] = "$Rev: 1096 $" |
unsigned char idata | _n_sub_addr = 1 |
SYS_INFO | sys_info |
unsigned char | ADT7486A_addrArray [] = {0x48, 0x4a} |
struct { | |
unsigned char status | |
unsigned char error | |
float internal [2] | |
char ncount | |
float temp [8] | |
float SHTtemp | |
float SHThumid | |
unsigned int rSHTtemp | |
unsigned int rSHThumid | |
unsigned char FCSorig | |
unsigned char FCSdevi | |
float ext01off | |
float ext02off | |
float ext11off | |
float ext12off | |
} | user_data |
MSCB_INFO_VAR code | vars [] |
MSCB_INFO_VAR * | variables = vars |
char | 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 | RH_VCC = P1 ^ 2 |
sbit | P1_3 = P1 ^ 3 |
sbit | P1_4 = P1 ^ 4 |
sbit | RH_GND = 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 |
sbit | P1_OEn = P0 ^ 7 |
sbit | P2_OEn = P3 ^ 4 |
#define P1_DATA P1 |
Definition at line 116 of file Generic_SST_SHT.c.
#define SST_LINE 1 |
Definition at line 37 of file Generic_SST_SHT.c.
float avge | ( | float | temperature, | |
char | chan, | |||
int | idx | |||
) |
Definition at line 295 of file Generic_SST_SHT.c.
unsigned char user_func | ( | unsigned char * | data_in, | |
unsigned char * | data_out | |||
) |
Definition at line 286 of file Generic_SST_SHT.c.
void user_init | ( | unsigned char | init | ) |
Definition at line 149 of file Generic_SST_SHT.c.
void user_loop | ( | void | ) |
Definition at line 311 of file Generic_SST_SHT.c.
unsigned char user_read | ( | unsigned char | index | ) |
Definition at line 277 of file Generic_SST_SHT.c.
void user_write | ( | unsigned char | index | ) |
Definition at line 267 of file Generic_SST_SHT.c.
unsigned char idata _n_sub_addr = 1 |
Definition at line 40 of file Generic_SST_SHT.c.
unsigned long _systime |
unsigned char ADT7486A_addrArray[] = {0x48, 0x4a} |
Definition at line 42 of file Generic_SST_SHT.c.
unsigned char error |
Definition at line 60 of file Generic_SST_SHT.c.
float ext01off |
Definition at line 70 of file Generic_SST_SHT.c.
float ext02off |
Definition at line 70 of file Generic_SST_SHT.c.
float ext11off |
Definition at line 70 of file Generic_SST_SHT.c.
float ext12off |
Definition at line 70 of file Generic_SST_SHT.c.
unsigned char FCSdevi |
Definition at line 69 of file Generic_SST_SHT.c.
unsigned char FCSorig |
Definition at line 68 of file Generic_SST_SHT.c.
char flag = 0 |
Definition at line 107 of file Generic_SST_SHT.c.
float internal[2] |
Definition at line 61 of file Generic_SST_SHT.c.
sbit LED_GREEN = LED_1 |
Definition at line 117 of file Generic_SST_SHT.c.
sbit LED_RED = LED_0 |
Definition at line 118 of file Generic_SST_SHT.c.
char ncount |
Definition at line 62 of file Generic_SST_SHT.c.
char code node_name[] = "GENERIC310_SST" |
Definition at line 33 of file Generic_SST_SHT.c.
sbit P0_1 = P0 ^ 1 |
Definition at line 138 of file Generic_SST_SHT.c.
sbit P0_2 = P0 ^ 2 |
Definition at line 139 of file Generic_SST_SHT.c.
sbit P1_0 = P1 ^ 0 |
Definition at line 121 of file Generic_SST_SHT.c.
sbit P1_1 = P1 ^ 1 |
Definition at line 122 of file Generic_SST_SHT.c.
sbit P1_2 = P1 ^ 2 |
Definition at line 123 of file Generic_SST_SHT.c.
sbit P1_3 = P1 ^ 3 |
Definition at line 125 of file Generic_SST_SHT.c.
sbit P1_4 = P1 ^ 4 |
Definition at line 126 of file Generic_SST_SHT.c.
sbit P1_5 = P1 ^ 5 |
Definition at line 128 of file Generic_SST_SHT.c.
sbit P1_6 = P1 ^ 6 |
Definition at line 129 of file Generic_SST_SHT.c.
sbit P1_7 = P1 ^ 7 |
Definition at line 130 of file Generic_SST_SHT.c.
sbit P1_OEn = P0 ^ 7 |
Definition at line 141 of file Generic_SST_SHT.c.
sbit P2_0 = P2 ^ 0 |
Definition at line 132 of file Generic_SST_SHT.c.
sbit P2_1 = P2 ^ 1 |
Definition at line 133 of file Generic_SST_SHT.c.
sbit P2_2 = P2 ^ 2 |
Definition at line 134 of file Generic_SST_SHT.c.
sbit P2_3 = P2 ^ 3 |
Definition at line 135 of file Generic_SST_SHT.c.
sbit P2_4 = P2 ^ 4 |
Definition at line 136 of file Generic_SST_SHT.c.
sbit P2_5 = P2 ^ 5 |
Definition at line 137 of file Generic_SST_SHT.c.
sbit P2_OEn = P3 ^ 4 |
Definition at line 142 of file Generic_SST_SHT.c.
sbit RH_GND = P1 ^ 4 |
Definition at line 127 of file Generic_SST_SHT.c.
sbit RH_VCC = P1 ^ 2 |
Definition at line 124 of file Generic_SST_SHT.c.
unsigned int rSHThumid |
Definition at line 67 of file Generic_SST_SHT.c.
unsigned int rSHTtemp |
Definition at line 66 of file Generic_SST_SHT.c.
float SHThumid |
Definition at line 65 of file Generic_SST_SHT.c.
float SHTtemp |
Definition at line 64 of file Generic_SST_SHT.c.
sbit SST = MSCB_SST1 |
Definition at line 119 of file Generic_SST_SHT.c.
unsigned char status |
Definition at line 59 of file Generic_SST_SHT.c.
char idata svn_rev_code[] = "$Rev: 1096 $" |
Definition at line 34 of file Generic_SST_SHT.c.
SYS_INFO sys_info |
float temp[8] |
Definition at line 63 of file Generic_SST_SHT.c.
struct { ... } user_data |
Definition at line 105 of file Generic_SST_SHT.c.
MSCB_INFO_VAR code vars[] |
Definition at line 73 of file Generic_SST_SHT.c.