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

📄 app.c

📁 示波器程序,接受到发送方的信息后,通过串口通信显示在计算机上
💻 C
📖 第 1 页 / 共 5 页
字号:
static  result_t ADCREFM$ADCControl$bindPort(uint8_t arg_0xa3ff530, uint8_t arg_0xa3ff678);static  result_t ADCREFM$ADCControl$init(void);static   result_t ADCREFM$ADCControl$manualCalibrate(void);static   result_t ADCREFM$ADC$getData(uint8_t arg_0xa3faab0);static   result_t ADCREFM$ADC$default$dataReady(uint8_t arg_0xa3faab0, uint16_t arg_0xa329cc0);static  result_t ADCREFM$Timer$fired(void);static   result_t HPLADCM$ADC$bindPort(uint8_t arg_0xa41d1e8, uint8_t arg_0xa41d330);static   result_t HPLADCM$ADC$init(void);static   result_t HPLADCM$ADC$samplePort(uint8_t arg_0xa41d818);static  TOS_MsgPtr AMStandard$ReceiveMsg$default$receive(uint8_t arg_0xa451c10, TOS_MsgPtr arg_0xa32fc70);static  result_t AMStandard$ActivityTimer$fired(void);static  result_t AMStandard$UARTSend$sendDone(TOS_MsgPtr arg_0xa467da8, result_t arg_0xa467ef8);static  result_t AMStandard$Control$init(void);static  result_t AMStandard$Control$start(void);static  result_t AMStandard$default$sendDone(void);static  result_t AMStandard$SendMsg$send(uint8_t arg_0xa451658, uint16_t arg_0xa32e010, uint8_t arg_0xa32e158, TOS_MsgPtr arg_0xa32e2a8);static  result_t AMStandard$SendMsg$default$sendDone(uint8_t arg_0xa451658, TOS_MsgPtr arg_0xa32e6c8, result_t arg_0xa32e818);static  TOS_MsgPtr AMStandard$UARTReceive$receive(TOS_MsgPtr arg_0xa32fc70);static  result_t PacketSink$Send$send(TOS_MsgPtr arg_0xa467890);static  result_t PacketSink$Control$init(void);static  result_t PacketSink$Control$start(void);static   result_t FramerM$ByteComm$txDone(void);static   result_t FramerM$ByteComm$txByteReady(bool arg_0xa4a8830);static   result_t FramerM$ByteComm$rxByteReady(uint8_t arg_0xa4a8060, bool arg_0xa4a81a8, uint16_t arg_0xa4a8300);static  result_t FramerM$BareSendMsg$send(TOS_MsgPtr arg_0xa467890);static  result_t FramerM$StdControl$init(void);static  result_t FramerM$StdControl$start(void);static  result_t FramerM$TokenReceiveMsg$ReflectToken(uint8_t arg_0xa495ed0);static  TOS_MsgPtr FramerAckM$ReceiveMsg$receive(TOS_MsgPtr arg_0xa32fc70);static  TOS_MsgPtr FramerAckM$TokenReceiveMsg$receive(TOS_MsgPtr arg_0xa495770, uint8_t arg_0xa4958b8);static   result_t UARTM$HPLUART$get(uint8_t arg_0xa4eaaf8);static   result_t UARTM$HPLUART$putDone(void);static   result_t UARTM$ByteComm$txByte(uint8_t arg_0xa4adbb0);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_0xa4ea5f8);static  # 47 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc"result_t RealMain$hardwareInit(void);static  # 78 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Pot.nc"result_t RealMain$Pot$init(uint8_t arg_0xa2c9b58);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t RealMain$StdControl$init(void);static  result_t RealMain$StdControl$start(void);# 54 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc"int   main(void);static  # 74 "C:/PROGRA~1/UCB/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:/PROGRA~1/UCB/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:/PROGRA~1/UCB/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:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc"result_t HPLInit$init(void);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t OscilloscopeM$SensorControl$init(void);static  result_t OscilloscopeM$SensorControl$start(void);static  # 48 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SendMsg.nc"result_t OscilloscopeM$DataMsg$send(uint16_t arg_0xa32e010, uint8_t arg_0xa32e158, TOS_MsgPtr arg_0xa32e2a8);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t OscilloscopeM$CommControl$init(void);static  result_t OscilloscopeM$CommControl$start(void);static   # 122 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"result_t OscilloscopeM$Leds$yellowOff(void);static   #line 56result_t OscilloscopeM$Leds$init(void);static   #line 97result_t OscilloscopeM$Leds$greenOff(void);static   #line 72result_t OscilloscopeM$Leds$redOff(void);static   #line 131result_t OscilloscopeM$Leds$yellowToggle(void);static   #line 64result_t OscilloscopeM$Leds$redOn(void);static   # 52 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t OscilloscopeM$ADC$getData(void);static  # 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t OscilloscopeM$Timer$start(char arg_0xa30b958, uint32_t arg_0xa30bab0);# 66 "OscilloscopeM.nc"uint8_t OscilloscopeM$packetReadingNumber;uint16_t OscilloscopeM$readingNumber;TOS_Msg OscilloscopeM$msg[2];uint8_t OscilloscopeM$currentMsg;static inline  result_t OscilloscopeM$StdControl$init(void);static inline  #line 97result_t OscilloscopeM$StdControl$start(void);static inline  #line 115void OscilloscopeM$dataTask(void);static inline   #line 146result_t OscilloscopeM$ADC$dataReady(uint16_t data);static inline  #line 169result_t OscilloscopeM$DataMsg$sendDone(TOS_MsgPtr sent, result_t success);static inline  result_t OscilloscopeM$Timer$fired(void);static inline  TOS_MsgPtr OscilloscopeM$ResetCounterMsg$receive(TOS_MsgPtr m);static   # 41 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/PowerManagement.nc"uint8_t TimerM$PowerManagement$adjustPower(void);static   # 105 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"void TimerM$Clock$setInterval(uint8_t arg_0xa35cbe8);static   #line 153uint8_t TimerM$Clock$readCounter(void);static   #line 96result_t TimerM$Clock$setRate(char arg_0xa35c0e8, char arg_0xa35c228);static  # 73 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t TimerM$Timer$fired(# 45 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/TimerM.nc"uint8_t arg_0xa34a5a0);uint32_t TimerM$mState;uint8_t TimerM$setIntervalFlag;uint8_t TimerM$mScale;#line 57uint8_t TimerM$mInterval;int8_t TimerM$queue_head;int8_t TimerM$queue_tail;uint8_t TimerM$queue_size;uint8_t TimerM$queue[NUM_TIMERS];struct TimerM$timer_s {  uint8_t type;  int32_t ticks;  int32_t ticksLeft;} TimerM$mTimerList[NUM_TIMERS];enum TimerM$__nesc_unnamed4268 {  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 116static void TimerM$adjustInterval(void);static inline   #line 154result_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 204result_t TimerM$Clock$fire(void);static   # 180 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Clock.nc"result_t HPLClock$Clock$fire(void);# 54 "C:/PROGRA~1/UCB/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   #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);# 51 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLPowerManagementM.nc"bool HPLPowerManagementM$disabled = TRUE;enum HPLPowerManagementM$__nesc_unnamed4269 {  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:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"uint8_t LedsC$ledsOn;enum LedsC$__nesc_unnamed4270 {  LedsC$RED_BIT = 1,   LedsC$GREEN_BIT = 2,   LedsC$YELLOW_BIT = 4};static inline   result_t LedsC$Leds$init(void);static inline   #line 72result_t LedsC$Leds$redOn(void);static inline   result_t LedsC$Leds$redOff(void);static inline   #line 110result_t LedsC$Leds$greenOff(void);static inline   #line 130result_t LedsC$Leds$yellowOn(void);static inline   result_t LedsC$Leds$yellowOff(void);static inline   result_t LedsC$Leds$yellowToggle(void);static  # 116 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCControl.nc"result_t PhotoM$ADCControl$bindPort(uint8_t arg_0xa3ff530, uint8_t arg_0xa3ff678);static  #line 77result_t PhotoM$ADCControl$init(void);static inline  # 66 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/basicsb/PhotoM.nc"result_t PhotoM$StdControl$init(void);static inline  result_t PhotoM$StdControl$start(void);static   # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"result_t ADCREFM$HPLADC$bindPort(uint8_t arg_0xa41d1e8, uint8_t arg_0xa41d330);static   #line 54result_t ADCREFM$HPLADC$init(void);static   #line 77result_t ADCREFM$HPLADC$samplePort(uint8_t arg_0xa41d818);static   # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"result_t ADCREFM$CalADC$dataReady(# 67 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"uint8_t arg_0xa3fb138, # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa329cc0);static   #line 70result_t ADCREFM$ADC$dataReady(# 66 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"uint8_t arg_0xa3faab0, # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa329cc0);# 80 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"enum ADCREFM$__nesc_unnamed4271 {  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 inline  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);static inline   #line 284result_t ADCREFM$ADCControl$manualCalibrate(void);static   # 99 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"result_t HPLADCM$ADC$dataReady(uint16_t arg_0xa41a388);# 60 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLADCM.nc"bool HPLADCM$init_portmap_done;uint8_t HPLADCM$TOSH_adc_portmap[TOSH_ADC_PORTMAPSIZE];static void HPLADCM$init_portmap(void);static inline   #line 90result_t HPLADCM$ADC$init(void);static inline   #line 110result_t HPLADCM$ADC$bindPort(uint8_t port, uint8_t adcPort);static   #line 122result_t HPLADCM$ADC$samplePort(uint8_t port);#line 144void __attribute((signal))   __vector_21(void);static  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc"TOS_MsgPtr AMStandard$ReceiveMsg$receive(# 56 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/AMStandard.nc"uint8_t arg_0xa451c10, # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc"TOS_MsgPtr arg_0xa32fc70);static  # 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Timer.nc"result_t AMStandard$ActivityTimer$start(char arg_0xa30b958, uint32_t arg_0xa30bab0);static  # 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/BareSendMsg.nc"result_t AMStandard$UARTSend$send(TOS_MsgPtr arg_0xa467890);static   # 41 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/PowerManagement.nc"uint8_t AMStandard$PowerManagement$adjustPower(void);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t AMStandard$RadioControl$init(void);static  result_t AMStandard$RadioControl$start(void);static  #line 63result_t AMStandard$TimerControl$init(void);static  result_t AMStandard$TimerControl$start(void);static  #line 63result_t AMStandard$UARTControl$init(void);static  result_t AMStandard$UARTControl$start(void);static  # 65 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/AMStandard.nc"result_t AMStandard$sendDone(void);static  # 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/BareSendMsg.nc"result_t AMStandard$RadioSend$send(TOS_MsgPtr arg_0xa467890);static  # 49 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SendMsg.nc"result_t AMStandard$SendMsg$sendDone(# 55 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/AMStandard.nc"uint8_t arg_0xa451658, # 49 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SendMsg.nc"TOS_MsgPtr arg_0xa32e6c8, result_t arg_0xa32e818);# 81 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/AMStandard.nc"bool AMStandard$state;TOS_MsgPtr AMStandard$buffer;uint16_t AMStandard$lastCount;uint16_t AMStandard$counter;static inline  bool AMStandard$Control$init(void);static inline  #line 103bool AMStandard$Control$start(void);static inline #line 132void AMStandard$dbgPacket(TOS_MsgPtr data);static result_t AMStandard$reportSendDone(TOS_MsgPtr msg, result_t success);static inline  result_t AMStandard$ActivityTimer$fired(void);

⌨️ 快捷键说明

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