/home/daqweb/fgddaq/c8051/cmb.c File Reference
#include <stdio.h>
#include <math.h>
#include "mscbemb.h"
#include "cmb.h"
#include "Devices/adc_internal.h"
#include "Protocols/CMB_SPI_handler.h"
Go to the source code of this file.
Function Documentation
unsigned char CMB_SPI_ReadByte |
( |
unsigned char |
cmbinst |
) |
|
void CMB_SPI_WriteByte |
( |
unsigned char |
cmbinst, |
|
|
unsigned char |
cmbdata | |
|
) |
| | |
unsigned int NodeAdd_get |
( |
void |
|
) |
|
void publishCtlCsr |
( |
void |
|
) |
|
void publishErr |
( |
bit |
errbit |
) |
|
void PublishVariable |
( |
float xdata * |
pvarDest, |
|
|
float |
varSrce, |
|
|
bit |
errbit | |
|
) |
| | |
float read_voltage |
( |
unsigned char |
channel, |
|
|
unsigned int * |
rvalue, |
|
|
unsigned char |
gain | |
|
) |
| | |
void switchonoff |
( |
unsigned char |
command |
) |
|
unsigned char user_func |
( |
unsigned char * |
data_in, |
|
|
unsigned char * |
data_out | |
|
) |
| | |
void user_init |
( |
unsigned char |
init |
) |
|
unsigned char user_read |
( |
unsigned char |
index |
) |
|
void user_write |
( |
unsigned char |
index |
) |
|
Variable Documentation
Definition at line 49 of file cmb.c.
Definition at line 59 of file cmb.c.
Definition at line 61 of file cmb.c.
Definition at line 63 of file cmb.c.
Definition at line 41 of file cmb.c.
Definition at line 52 of file cmb.c.
Definition at line 43 of file cmb.c.
Definition at line 42 of file cmb.c.
Definition at line 55 of file cmb.c.
Definition at line 62 of file cmb.c.
Definition at line 37 of file cmb.c.
unsigned char xdata NodeOK = 0 |
Definition at line 54 of file cmb.c.
Definition at line 55 of file cmb.c.
Definition at line 53 of file cmb.c.
Definition at line 54 of file cmb.c.
Definition at line 38 of file cmb.c.
Definition at line 53 of file cmb.c.
Definition at line 44 of file cmb.c.
Definition at line 45 of file cmb.c.
MSCB_INFO_VAR code vars[] |
Definition at line 67 of file cmb.c.