📄 app.c
字号:
static result_t TOSBaseM$RadioControl$start(void);# 88 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\TokenReceiveMsg.nc"static result_t TOSBaseM$UARTTokenReceive$ReflectToken(uint8_t arg_0x1a5b5a90);# 63 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\StdControl.nc"static result_t TOSBaseM$UARTControl$init(void);static result_t TOSBaseM$UARTControl$start(void);# 56 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\Leds.nc"static result_t TOSBaseM$Leds$init(void);#line 81static result_t TOSBaseM$Leds$redToggle(void);# 58 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\BareSendMsg.nc"static result_t TOSBaseM$RadioSend$send(TOS_MsgPtr arg_0x1a5d5ea8);# 37 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\apps\\general\\XSniffer\\TOSBaseM.nc"static result_t TOSBaseM$Setbaud(uint32_t arg_0x1a5e2f28);enum TOSBaseM$__nesc_unnamed4264 { TOSBaseM$QUEUE_SIZE = 50};enum TOSBaseM$__nesc_unnamed4265 { TOSBaseM$TXFLAG_BUSY = 0x1, TOSBaseM$TXFLAG_TOKEN = 0x2};TOS_Msg TOSBaseM$gRxBufPool[TOSBaseM$QUEUE_SIZE];TOS_MsgPtr TOSBaseM$gRxBufPoolTbl[TOSBaseM$QUEUE_SIZE];uint8_t TOSBaseM$gRxHeadIndex;#line 58uint8_t TOSBaseM$gRxTailIndex;TOS_Msg TOSBaseM$gTxBuf;TOS_MsgPtr TOSBaseM$gpTxMsg;uint8_t TOSBaseM$gTxPendingToken;uint8_t TOSBaseM$gfTxFlags;uint8_t TOSBaseM$num_msgs_pending;uint8_t TOSBaseM$radio_rcvd_task_flags;static void TOSBaseM$RadioRcvdTask(void);#line 107static void TOSBaseM$UARTRcvdTask(void);#line 122static inline void TOSBaseM$SendAckTask(void);static inline result_t TOSBaseM$StdControl$init(void);#line 159static inline result_t TOSBaseM$StdControl$start(void);#line 192static inline TOS_MsgPtr TOSBaseM$RadioReceive$receive(TOS_MsgPtr Msg);#line 263static inline TOS_MsgPtr TOSBaseM$UARTReceive$receive(TOS_MsgPtr Msg);#line 291static inline TOS_MsgPtr TOSBaseM$UARTTokenReceive$receive(TOS_MsgPtr Msg, uint8_t Token);#line 319static inline result_t TOSBaseM$UARTSend$sendDone(TOS_MsgPtr Msg, result_t success);#line 343static inline result_t TOSBaseM$RadioSend$sendDone(TOS_MsgPtr Msg, result_t success);# 85 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\SplitControl.nc"static result_t RF230ControlM$SplitControl$startDone(void);# 63 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\StdControl.nc"static result_t RF230ControlM$InterruptControl$init(void);static result_t RF230ControlM$InterruptControl$start(void);#line 63static result_t RF230ControlM$TimerControl$init(void);# 14 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\HPLRF230.nc"static void RF230ControlM$HPLRF230$writeReg(uint8_t arg_0x1a6b6a80, uint8_t arg_0x1a6b6c08);#line 29static void RF230ControlM$HPLRF230$bitWrite(uint8_t arg_0x1a6b44f0, uint8_t arg_0x1a6b4678, uint8_t arg_0x1a6b4800, uint8_t arg_0x1a6b4988);#line 19static uint8_t RF230ControlM$HPLRF230$readReg(uint8_t arg_0x1a6b52d8);# 59 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\Timer.nc"static result_t RF230ControlM$initTimer$start(char arg_0x1a6d5a48, uint32_t arg_0x1a6d5be0);# 56 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\Leds.nc"static result_t RF230ControlM$Leds$init(void);# 14 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\HPLRF230Init.nc"static void RF230ControlM$HPLRF230Init$init(void);# 46 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\RF230ControlM.nc"enum RF230ControlM$__nesc_unnamed4266 { 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);# 64 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\SplitControl.nc"static result_t RF230RadioM$RadioSplitControl$init(void);#line 77static result_t RF230RadioM$RadioSplitControl$start(void);# 58 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\BareSendMsg.nc"static result_t RF230RadioM$PHYSend$send(TOS_MsgPtr arg_0x1a5d5ea8);static result_t RF230RadioM$Send$sendDone(TOS_MsgPtr arg_0x1a5a4620, result_t arg_0x1a5a47b0);# 63 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\Random.nc"static uint16_t RF230RadioM$Random$rand(void);#line 57static result_t RF230RadioM$Random$init(void);# 75 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\ReceiveMsg.nc"static TOS_MsgPtr RF230RadioM$Recv$receive(TOS_MsgPtr arg_0x1a5d3320);# 48 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\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.GGB\\tos\\radio\\rf230\\WakeSequence.nc"static void RF230RadioRawM$WakeSequence$sendWakeDone(result_t arg_0x1a7467f8);#line 46static void RF230RadioRawM$WakeSequence$IncomingPacket(void);static void RF230RadioRawM$WakeSequence$sniffExpired(bool arg_0x1a744b90);# 12 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\RF230Interrupts.nc"static void RF230RadioRawM$RF230Interrupts$enable(void);# 85 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\SplitControl.nc"static result_t RF230RadioRawM$RadioSplitControl$startDone(void);# 31 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\RadioCoordinator.nc"static void RF230RadioRawM$sendCoordinator$startSymbol(uint8_t arg_0x1a7a7988, uint8_t arg_0x1a7a7b10, TOS_MsgPtr arg_0x1a7a7ca0);# 104 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\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_0x1a673e60, uint8_t *arg_0x1a672030);#line 110static void RF230RadioRawM$RF230Control$set_PLL_ON(void);#line 90static bool RF230RadioRawM$RF230Control$CCA(void);# 16 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\platform\\atm1281\\TimerJiffyAsync.nc"static result_t RF230RadioRawM$TimerJiffyAsync$setOneShot(uint32_t arg_0x1a7b35f0);static result_t RF230RadioRawM$TimerJiffyAsync$stop(void);# 31 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\RadioCoordinator.nc"static void RF230RadioRawM$recvCoordinator$startSymbol(uint8_t arg_0x1a7a7988, uint8_t arg_0x1a7a7b10, TOS_MsgPtr arg_0x1a7a7ca0);# 67 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\BareSendMsg.nc"static result_t RF230RadioRawM$Send$sendDone(TOS_MsgPtr arg_0x1a5a4620, result_t arg_0x1a5a47b0);# 57 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\Random.nc"static result_t RF230RadioRawM$Random$init(void);# 75 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\ReceiveMsg.nc"static TOS_MsgPtr RF230RadioRawM$Receive$receive(TOS_MsgPtr arg_0x1a5d3320);# 34 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\HPLRF230.nc"static void RF230RadioRawM$HPLRF230$writeFrame(uint8_t arg_0x1a6b2030, uint8_t *arg_0x1a6b21d8);#line 46static uint8_t RF230RadioRawM$HPLRF230$readFrameCRC(uint8_t *arg_0x1a6b1010);#line 40static void RF230RadioRawM$HPLRF230$addCRC(uint8_t *arg_0x1a6b2870);# 64 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\interfaces\\SplitControl.nc"static result_t RF230RadioRawM$RF230ControlSplitControl$init(void);#line 77static result_t RF230RadioRawM$RF230ControlSplitControl$start(void);# 24 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\MacBackoff.nc"static int16_t RF230RadioRawM$MacBackoff$initialBackoff(TOS_MsgPtr arg_0x1a7417f8);static int16_t RF230RadioRawM$MacBackoff$congestionBackoff(TOS_MsgPtr arg_0x1a741cb8);# 64 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\RF230RadioRawM.nc"enum RF230RadioRawM$__nesc_unnamed4267 { RF230RadioRawM$RF230_TIMER_IDLE, RF230RadioRawM$RF230_TIMER_BACKOFF, RF230RadioRawM$RF230_TIMER_ACK, RF230RadioRawM$RF230_TIMER_SEND, RF230RadioRawM$RF230_TIMER_SNIFF};uint8_t RF230RadioRawM$timerState = RF230RadioRawM$RF230_TIMER_IDLE;enum RF230RadioRawM$__nesc_unnamed4268 { RF230RadioRawM$RF230_RADIO_DISABLED, RF230RadioRawM$RF230_RADIO_START, RF230RadioRawM$RF230_RADIO_STOP, RF230RadioRawM$RF230_RADIO_IDLE, RF230RadioRawM$RF230_RADIO_SEND_SETUP, RF230RadioRawM$RF230_RADIO_SEND_BACKOFF, RF230RadioRawM$RF230_RADIO_SEND_TX, RF230RadioRawM$RF230_RADIO_WAIT_ACK, RF230RadioRawM$RF230_RADIO_SEND_DONE, RF230RadioRawM$RF230_RADIO_SEND_FAIL, RF230RadioRawM$RF230_RADIO_SEND_WAKEUP};uint8_t RF230RadioRawM$radioState;bool RF230RadioRawM$bAckEnabled;bool RF230RadioRawM$bRxBufLocked;bool RF230RadioRawM$bTxBufLocked;uint8_t RF230RadioRawM$sendRetries;uint8_t RF230RadioRawM$currentDSN;uint16_t RF230RadioRawM$wakePacketCount;uint8_t RF230RadioRawM$txlength;TOS_MsgPtr RF230RadioRawM$txbufptr;TOS_MsgPtr RF230RadioRawM$rxbufptr;TOS_Msg RF230RadioRawM$RxBuf;static __inline void RF230RadioRawM$initLocalState(void);static __inline void RF230RadioRawM$fillDataPacket(TOS_MsgPtr pMsg);static __inline void RF230RadioRawM$tryToSend(void);static __inline void RF230RadioRawM$doCongestionBackOff(void);static __inline void RF230RadioRawM$completeSend(void);static __inline result_t RF230RadioRawM$setBackoffTimer(uint16_t jiffy);static __inline result_t RF230RadioRawM$setAckTimer(uint16_t jiffy);static __inline result_t RF230RadioRawM$setSendTimer(uint16_t jiffy);static __inline void RF230RadioRawM$stopAllTimers(void);static __inline void RF230RadioRawM$handleRxInt(void);static __inline void RF230RadioRawM$handleTxInt(result_t status);static __inline void RF230RadioRawM$handleSendAck(uint8_t dsn);static __inline void RF230RadioRawM$handleWakeInt(void);#line 176static inline void RF230RadioRawM$handleSendDone(void);static inline void RF230RadioRawM$handleRecv(void);#line 204static inline void RF230RadioRawM$sigJiffyTimer(void);static inline result_t RF230RadioRawM$RadioSplitControl$init(void);#line 234static __inline void RF230RadioRawM$initLocalState(void);#line 266static inline result_t RF230RadioRawM$RadioSplitControl$start(void);#line 299static result_t RF230RadioRawM$RF230ControlSplitControl$startDone(void);#line 373static inline result_t RF230RadioRawM$Send$send(TOS_MsgPtr pMsg);#line 428static __inline void RF230RadioRawM$fillDataPacket(TOS_MsgPtr pMsg);#line 470static __inline void RF230RadioRawM$tryToSend(void);#line 552static __inline void RF230RadioRawM$doCongestionBackOff(void);#line 577static __inline void RF230RadioRawM$completeSend(void);#line 611static inline void RF230RadioRawM$RF230Interrupts$INT_RX_Start(void);#line 638static inline void RF230RadioRawM$RF230Interrupts$INT_TRX_UnderRun(void);#line 682static inline void RF230RadioRawM$RF230Interrupts$INT_TRX_Done(void);#line 726static __inline void RF230RadioRawM$handleTxInt(result_t status);#line 763static __inline void RF230RadioRawM$handleRxInt(void);#line 898static __inline void RF230RadioRawM$handleSendAck(uint8_t dsn);#line 944static __inline result_t RF230RadioRawM$setBackoffTimer(uint16_t jiffy);#line 973static __inline result_t RF230RadioRawM$setAckTimer(uint16_t jiffy);#line 1014static __inline result_t RF230RadioRawM$setSendTimer(uint16_t jiffy);#line 1034static __inline void RF230RadioRawM$stopAllTimers(void);static result_t RF230RadioRawM$TimerJiffyAsync$fired(void);#line 1183static __inline void RF230RadioRawM$handleWakeInt(void);#line 1248static inline #line 1247void RF230RadioRawM$sendCoordinator$default$startSymbol(uint8_t bitsPerBlock, uint8_t offset, TOS_MsgPtr msgBuff);static inline #line 1257void RF230RadioRawM$recvCoordinator$default$startSymbol(uint8_t bitsPerBlock, uint8_t offset, TOS_MsgPtr msgBuff);# 16 "C:\\Crossbow\\cygwin\\opt\\MoteWorks.GGB\\tos\\radio\\rf230\\RF230Interrupts.nc"static void RF230InterruptsM$RF230Interrupts$INT_RX_Start(void);static void RF230InterruptsM$RF230Interrupts$INT_TRX_UnderRun(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -