⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app.c

📁 针对wsn网络
💻 C
📖 第 1 页 / 共 5 页
字号:
  TOS_I32PS = 31, TOS_S32PS = 3,   TOS_I16PS = 63, TOS_S16PS = 3,   TOS_I8PS = 127, TOS_S8PS = 3,   TOS_I4PS = 255, TOS_S4PS = 3,   TOS_I2PS = 15, TOS_S2PS = 7,   TOS_I1PS = 31, TOS_S1PS = 7,   TOS_I0PS = 0, TOS_S0PS = 0};enum __nesc_unnamed4264 {  DEFAULT_SCALE = 3, DEFAULT_INTERVAL = 127};# 45 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/sensorboard.h"enum __nesc_unnamed4265 {  TOSH_ACTUAL_PHOTO_PORT = 1,   TOSH_ACTUAL_TEMP_PORT = 1,   TOSH_ACTUAL_MIC_PORT = 2,   TOSH_ACTUAL_ACCEL_X_PORT = 3,   TOSH_ACTUAL_ACCEL_Y_PORT = 4,   TOSH_ACTUAL_MAG_X_PORT = 6,   TOSH_ACTUAL_MAG_Y_PORT = 5};enum __nesc_unnamed4266 {  TOS_ADC_PHOTO_PORT = 1,   TOS_ADC_TEMP_PORT = 2,   TOS_ADC_MIC_PORT = 3,   TOS_ADC_ACCEL_X_PORT = 4,   TOS_ADC_ACCEL_Y_PORT = 5,   TOS_ADC_MAG_X_PORT = 6,   TOS_ADC_MAG_Y_PORT = 8};enum __nesc_unnamed4267 {  TOS_MAG_POT_ADDR = 0,   TOS_MIC_POT_ADDR = 1};static __inline void TOSH_SET_PHOTO_CTL_PIN(void);#line 73static __inline void TOSH_CLR_PHOTO_CTL_PIN(void);#line 73static __inline void TOSH_MAKE_PHOTO_CTL_OUTPUT(void);#line 73static __inline void TOSH_MAKE_PHOTO_CTL_INPUT(void);static __inline void TOSH_SET_TEMP_CTL_PIN(void);#line 74static __inline void TOSH_CLR_TEMP_CTL_PIN(void);#line 74static __inline void TOSH_MAKE_TEMP_CTL_OUTPUT(void);#line 74static __inline void TOSH_MAKE_TEMP_CTL_INPUT(void);# 31 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/crc.h"uint16_t __attribute((__progmem__)) crcTable[256] = { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de, 0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485, 0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d, 0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4, 0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc, 0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, 0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, 0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, 0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256, 0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, 0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405, 0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c, 0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634, 0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab, 0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3, 0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, 0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92, 0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, 0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0 };static inline uint16_t crcByte(uint16_t oldCrc, uint8_t byte);# 8 "C:/tinyos/cygwin/opt/tinyos-1.x/contrib/xbow/tos/lib/FunnelingMAC/FunnelingMAC.h"enum __nesc_unnamed4268 {  AM_TOKENRING = 31,   AM_PTOKENRING = 32,   AM_DATA = 33};typedef struct RETURNTOKENRING_Msg {  uint8_t sourceaddr;  uint8_t denaddr;} __attribute((packed))  RETURNTOKENRING_Msg;typedef struct TOKENRINGMsg {  uint8_t sourceaddr;  uint8_t denaddr;  uint8_t isstart;} __attribute((packed))  TOKENRINGMsg;static  result_t PotM$Pot$init(uint8_t arg_0xa304160);static  result_t HPLPotC$Pot$finalise(void);static  result_t HPLPotC$Pot$decrease(void);static  result_t HPLPotC$Pot$increase(void);static  result_t HPLInit$init(void);static   result_t SurgeM$Light$dataReady(uint16_t arg_0xa36b7b0);static  result_t SurgeM$TimerS$fired(void);static  result_t SurgeM$SendMsg$sendDone(TOS_MsgPtr arg_0xa34a060, result_t arg_0xa34a1b0);static   result_t SurgeM$Temperature$dataReady(uint16_t arg_0xa36b7b0);static  result_t SurgeM$StdControl$init(void);static  result_t SurgeM$StdControl$start(void);static  result_t SurgeM$TimerT$fired(void);static   result_t TimerM$Clock$fire(void);static  result_t TimerM$StdControl$init(void);static  result_t TimerM$StdControl$start(void);static  result_t TimerM$Timer$default$fired(uint8_t arg_0xa37a900);static  result_t TimerM$Timer$start(uint8_t arg_0xa37a900, char arg_0xa33b420, uint32_t arg_0xa33b578);static  result_t TimerM$Timer$stop(uint8_t arg_0xa37a900);static   void HPLClock$Clock$setInterval(uint8_t arg_0xa38cbe8);static   uint8_t HPLClock$Clock$readCounter(void);static   result_t HPLClock$Clock$setRate(char arg_0xa38c0e8, char arg_0xa38c228);static   uint8_t HPLClock$Clock$getInterval(void);static   result_t NoLeds$Leds$greenToggle(void);static   uint8_t HPLPowerManagementM$PowerManagement$adjustPower(void);static   result_t LedsC$Leds$init(void);static   result_t LedsC$Leds$greenOff(void);static   result_t LedsC$Leds$redOff(void);static   result_t LedsC$Leds$greenToggle(void);static   result_t LedsC$Leds$redToggle(void);static   result_t LedsC$Leds$redOn(void);static   result_t LedsC$Leds$greenOn(void);static  result_t PhotoTempM$PhotoTempTimer$fired(void);static  result_t PhotoTempM$PhotoStdControl$init(void);static  result_t PhotoTempM$PhotoStdControl$start(void);static   result_t PhotoTempM$InternalTempADC$dataReady(uint16_t arg_0xa36b7b0);static  result_t PhotoTempM$TempStdControl$init(void);static  result_t PhotoTempM$TempStdControl$start(void);static   result_t PhotoTempM$ExternalTempADC$getData(void);static   result_t PhotoTempM$ExternalPhotoADC$getData(void);static   result_t PhotoTempM$InternalPhotoADC$dataReady(uint16_t arg_0xa36b7b0);static   result_t ADCREFM$HPLADC$dataReady(uint16_t arg_0xa475638);static   result_t ADCREFM$CalADC$default$dataReady(uint8_t arg_0xa4624e0, uint16_t arg_0xa36b7b0);static  result_t ADCREFM$ADCControl$bindPort(uint8_t arg_0xa4329a8, uint8_t arg_0xa432af0);static  result_t ADCREFM$ADCControl$init(void);static   result_t ADCREFM$ADCControl$manualCalibrate(void);static   result_t ADCREFM$ADC$getData(uint8_t arg_0xa467e20);static   result_t ADCREFM$ADC$default$dataReady(uint8_t arg_0xa467e20, uint16_t arg_0xa36b7b0);static  result_t ADCREFM$Timer$fired(void);static   result_t HPLADCM$ADC$bindPort(uint8_t arg_0xa4744e0, uint8_t arg_0xa474628);static   result_t HPLADCM$ADC$init(void);static   result_t HPLADCM$ADC$samplePort(uint8_t arg_0xa474b10);static  TOS_MsgPtr AMPromiscuous$ReceiveMsg$default$receive(uint8_t arg_0xa4a5158, TOS_MsgPtr arg_0xa4a6380);static  result_t AMPromiscuous$ActivityTimer$fired(void);static  result_t AMPromiscuous$UARTSend$sendDone(TOS_MsgPtr arg_0xa4bb218, result_t arg_0xa4bb368);static  TOS_MsgPtr AMPromiscuous$RadioReceive$receive(TOS_MsgPtr arg_0xa4a6380);static  result_t AMPromiscuous$CommControl$setPromiscuous(bool arg_0xa4aa210);static  result_t AMPromiscuous$Control$init(void);static  result_t AMPromiscuous$Control$start(void);static  result_t AMPromiscuous$default$sendDone(void);static  result_t AMPromiscuous$RadioSend$sendDone(TOS_MsgPtr arg_0xa4bb218, result_t arg_0xa4bb368);static  result_t AMPromiscuous$SendMsg$send(uint8_t arg_0xa4a4ba0, uint16_t arg_0xa35f990, uint8_t arg_0xa35fad8, TOS_MsgPtr arg_0xa35fc28);static  result_t AMPromiscuous$SendMsg$default$sendDone(uint8_t arg_0xa4a4ba0, TOS_MsgPtr arg_0xa34a060, result_t arg_0xa34a1b0);static  TOS_MsgPtr AMPromiscuous$UARTReceive$receive(TOS_MsgPtr arg_0xa4a6380);static  result_t CC1000RadioIntM$SquelchTimer$fired(void);static  result_t CC1000RadioIntM$Send$send(TOS_MsgPtr arg_0xa4bad00);static   result_t CC1000RadioIntM$SpiByteFifo$dataReady(uint8_t arg_0xa50aee8);static  result_t CC1000RadioIntM$WakeupTimer$fired(void);static   void CC1000RadioIntM$RadioReceiveCoordinator$default$byte(TOS_MsgPtr arg_0xa4f0b80, uint8_t arg_0xa4f0cd0);static   void CC1000RadioIntM$RadioReceiveCoordinator$default$blockTimer(void);static   void CC1000RadioIntM$RadioReceiveCoordinator$default$startSymbol(uint8_t arg_0xa4f0470, uint8_t arg_0xa4f05b8, TOS_MsgPtr arg_0xa4f0708);static   void CC1000RadioIntM$RadioSendCoordinator$default$byte(TOS_MsgPtr arg_0xa4f0b80, uint8_t arg_0xa4f0cd0);static   void CC1000RadioIntM$RadioSendCoordinator$default$blockTimer(void);static   void CC1000RadioIntM$RadioSendCoordinator$default$startSymbol(uint8_t arg_0xa4f0470, uint8_t arg_0xa4f05b8, TOS_MsgPtr arg_0xa4f0708);static  result_t CC1000RadioIntM$StdControl$init(void);static  result_t CC1000RadioIntM$StdControl$start(void);static   result_t CC1000RadioIntM$RSSIADC$dataReady(uint16_t arg_0xa36b7b0);static   int16_t CC1000RadioIntM$MacBackoff$default$initialBackoff(TOS_MsgPtr arg_0xa4efd70);static   int16_t CC1000RadioIntM$MacBackoff$default$congestionBackoff(TOS_MsgPtr arg_0xa4ea1a8);static  bool CC1000ControlM$CC1000Control$GetLOStatus(void);static  result_t CC1000ControlM$CC1000Control$TunePreset(uint8_t arg_0xa4e5e40);static   result_t CC1000ControlM$CC1000Control$RxMode(void);static  result_t CC1000ControlM$CC1000Control$BIASOn(void);static   result_t CC1000ControlM$CC1000Control$TxMode(void);static  result_t CC1000ControlM$CC1000Control$SelectLock(uint8_t arg_0xa4f4210);static  result_t CC1000ControlM$StdControl$init(void);static  result_t CC1000ControlM$StdControl$start(void);static  result_t CC1000ControlM$StdControl$stop(void);static  result_t HPLCC1000M$HPLCC1000$init(void);static   uint8_t HPLCC1000M$HPLCC1000$read(uint8_t arg_0xa57ab40);static   result_t HPLCC1000M$HPLCC1000$write(uint8_t arg_0xa57a588, uint8_t arg_0xa57a6d0);static   uint16_t RandomLFSR$Random$rand(void);static   result_t RandomLFSR$Random$init(void);static   result_t HPLSpiM$SpiByteFifo$initSlave(void);static   result_t HPLSpiM$SpiByteFifo$disableIntr(void);static   result_t HPLSpiM$SpiByteFifo$writeByte(uint8_t arg_0xa5116f0);static   result_t HPLSpiM$SpiByteFifo$enableIntr(void);static   result_t HPLSpiM$SpiByteFifo$txMode(void);static   result_t HPLSpiM$SpiByteFifo$rxMode(void);static   result_t FramerM$ByteComm$txDone(void);static   result_t FramerM$ByteComm$txByteReady(bool arg_0xa5d1cc8);static   result_t FramerM$ByteComm$rxByteReady(uint8_t arg_0xa5d14f8, bool arg_0xa5d1640, uint16_t arg_0xa5d1798);static  result_t FramerM$BareSendMsg$send(TOS_MsgPtr arg_0xa4bad00);static  result_t FramerM$StdControl$init(void);static  result_t FramerM$StdControl$start(void);static  result_t FramerM$TokenReceiveMsg$ReflectToken(uint8_t arg_0xa5d3468);static  TOS_MsgPtr FramerAckM$ReceiveMsg$receive(TOS_MsgPtr arg_0xa4a6380);static  TOS_MsgPtr FramerAckM$TokenReceiveMsg$receive(TOS_MsgPtr arg_0xa5d2d08, uint8_t arg_0xa5d2e50);static   result_t UARTM$HPLUART$get(uint8_t arg_0xa63ef80);static   result_t UARTM$HPLUART$putDone(void);static   result_t UARTM$ByteComm$txByte(uint8_t arg_0xa5d1068);static  result_t UARTM$Control$init(void);static  result_t UARTM$Control$start(void);static   result_t HPLUART0M$UART$init(void);static   result_t HPLUART0M$UART$put(uint8_t arg_0xa63ea80);static  TOS_MsgPtr FunnelingMACM$ReceiveMsg$receive(uint8_t arg_0xa678bd0, TOS_MsgPtr arg_0xa4a6380);static  result_t FunnelingMACM$SendMsgT$sendDone(TOS_MsgPtr arg_0xa34a060, result_t arg_0xa34a1b0);static  result_t FunnelingMACM$Timerringout$fired(void);static  result_t FunnelingMACM$SendMsgD$sendDone(TOS_MsgPtr arg_0xa34a060, result_t arg_0xa34a1b0);static  result_t FunnelingMACM$SendMsg$send(uint16_t arg_0xa35f990, uint8_t arg_0xa35fad8, TOS_MsgPtr arg_0xa35fc28);static  result_t FunnelingMACM$SendMsgPT$sendDone(TOS_MsgPtr arg_0xa34a060, result_t arg_0xa34a1b0);static  result_t FunnelingMACM$StdControl$init(void);static  result_t FunnelingMACM$StdControl$start(void);static  # 47 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc"result_t RealMain$hardwareInit(void);static  # 78 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Pot.nc"result_t RealMain$Pot$init(uint8_t arg_0xa304160);static  # 63 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t RealMain$StdControl$init(void);static  result_t RealMain$StdControl$start(void);# 54 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc"int   main(void);static  # 74 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"result_t PotM$HPLPot$finalise(void);static  #line 59result_t PotM$HPLPot$decrease(void);static  result_t PotM$HPLPot$increase(void);# 91 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/PotM.nc"uint8_t PotM$potSetting;static inline void PotM$setPot(uint8_t value);static inline  #line 106result_t PotM$Pot$init(uint8_t initialSetting);static inline  # 57 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLPotC.nc"result_t HPLPotC$Pot$decrease(void);static inline  result_t HPLPotC$Pot$increase(void);static inline  result_t HPLPotC$Pot$finalise(void);static inline  # 57 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc"result_t HPLInit$init(void);static  # 63 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t SurgeM$PhotoControl$init(void);static  result_t SurgeM$PhotoControl$start(void);static   # 52 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t SurgeM$Light$getData(void);static  # 63 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t SurgeM$TempControl$init(void);static  result_t SurgeM$TempControl$start(void);static  # 59 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t SurgeM$TimerS$start(char arg_0xa33b420, uint32_t arg_0xa33b578);static   # 56 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"result_t SurgeM$Leds$init(void);static  # 48 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/SendMsg.nc"result_t SurgeM$SendMsg$send(uint16_t arg_0xa35f990, uint8_t arg_0xa35fad8, TOS_MsgPtr arg_0xa35fc28);static   # 52 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t SurgeM$Temperature$getData(void);static  # 59 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t SurgeM$TimerT$start(char arg_0xa33b420, uint32_t arg_0xa33b578);# 28 "SurgeM.nc"uint8_t SurgeM$BASE_STATION_ADDR = 0;enum SurgeM$__nesc_unnamed4269 {  SurgeM$TIMER_GETADC_COUNT = 3};enum SurgeM$__nesc_unnamed4270 {#line 33  SurgeM$SENSOR_ID = 0, SurgeM$PACKET_ID, SurgeM$NODE_ID = 2, SurgeM$RSVD,   SurgeM$VREF = 4, SurgeM$THERM = 6, SurgeM$PHOTO = 8, SurgeM$MIC = 10,   SurgeM$ACCEL_X = 12, SurgeM$ACCEL_Y = 14, SurgeM$MAG_X = 16, SurgeM$MAG_Y = 18};#line 36TOS_Msg SurgeM$gMsgBuffer;TOS_MsgPtr SurgeM$sensorVALUE = &SurgeM$gMsgBuffer;int SurgeM$timer_rate;int SurgeM$timer_ticks;static void SurgeM$initialize(void);static inline  void SurgeM$SendData(void);static inline  result_t SurgeM$StdControl$init(void);static inline  result_t SurgeM$StdControl$start(void);static inline  #line 92result_t SurgeM$TimerS$fired(void);static inline  result_t SurgeM$TimerT$fired(void);static inline   #line 113result_t SurgeM$Temperature$dataReady(uint16_t data);static inline   #line 125result_t SurgeM$Light$dataReady(uint16_t data);static inline  result_t SurgeM$SendMsg$sendDone(TOS_MsgPtr pMsg, result_t success);static   # 41 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/PowerManagement.nc"uint8_t TimerM$PowerManagement$adjustPower(void);static   # 105 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"void TimerM$Clock$setInterval(uint8_t arg_0xa38cbe8);static   #line 153uint8_t TimerM$Clock$readCounter(void);static   #line 96result_t TimerM$Clock$setRate(char arg_0xa38c0e8, char arg_0xa38c228);static   #line 121uint8_t TimerM$Clock$getInterval(void);static  # 73 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t TimerM$Timer$fired(# 49 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/TimerM.nc"uint8_t arg_0xa37a900);uint32_t TimerM$mState;uint8_t TimerM$setIntervalFlag;uint8_t TimerM$mScale;#line 61uint8_t TimerM$mInterval;int8_t TimerM$queue_head;int8_t TimerM$queue_tail;uint8_t TimerM$queue_size;uint8_t TimerM$queue[NUM_TIMERS];volatile uint16_t TimerM$interval_outstanding;struct TimerM$timer_s {  uint8_t type;  int32_t ticks;  int32_t ticksLeft;} TimerM$mTimerList[NUM_TIMERS];enum TimerM$__nesc_unnamed4271 {  TimerM$maxTimerInterval = 230};static  result_t TimerM$StdControl$init(void);static inline  result_t TimerM$StdControl$start(void);static  result_t TimerM$Timer$start(uint8_t id, char type, uint32_t interval);#line 129static void TimerM$adjustInterval(void);static  #line 168result_t TimerM$Timer$stop(uint8_t id);static inline   #line 182result_t TimerM$Timer$default$fired(uint8_t id);static inline void TimerM$enqueue(uint8_t value);static inline uint8_t TimerM$dequeue(void);static inline  void TimerM$signalOneTimer(void);static inline  void TimerM$HandleFire(void);static inline   #line 253result_t TimerM$Clock$fire(void);static   # 180 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"result_t HPLClock$Clock$fire(void);# 54 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica/HPLClock.nc"uint8_t HPLClock$set_flag;uint8_t HPLClock$mscale;#line 55uint8_t HPLClock$nextScale;#line 55uint8_t HPLClock$minterval;static inline   #line 87void HPLClock$Clock$setInterval(uint8_t value);static inline   uint8_t HPLClock$Clock$getInterval(void);static inline   #line 134uint8_t HPLClock$Clock$readCounter(void);static inline   #line 149result_t HPLClock$Clock$setRate(char interval, char scale);#line 167void __attribute((interrupt))   __vector_15(void);static inline   # 75 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/NoLeds.nc"result_t NoLeds$Leds$greenToggle(void);# 51 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLPowerManagementM.nc"bool HPLPowerManagementM$disabled = TRUE;enum HPLPowerManagementM$__nesc_unnamed4272 {  HPLPowerManagementM$IDLE = 0,   HPLPowerManagementM$ADC_NR = 1 << 3,   HPLPowerManagementM$POWER_DOWN = 1 << 4,   HPLPowerManagementM$POWER_SAVE = (1 << 3) + (1 << 4),   HPLPowerManagementM$STANDBY = (1 << 2) + (1 << 4),   HPLPowerManagementM$EXT_STANDBY = (1 << 3) + (1 << 4) + (1 << 2)};static inline uint8_t HPLPowerManagementM$getPowerLevel(void);static inline  #line 84void HPLPowerManagementM$doAdjustment(void);static   #line 101uint8_t HPLPowerManagementM$PowerManagement$adjustPower(void);# 50 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"uint8_t LedsC$ledsOn;enum LedsC$__nesc_unnamed4273 {  LedsC$RED_BIT = 1,   LedsC$GREEN_BIT = 2,   LedsC$YELLOW_BIT = 4};static   result_t LedsC$Leds$init(void);static inline   #line 72result_t LedsC$Leds$redOn(void);static inline   result_t LedsC$Leds$redOff(void);static   result_t LedsC$Leds$redToggle(void);static inline   result_t LedsC$Leds$greenOn(void);static inline   result_t LedsC$Leds$greenOff(void);static inline   result_t LedsC$Leds$greenToggle(void);static  # 59 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t PhotoTempM$PhotoTempTimer$start(char arg_0xa33b420, uint32_t arg_0xa33b578);static  result_t PhotoTempM$PhotoTempTimer$stop(void);static   # 52 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t PhotoTempM$InternalTempADC$getData(void);static  # 116 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCControl.nc"result_t PhotoTempM$ADCControl$bindPort(uint8_t arg_0xa4329a8, uint8_t arg_0xa432af0);static  #line 77result_t PhotoTempM$ADCControl$init(void);static  # 63 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t PhotoTempM$TimerControl$init(void);static   # 70 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t PhotoTempM$ExternalTempADC$dataReady(uint16_t arg_0xa36b7b0);static   #line 70result_t PhotoTempM$ExternalPhotoADC$dataReady(uint16_t arg_0xa36b7b0);static   #line 52result_t PhotoTempM$InternalPhotoADC$getData(void);# 111 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/sensorboards/micasb/PhotoTempM.nc"enum PhotoTempM$__nesc_unnamed4274 {  PhotoTempM$sensorIdle = 0,   PhotoTempM$sensorPhotoStarting,   PhotoTempM$sensorPhotoReady,   PhotoTempM$sensorTempStarting,   PhotoTempM$sensorTempReady} PhotoTempM$hardwareStatus;typedef enum PhotoTempM$__nesc_unnamed4275 {  PhotoTempM$stateIdle = 0,   PhotoTempM$stateReadOnce,   PhotoTempM$stateContinuous} PhotoTempM$SensorState_t;PhotoTempM$SensorState_t PhotoTempM$photoSensor;PhotoTempM$SensorState_t PhotoTempM$tempSensor;bool PhotoTempM$waitingForSample;static  result_t PhotoTempM$PhotoStdControl$init(void);static inline  result_t PhotoTempM$PhotoStdControl$start(void);static inline  #line 158result_t PhotoTempM$TempStdControl$init(void);static inline  result_t PhotoTempM$TempStdControl$start(void);static  #line 183void PhotoTempM$getSample(void);static inline  #line 291result_t PhotoTempM$PhotoTempTimer$fired(void);static inline   #line 329result_t PhotoTempM$ExternalPhotoADC$getData(void);static inline   result_t PhotoTempM$ExternalTempADC$getData(void);static inline   #line 357result_t PhotoTempM$InternalPhotoADC$dataReady(uint16_t data);static inline   #line 379result_t PhotoTempM$InternalTempADC$dataReady(uint16_t data);static   # 70 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"result_t ADCREFM$HPLADC$bindPort(uint8_t arg_0xa4744e0, uint8_t arg_0xa474628);static   #line 54result_t ADCREFM$HPLADC$init(void);static   #line 77result_t ADCREFM$HPLADC$samplePort(uint8_t arg_0xa474b10);static   # 70 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t ADCREFM$CalADC$dataReady(# 67 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"uint8_t arg_0xa4624e0, # 70 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa36b7b0);static   #line 70result_t ADCREFM$ADC$dataReady(# 66 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"uint8_t arg_0xa467e20, # 70 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa36b7b0);# 80 "C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"enum ADCREFM$__nesc_unnamed4276 {  ADCREFM$IDLE = 0,   ADCREFM$SINGLE_CONVERSION = 1,   ADCREFM$CONTINUOUS_CONVERSION = 2};uint16_t ADCREFM$ReqPort;uint16_t ADCREFM$ReqVector;uint16_t ADCREFM$ContReqMask;uint16_t ADCREFM$CalReqMask;uint32_t ADCREFM$RefVal;static inline  void ADCREFM$CalTask(void);static  result_t ADCREFM$ADCControl$init(void);static inline  #line 114result_t ADCREFM$ADCControl$bindPort(uint8_t port, uint8_t adcPort);static inline    result_t ADCREFM$ADC$default$dataReady(uint8_t port, uint16_t data);static inline    result_t ADCREFM$CalADC$default$dataReady(uint8_t port, uint16_t data);static inline  result_t ADCREFM$Timer$fired(void);static inline   result_t ADCREFM$HPLADC$dataReady(uint16_t data);static #line 198result_t ADCREFM$startGet(uint8_t port);static inline   #line 222result_t ADCREFM$ADC$getData(uint8_t port);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -