📄 app.c
字号:
# 27 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\RealMain.nc"static result_t RealMain$hardwareInit(void);# 57 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Pot.nc"static result_t RealMain$Pot$init(uint8_t arg_0x1a5342c0);# 41 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\StdControl.nc"static result_t RealMain$StdControl$init(void);static result_t RealMain$StdControl$start(void);# 34 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\RealMain.nc"int main(void) ;# 53 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\HPLPot.nc"static result_t PotM$HPLPot$finalise(void);#line 38static result_t PotM$HPLPot$decrease(void);static result_t PotM$HPLPot$increase(void);# 70 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\PotM.nc"uint8_t PotM$potSetting;static inline void PotM$setPot(uint8_t value);#line 85static inline result_t PotM$Pot$init(uint8_t initialSetting);# 37 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\platform\\atm1281\\HPLPotC.nc"static inline result_t HPLPotC$Pot$decrease(void);static inline result_t HPLPotC$Pot$increase(void);static inline result_t HPLPotC$Pot$finalise(void);# 37 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\platform\\atm1281\\HPLInit.nc"static inline result_t HPLInit$init(void);# 28 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\LedsC.nc"uint8_t LedsC$ledsOn;enum LedsC$__nesc_unnamed4264 { LedsC$RED_BIT = 1, LedsC$GREEN_BIT = 2, LedsC$YELLOW_BIT = 4};static result_t LedsC$Leds$init(void);#line 79static inline result_t LedsC$Leds$greenOn(void);static inline result_t LedsC$Leds$greenOff(void);static inline result_t LedsC$Leds$greenToggle(void);# 26 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SendMsg.nc"static result_t UartTestM$Send$send(uint16_t arg_0x1a5d0010, uint8_t arg_0x1a5d0198, TOS_MsgPtr arg_0x1a5d0328);# 41 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\StdControl.nc"static result_t UartTestM$CommControl$init(void);static result_t UartTestM$CommControl$start(void);# 35 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Leds.nc"static result_t UartTestM$Leds$init(void);#line 85static result_t UartTestM$Leds$greenToggle(void);# 37 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Timer.nc"static result_t UartTestM$Timer$start(char arg_0x1a6135b8, uint32_t arg_0x1a613750);# 17 "d:\\source\\UartTest\\UartTestM.nc"uint8_t UartTestM$num = 0;TOS_Msg UartTestM$msg_buf;TOS_MsgPtr UartTestM$msg_ptr;static inline void UartTestM$sendNum(void);static inline result_t UartTestM$StdControl$init(void);static inline result_t UartTestM$StdControl$start(void);#line 46static inline result_t UartTestM$Timer$fired(void);static inline result_t UartTestM$Send$sendDone(TOS_MsgPtr msg, result_t success);static inline TOS_MsgPtr UartTestM$Receive$receive(TOS_MsgPtr m);# 53 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\ReceiveMsg.nc"static TOS_MsgPtr AMStandard$ReceiveMsg$receive(# 35 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\AMStandard.nc"uint8_t arg_0x1a630b90, # 53 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\ReceiveMsg.nc"TOS_MsgPtr arg_0x1a605420);# 37 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Timer.nc"static result_t AMStandard$ActivityTimer$start(char arg_0x1a6135b8, uint32_t arg_0x1a613750);# 36 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\BareSendMsg.nc"static result_t AMStandard$UARTSend$send(TOS_MsgPtr arg_0x1a655088);# 19 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\PowerManagement.nc"static uint8_t AMStandard$PowerManagement$adjustPower(void);# 41 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\StdControl.nc"static result_t AMStandard$RadioControl$init(void);static result_t AMStandard$RadioControl$start(void);#line 41static result_t AMStandard$TimerControl$init(void);static result_t AMStandard$TimerControl$start(void);#line 41static result_t AMStandard$UARTControl$init(void);static result_t AMStandard$UARTControl$start(void);# 44 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\AMStandard.nc"static result_t AMStandard$sendDone(void);# 36 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\BareSendMsg.nc"static result_t AMStandard$RadioSend$send(TOS_MsgPtr arg_0x1a655088);# 27 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SendMsg.nc"static result_t AMStandard$SendMsg$sendDone(# 34 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\AMStandard.nc"uint8_t arg_0x1a6304f8, # 27 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SendMsg.nc"TOS_MsgPtr arg_0x1a5d07d8, result_t arg_0x1a5d0968);# 60 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\system\\AMStandard.nc"bool AMStandard$state;TOS_MsgPtr AMStandard$buffer;uint16_t AMStandard$lastCount;uint16_t AMStandard$counter;static inline result_t AMStandard$Control$init(void);#line 82static inline result_t AMStandard$Control$start(void);#line 111static inline void AMStandard$dbgPacket(TOS_MsgPtr data);static result_t AMStandard$reportSendDone(TOS_MsgPtr msg, result_t success);static inline result_t AMStandard$ActivityTimer$fired(void);static inline result_t AMStandard$SendMsg$default$sendDone(uint8_t id, TOS_MsgPtr msg, result_t success);static inline result_t AMStandard$default$sendDone(void);static inline void AMStandard$sendTask(void);#line 158static inline result_t AMStandard$SendMsg$send(uint8_t id, uint16_t addr, uint8_t length, TOS_MsgPtr data);#line 186static inline result_t AMStandard$UARTSend$sendDone(TOS_MsgPtr msg, result_t success);static inline result_t AMStandard$RadioSend$sendDone(TOS_MsgPtr msg, result_t success);TOS_MsgPtr received(TOS_MsgPtr packet) ;#line 221static inline TOS_MsgPtr AMStandard$ReceiveMsg$default$receive(uint8_t id, TOS_MsgPtr msg);static inline TOS_MsgPtr AMStandard$UARTReceive$receive(TOS_MsgPtr packet);static inline TOS_MsgPtr AMStandard$RadioReceive$receive(TOS_MsgPtr packet);# 63 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SplitControl.nc"static result_t RF230ControlM$SplitControl$startDone(void);# 41 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\StdControl.nc"static result_t RF230ControlM$InterruptControl$init(void);static result_t RF230ControlM$InterruptControl$start(void);#line 41static result_t RF230ControlM$TimerControl$init(void);# 14 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\HPLRF230.nc"static void RF230ControlM$HPLRF230$writeReg(uint8_t arg_0x1a7015b8, uint8_t arg_0x1a701740);#line 29static void RF230ControlM$HPLRF230$bitWrite(uint8_t arg_0x1a716068, uint8_t arg_0x1a7161f0, uint8_t arg_0x1a716378, uint8_t arg_0x1a716500);#line 19static uint8_t RF230ControlM$HPLRF230$readReg(uint8_t arg_0x1a701db8);# 37 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Timer.nc"static result_t RF230ControlM$initTimer$start(char arg_0x1a6135b8, uint32_t arg_0x1a613750);# 35 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Leds.nc"static result_t RF230ControlM$Leds$init(void);# 14 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\HPLRF230Init.nc"static void RF230ControlM$HPLRF230Init$init(void);# 46 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\RF230ControlM.nc"enum RF230ControlM$__nesc_unnamed4265 { RF230ControlM$RF230_CTL_POWERON, RF230ControlM$RF230_CTL_START, RF230ControlM$RF230_CTL_START_DONE};uint8_t RF230ControlM$controlState = RF230ControlM$RF230_CTL_POWERON;static inline result_t RF230ControlM$powerOnInitial(void);static inline result_t RF230ControlM$powerOnSleep(void);static inline void RF230ControlM$initRegisters(void);static inline void RF230ControlM$sigStartDone(void);#line 85static inline result_t RF230ControlM$powerOnInitial(void);#line 118static inline result_t RF230ControlM$powerOnSleep(void);#line 133static inline void RF230ControlM$initRegisters(void);#line 158static inline result_t RF230ControlM$SplitControl$init(void);#line 190static inline result_t RF230ControlM$SplitControl$start(void);#line 264static inline result_t RF230ControlM$initTimer$fired(void);#line 315static void RF230ControlM$RF230Control$resetRadio(void);#line 408static inline void RF230ControlM$RF230Control$getRSSIandCRC(bool *crcValid, uint8_t *rssi);#line 439static inline bool RF230ControlM$RF230Control$CCA(void);#line 475static inline void RF230ControlM$RF230Control$set_TRX_OFF(void);static inline void RF230ControlM$RF230Control$force_TRX_OFF(void);static void RF230ControlM$RF230Control$set_PLL_ON(void);static void RF230ControlM$RF230Control$set_RX_ON(void);# 42 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SplitControl.nc"static result_t RF230RadioM$RadioSplitControl$init(void);#line 55static result_t RF230RadioM$RadioSplitControl$start(void);# 36 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\BareSendMsg.nc"static result_t RF230RadioM$PHYSend$send(TOS_MsgPtr arg_0x1a655088);static result_t RF230RadioM$Send$sendDone(TOS_MsgPtr arg_0x1a6557e0, result_t arg_0x1a655970);# 42 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Random.nc"static uint16_t RF230RadioM$Random$rand(void);#line 36static result_t RF230RadioM$Random$init(void);# 53 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\ReceiveMsg.nc"static TOS_MsgPtr RF230RadioM$Recv$receive(TOS_MsgPtr arg_0x1a605420);# 48 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\RF230RadioM.nc"static inline result_t RF230RadioM$StdControl$init(void);static inline result_t RF230RadioM$StdControl$start(void);#line 68static inline result_t RF230RadioM$Send$send(TOS_MsgPtr pMsg);#line 80static inline result_t RF230RadioM$RadioSplitControl$startDone(void);static inline result_t RF230RadioM$PHYSend$sendDone(TOS_MsgPtr msg, result_t succ);static inline TOS_MsgPtr RF230RadioM$PHYRecv$receive(TOS_MsgPtr msg);static inline result_t RF230RadioM$IntervalTimer$fired(void);static inline result_t RF230RadioM$SleepTimer$fired(void);static inline int16_t RF230RadioM$MacBackoff$initialBackoff(TOS_MsgPtr m);static inline int16_t RF230RadioM$MacBackoff$congestionBackoff(TOS_MsgPtr m);static inline void RF230RadioM$WakeSequence$IncomingPacket(void);static inline void RF230RadioM$WakeSequence$sniffExpired(bool channelClear);static inline void RF230RadioM$WakeSequence$sendWakeDone(result_t succ);# 29 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\WakeSequence.nc"static void RF230RadioRawM$WakeSequence$sendWakeDone(result_t arg_0x1a780068);#line 46static void RF230RadioRawM$WakeSequence$IncomingPacket(void);static void RF230RadioRawM$WakeSequence$sniffExpired(bool arg_0x1a797408);# 12 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\RF230Interrupts.nc"static void RF230RadioRawM$RF230Interrupts$enable(void);# 63 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SplitControl.nc"static result_t RF230RadioRawM$RadioSplitControl$startDone(void);# 15 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\RadioCoordinator.nc"static void RF230RadioRawM$sendCoordinator$startSymbol(uint8_t arg_0x1a7e7258, uint8_t arg_0x1a7e73e0, TOS_MsgPtr arg_0x1a7e7570);# 104 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\RF230Control.nc"static void RF230RadioRawM$RF230Control$force_TRX_OFF(void);#line 116static void RF230RadioRawM$RF230Control$set_RX_ON(void);#line 74static void RF230RadioRawM$RF230Control$getRSSIandCRC(bool *arg_0x1a6d58a0, uint8_t *arg_0x1a6d5a48);#line 110static void RF230RadioRawM$RF230Control$set_PLL_ON(void);#line 90static bool RF230RadioRawM$RF230Control$CCA(void);# 16 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\platform\\atm1281\\TimerJiffyAsync.nc"static result_t RF230RadioRawM$TimerJiffyAsync$setOneShot(uint32_t arg_0x1a7e1eb8);static result_t RF230RadioRawM$TimerJiffyAsync$stop(void);# 15 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\RadioCoordinator.nc"static void RF230RadioRawM$recvCoordinator$startSymbol(uint8_t arg_0x1a7e7258, uint8_t arg_0x1a7e73e0, TOS_MsgPtr arg_0x1a7e7570);# 45 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\BareSendMsg.nc"static result_t RF230RadioRawM$Send$sendDone(TOS_MsgPtr arg_0x1a6557e0, result_t arg_0x1a655970);# 36 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\Random.nc"static result_t RF230RadioRawM$Random$init(void);# 53 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\ReceiveMsg.nc"static TOS_MsgPtr RF230RadioRawM$Receive$receive(TOS_MsgPtr arg_0x1a605420);# 34 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\HPLRF230.nc"static void RF230RadioRawM$HPLRF230$writeFrame(uint8_t arg_0x1a716b90, uint8_t *arg_0x1a716d38);#line 46static uint8_t RF230RadioRawM$HPLRF230$readFrameCRC(uint8_t *arg_0x1a715af8);#line 40static void RF230RadioRawM$HPLRF230$addCRC(uint8_t *arg_0x1a7153f0);# 42 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\interfaces\\SplitControl.nc"static result_t RF230RadioRawM$RF230ControlSplitControl$init(void);#line 55static result_t RF230RadioRawM$RF230ControlSplitControl$start(void);# 24 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\MacBackoff.nc"static int16_t RF230RadioRawM$MacBackoff$initialBackoff(TOS_MsgPtr arg_0x1a794068);static int16_t RF230RadioRawM$MacBackoff$congestionBackoff(TOS_MsgPtr arg_0x1a794528);# 64 "C:\\Crossbow\\cygwin\\opt\\MoteWorks\\tos\\radio\\rf230\\RF230RadioRawM.nc"enum RF230RadioRawM$__nesc_unnamed4266 { RF230RadioRawM$RF230_TIMER_IDLE, RF230RadioRawM$RF230_TIMER_BACKOFF, RF230RadioRawM$RF230_TIMER_ACK, RF230RadioRawM$RF230_TIMER_SEND, RF230RadioRawM$RF230_TIMER_SNIFF};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -