[Firebug-cvs] fireboard/fireboard/sensors/adxl202je adxl.nc,1.1.1.1,1.2 adxl202je.h,1.1.1.1,1.2 adxl
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2004-03-26 00:50:18
|
Update of /cvsroot/firebug/fireboard/fireboard/sensors/adxl202je In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17017/adxl202je Modified Files: adxl.nc adxl202je.h adxlM.nc Log Message: Changed to HLSensor. Index: adxlM.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/sensors/adxl202je/adxlM.nc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** adxlM.nc 3 Feb 2004 20:06:44 -0000 1.3 --- adxlM.nc 26 Mar 2004 00:39:26 -0000 1.4 *************** *** 1,3 **** ! /* -*- Mode: C; c-basic-indent: 3; indent-tabs-mode: nil -*- */ /** --- 1,3 ---- ! /** *************** *** 34,38 **** provides { interface StdControl; ! interface Sensor; } --- 34,38 ---- provides { interface StdControl; ! interface HLSensor; } *************** *** 127,131 **** data_msg.ydata = ydata; } ! signal Sensor.dataReady(&data_msg); call AccelCmd.PowerSwitch(ACCEL_POWER_OFF); --- 127,131 ---- data_msg.ydata = ydata; } ! signal HLSensor.dataReady(&data_msg); call AccelCmd.PowerSwitch(ACCEL_POWER_OFF); *************** *** 152,203 **** } /////////////////////////////////////////////////////////// ! command result_t Sensor.powerOn() { return SUCCESS; } ! default event result_t Sensor.powerOnDone() { return SUCCESS; } ! command result_t Sensor.init() { return SUCCESS; } ! command result_t Sensor.powerOff() { return SUCCESS; } ! default event result_t Sensor.powerOffDone() { return SUCCESS; } ! command result_t Sensor.setSamplingInterval(uint16_t sampling_rate) { return SUCCESS; } ! command result_t Sensor.getSamplingInterval(uint16_t sampling_rate) { return SUCCESS; } ! command result_t Sensor.startSampling() { return SUCCESS; } ! command result_t Sensor.stopSampling() { return SUCCESS; } ! command result_t Sensor.sampleOnce() { return SUCCESS; } ! default event result_t Sensor.dataReady(void * userdata) { return SUCCESS; } ! async default event result_t Sensor.error(uint16_t) { return SUCCESS; } ! command result_t Sensor.loadProgram(uint8_t * program) { return SUCCESS; } --- 152,203 ---- } /////////////////////////////////////////////////////////// ! command result_t HLSensor.powerOn(uint8_t power_level) { return SUCCESS; } ! default event result_t HLSensor.powerOnDone() { return SUCCESS; } ! command result_t HLSensor.init() { return SUCCESS; } ! command result_t HLSensor.powerOff() { return SUCCESS; } ! default event result_t HLSensor.powerOffDone() { return SUCCESS; } ! command result_t HLSensor.setSamplingInterval(uint16_t sampling_rate) { return SUCCESS; } ! command result_t HLSensor.getSamplingInterval(uint16_t sampling_rate) { return SUCCESS; } ! command result_t HLSensor.startSampling() { return SUCCESS; } ! command result_t HLSensor.stopSampling() { return SUCCESS; } ! command result_t HLSensor.sampleOnce() { return SUCCESS; } ! default event result_t HLSensor.dataReady(void * userdata) { return SUCCESS; } ! async default event result_t HLSensor.error(uint16_t) { return SUCCESS; } ! command result_t HLSensor.loadProgram(uint8_t * program, uint8_t length) { return SUCCESS; } Index: adxl.nc =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/sensors/adxl202je/adxl.nc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** adxl.nc 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- adxl.nc 26 Mar 2004 00:39:26 -0000 1.2 *************** *** 1,4 **** - /* -*- Mode: C; c-basic-indent: 3; indent-tabs-mode: nil -*- */ - /** --- 1,2 ---- *************** *** 19,23 **** provides { interface StdControl; ! interface Sensor; } } --- 17,21 ---- provides { interface StdControl; ! interface HLSensor; } } *************** *** 37,41 **** adxlM.StdControl = StdControl; ! Sensor = adxlM; StdControl = TimerC; --- 35,39 ---- adxlM.StdControl = StdControl; ! HLSensor = adxlM; StdControl = TimerC; Index: adxl202je.h =================================================================== RCS file: /cvsroot/firebug/fireboard/fireboard/sensors/adxl202je/adxl202je.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** adxl202je.h 5 Jan 2004 21:03:27 -0000 1.1.1.1 --- adxl202je.h 26 Mar 2004 00:39:26 -0000 1.2 *************** *** 15,20 **** * @author David. M. Doolin */ ! ! typedef struct _adxl202je_data { --- 15,20 ---- * @author David. M. Doolin */ ! const uint8_t ADXL202JE_POWER_OFF = 0; ! const uint8_t ADXL202JE_POWER_ON = 1; typedef struct _adxl202je_data { |