/home/daqweb/fgddaq/c8051/feb64.c File Reference

#include <stdio.h>
#include <math.h>
#include "mscbemb.h"
#include "feb64.h"
#include "Devices/pca_internal.h"
#include "Devices/adc_internal.h"

Go to the source code of this file.

Functions

void publishCtlCsr (void)
void publishErr (bit errbit)
void publishAll ()
void PublishVariable (float xdata *pvarDest, float varSrce, bit errbit)
void updateAdc2Table (void)
unsigned int NodeAdd_get (void)
float read_voltage (unsigned char channel, unsigned int *rvalue, float coeff, float offset, unsigned char gain)
void switchonoff (unsigned char command)
void user_init (unsigned char init)
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)
void user_loop (void)

Variables

char code node_name [] = "FEB64"
char idata svn_rev_code [] = "$Rev: 1185 $"
unsigned char idata _n_sub_addr = 1
int xdata k
int xdata calState = 0
int xdata calCount = 0
float xdata calNumber = 10.0
char xdata calQpumpSave = 0
char xdata calSwSave = 0
unsigned long xdata currentTime = 0
unsigned long xdata sstTime = 0
unsigned long xdata sstExtTime = 0
unsigned long xdata calTime = 0
unsigned char xdata status
unsigned char xdata channel
unsigned char xdata chipAdd
unsigned char xdata chipChan
unsigned char xdata BiasIndex
unsigned char xdata AsumIndex
unsigned char xdata NodeOK = 0
unsigned char bdata bChange
sbit bCPupdoitNOW = bChange ^ 0
sbit bDacdoitNOW = bChange ^ 1
sbit PCA_Flag = bChange ^ 2
sbit LTC2600_Flag = bChange ^ 3
sbit LTC1665_Flag = bChange ^ 4
sbit LTC1669_Flag = bChange ^ 5
sbit EEP_CTR_Flag = bChange ^ 6
sbit CAsum_Flag = bChange ^ 7
sbit DACRESETN = P1 ^ 0
sbit PCARESETN = P1 ^ 2
sbit ASUM_SYNC = P1 ^ 7
sbit ASUM_TESTN = P1 ^ 6
sbit ASUM_PWDN = P1 ^ 5
sbit REG_EN = P3 ^ 2
MSCB_INFO_VAR code vars []
MSCB_INFO_VAR * variables = vars
SYS_INFO sys_info

Function Documentation

unsigned int NodeAdd_get ( void   ) 

Definition at line 381 of file feb64.c.

void publishAll (  ) 

Definition at line 334 of file feb64.c.

void publishCtlCsr ( void   ) 

Definition at line 316 of file feb64.c.

void publishErr ( bit  errbit  ) 

Definition at line 325 of file feb64.c.

void PublishVariable ( float xdata *  pvarDest,
float  varSrce,
bit  errbit 
)

Definition at line 343 of file feb64.c.

float read_voltage ( unsigned char  channel,
unsigned int *  rvalue,
float  coeff,
float  offset,
unsigned char  gain 
)

Definition at line 415 of file feb64.c.

void switchonoff ( unsigned char  command  ) 

Definition at line 441 of file feb64.c.

void updateAdc2Table ( void   ) 

Definition at line 353 of file feb64.c.

unsigned char user_func ( unsigned char *  data_in,
unsigned char *  data_out 
)

Definition at line 868 of file feb64.c.

void user_init ( unsigned char  init  ) 

Definition at line 606 of file feb64.c.

void user_loop ( void   ) 

Error mask

Definition at line 906 of file feb64.c.

unsigned char user_read ( unsigned char  index  ) 

Definition at line 860 of file feb64.c.

void user_write ( unsigned char  index  ) 

Definition at line 803 of file feb64.c.


Variable Documentation

unsigned char idata _n_sub_addr = 1

Definition at line 90 of file feb64.c.

sbit ASUM_PWDN = P1 ^ 5

Definition at line 123 of file feb64.c.

sbit ASUM_SYNC = P1 ^ 7

Definition at line 121 of file feb64.c.

sbit ASUM_TESTN = P1 ^ 6

Definition at line 122 of file feb64.c.

unsigned char xdata AsumIndex

Definition at line 98 of file feb64.c.

unsigned char bdata bChange

Definition at line 102 of file feb64.c.

sbit bCPupdoitNOW = bChange ^ 0

Definition at line 105 of file feb64.c.

sbit bDacdoitNOW = bChange ^ 1

Definition at line 106 of file feb64.c.

unsigned char xdata BiasIndex

Definition at line 98 of file feb64.c.

int xdata calCount = 0

Definition at line 93 of file feb64.c.

float xdata calNumber = 10.0

Definition at line 94 of file feb64.c.

char xdata calQpumpSave = 0

Definition at line 95 of file feb64.c.

int xdata calState = 0

Definition at line 93 of file feb64.c.

char xdata calSwSave = 0

Definition at line 95 of file feb64.c.

unsigned long xdata calTime = 0

Definition at line 96 of file feb64.c.

sbit CAsum_Flag = bChange ^ 7

Definition at line 114 of file feb64.c.

unsigned char xdata channel

Definition at line 97 of file feb64.c.

unsigned char xdata chipAdd

Definition at line 97 of file feb64.c.

unsigned char xdata chipChan

Definition at line 97 of file feb64.c.

unsigned long xdata currentTime = 0

Definition at line 96 of file feb64.c.

sbit DACRESETN = P1 ^ 0

Definition at line 117 of file feb64.c.

sbit EEP_CTR_Flag = bChange ^ 6

Definition at line 113 of file feb64.c.

int xdata k

Definition at line 93 of file feb64.c.

sbit LTC1665_Flag = bChange ^ 4

Definition at line 111 of file feb64.c.

sbit LTC1669_Flag = bChange ^ 5

Definition at line 112 of file feb64.c.

sbit LTC2600_Flag = bChange ^ 3

Definition at line 110 of file feb64.c.

char code node_name[] = "FEB64"

Definition at line 85 of file feb64.c.

unsigned char xdata NodeOK = 0

Definition at line 98 of file feb64.c.

sbit PCA_Flag = bChange ^ 2

Definition at line 109 of file feb64.c.

sbit PCARESETN = P1 ^ 2

Definition at line 118 of file feb64.c.

sbit REG_EN = P3 ^ 2

Definition at line 126 of file feb64.c.

unsigned long xdata sstExtTime = 0

Definition at line 96 of file feb64.c.

unsigned long xdata sstTime = 0

Definition at line 96 of file feb64.c.

unsigned char xdata status

Definition at line 97 of file feb64.c.

char idata svn_rev_code[] = "$Rev: 1185 $"

Definition at line 86 of file feb64.c.

SYS_INFO sys_info
MSCB_INFO_VAR* variables = vars

Definition at line 295 of file feb64.c.

MSCB_INFO_VAR code vars[]

Definition at line 130 of file feb64.c.


Generated on 1 Feb 2022 for FGDC8051-FEB64 by  doxygen 1.6.1