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

📄 app.c

📁 tinyos最新版
💻 C
📖 第 1 页 / 共 5 页
字号:
static   result_t MicaHighSpeedRadioM$Code$encodeDone(char arg_0xa361a10);static   void MicaHighSpeedRadioM$RadioReceiveCoordinator$default$byte(TOS_MsgPtr arg_0xa35ab10, uint8_t arg_0xa35ac60);static   void MicaHighSpeedRadioM$RadioReceiveCoordinator$default$blockTimer(void);static   void MicaHighSpeedRadioM$RadioReceiveCoordinator$default$startSymbol(uint8_t arg_0xa35a400, uint8_t arg_0xa35a548, TOS_MsgPtr arg_0xa35a698);static   result_t MicaHighSpeedRadioM$SpiByteFifo$dataReady(uint8_t arg_0xa36dc60);static  result_t MicaHighSpeedRadioM$Control$init(void);static  result_t MicaHighSpeedRadioM$Control$start(void);static   void MicaHighSpeedRadioM$RadioSendCoordinator$default$byte(TOS_MsgPtr arg_0xa35ab10, uint8_t arg_0xa35ac60);static   void MicaHighSpeedRadioM$RadioSendCoordinator$default$blockTimer(void);static   void MicaHighSpeedRadioM$RadioSendCoordinator$default$startSymbol(uint8_t arg_0xa35a400, uint8_t arg_0xa35a548, TOS_MsgPtr arg_0xa35a698);static   result_t MicaHighSpeedRadioM$ChannelMon$idleDetect(void);static   result_t MicaHighSpeedRadioM$ChannelMon$startSymDetect(void);static   result_t SecDedEncoding$Code$encode_flush(void);static   result_t SecDedEncoding$Code$decode(char arg_0xa361098);static   result_t SecDedEncoding$Code$encode(char arg_0xa360c88);static   uint16_t RandomLFSR$Random$rand(void);static   result_t RandomLFSR$Random$init(void);static   result_t ChannelMonC$ChannelMon$macDelay(void);static   result_t ChannelMonC$ChannelMon$startSymbolSearch(void);static   result_t ChannelMonC$ChannelMon$init(void);static   uint16_t RadioTimingC$RadioTiming$currentTime(void);static   uint16_t RadioTimingC$RadioTiming$getTiming(void);static  result_t SpiByteFifoC$SlavePin$notifyHigh(void);static   result_t SpiByteFifoC$SpiByteFifo$send(uint8_t arg_0xa36c8f0);static   result_t SpiByteFifoC$SpiByteFifo$phaseShift(void);static   result_t SpiByteFifoC$SpiByteFifo$startReadBytes(uint16_t arg_0xa36cfe0);static   result_t SpiByteFifoC$SpiByteFifo$idle(void);static   result_t SpiByteFifoC$SpiByteFifo$txMode(void);static   result_t SpiByteFifoC$SpiByteFifo$rxMode(void);static   uint8_t HPLPowerManagementM$PowerManagement$adjustPower(void);static   result_t FramerM$ByteComm$txDone(void);static   result_t FramerM$ByteComm$txByteReady(bool arg_0xa44ce50);static   result_t FramerM$ByteComm$rxByteReady(uint8_t arg_0xa44c680, bool arg_0xa44c7c8, uint16_t arg_0xa44c920);static  result_t FramerM$BareSendMsg$send(TOS_MsgPtr arg_0xa2df820);static  result_t FramerM$StdControl$init(void);static  result_t FramerM$StdControl$start(void);static  result_t FramerM$TokenReceiveMsg$ReflectToken(uint8_t arg_0xa2d3338);static   result_t UARTM$HPLUART$get(uint8_t arg_0xa481208);static   result_t UARTM$HPLUART$putDone(void);static   result_t UARTM$ByteComm$txByte(uint8_t arg_0xa44c1f0);static  result_t UARTM$Control$init(void);static  result_t UARTM$Control$start(void);static   result_t HPLUARTM$UART$init(void);static   result_t HPLUARTM$UART$put(uint8_t arg_0xa480d08);static   result_t LedsC$Leds$yellowOff(void);static   result_t LedsC$Leds$yellowOn(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$yellowToggle(void);static   result_t LedsC$Leds$redToggle(void);static   result_t LedsC$Leds$redOn(void);static   result_t LedsC$Leds$greenOn(void);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_0xa28e970);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  # 56 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/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  # 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/BareSendMsg.nc"result_t TOSBaseM$UARTSend$send(TOS_MsgPtr arg_0xa2df820);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t TOSBaseM$RadioControl$init(void);static  result_t TOSBaseM$RadioControl$start(void);static  # 88 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/TokenReceiveMsg.nc"result_t TOSBaseM$UARTTokenReceive$ReflectToken(uint8_t arg_0xa2d3338);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t TOSBaseM$UARTControl$init(void);static  result_t TOSBaseM$UARTControl$start(void);static   # 56 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Leds.nc"result_t TOSBaseM$Leds$init(void);static   #line 106result_t TOSBaseM$Leds$greenToggle(void);static   #line 131result_t TOSBaseM$Leds$yellowToggle(void);static   #line 81result_t TOSBaseM$Leds$redToggle(void);static  # 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/BareSendMsg.nc"result_t TOSBaseM$RadioSend$send(TOS_MsgPtr arg_0xa2df820);# 66 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/apps/TOSBase/TOSBaseM.nc"enum TOSBaseM$__nesc_unnamed4261 {  TOSBaseM$UART_QUEUE_LEN = 12,   TOSBaseM$RADIO_QUEUE_LEN = 12};TOS_Msg TOSBaseM$uartQueueBufs[TOSBaseM$UART_QUEUE_LEN];TOS_MsgPtr TOSBaseM$uartQueue[TOSBaseM$UART_QUEUE_LEN];uint8_t TOSBaseM$uartIn;#line 73uint8_t TOSBaseM$uartOut;bool TOSBaseM$uartBusy;#line 74bool TOSBaseM$uartFull;TOS_Msg TOSBaseM$radioQueueBufs[TOSBaseM$RADIO_QUEUE_LEN];TOS_MsgPtr TOSBaseM$radioQueue[TOSBaseM$RADIO_QUEUE_LEN];uint8_t TOSBaseM$radioIn;#line 78uint8_t TOSBaseM$radioOut;bool TOSBaseM$radioBusy;#line 79bool TOSBaseM$radioFull;static  void TOSBaseM$UARTSendTask(void);static  void TOSBaseM$RadioSendTask(void);static inline void TOSBaseM$failBlink(void);static inline void TOSBaseM$dropBlink(void);static inline  result_t TOSBaseM$StdControl$init(void);static inline  #line 114result_t TOSBaseM$StdControl$start(void);static inline  #line 132TOS_MsgPtr TOSBaseM$RadioReceive$receive(TOS_MsgPtr Msg);static  #line 164void TOSBaseM$UARTSendTask(void);static inline  #line 187result_t TOSBaseM$UARTSend$sendDone(TOS_MsgPtr msg, result_t success);static inline  #line 208TOS_MsgPtr TOSBaseM$UARTReceive$receive(TOS_MsgPtr Msg);static inline  TOS_MsgPtr TOSBaseM$UARTTokenReceive$receive(TOS_MsgPtr Msg, uint8_t Token);static  #line 244void TOSBaseM$RadioSendTask(void);static inline  #line 269result_t TOSBaseM$RadioSend$sendDone(TOS_MsgPtr msg, result_t success);static inline #line 287void TOSBaseM$dropBlink(void);static inline void TOSBaseM$failBlink(void);static  # 66 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/SlavePin.nc"result_t SlavePinM$SlavePin$notifyHigh(void);static   # 47 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/HPLSlavePin.nc"result_t SlavePinM$HPLSlavePin$low(void);static   result_t SlavePinM$HPLSlavePin$high(void);# 90 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/SlavePinM.nc"int8_t SlavePinM$n;bool SlavePinM$signalHigh;static #line 110__inline   result_t SlavePinM$SlavePin$low(void);static inline  void SlavePinM$signalHighTask(void);static __inline   result_t SlavePinM$SlavePin$high(bool needEvent);static inline   # 52 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/HPLSlavePinC.nc"result_t HPLSlavePinC$SlavePin$high(void);static inline   result_t HPLSlavePinC$SlavePin$low(void);static   # 34 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/RadioTiming.nc"uint16_t MicaHighSpeedRadioM$RadioTiming$currentTime(void);static   #line 33uint16_t MicaHighSpeedRadioM$RadioTiming$getTiming(void);static  # 67 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/BareSendMsg.nc"result_t MicaHighSpeedRadioM$Send$sendDone(TOS_MsgPtr arg_0xa2dfd38, result_t arg_0xa2dfe88);static   # 57 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Random.nc"result_t MicaHighSpeedRadioM$Random$init(void);static   # 33 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/RadioEncoding.nc"result_t MicaHighSpeedRadioM$Code$encode_flush(void);static   result_t MicaHighSpeedRadioM$Code$decode(char arg_0xa361098);static   #line 34result_t MicaHighSpeedRadioM$Code$encode(char arg_0xa360c88);static   # 41 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/PowerManagement.nc"uint8_t MicaHighSpeedRadioM$PowerManagement$adjustPower(void);static  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc"TOS_MsgPtr MicaHighSpeedRadioM$Receive$receive(TOS_MsgPtr arg_0xa2cb490);static   # 36 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/RadioCoordinator.nc"void MicaHighSpeedRadioM$RadioReceiveCoordinator$byte(TOS_MsgPtr arg_0xa35ab10, uint8_t arg_0xa35ac60);static   void MicaHighSpeedRadioM$RadioReceiveCoordinator$blockTimer(void);static   #line 31void MicaHighSpeedRadioM$RadioReceiveCoordinator$startSymbol(uint8_t arg_0xa35a400, uint8_t arg_0xa35a548, TOS_MsgPtr arg_0xa35a698);static   # 33 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/SpiByteFifo.nc"result_t MicaHighSpeedRadioM$SpiByteFifo$send(uint8_t arg_0xa36c8f0);static   result_t MicaHighSpeedRadioM$SpiByteFifo$phaseShift(void);static   #line 35result_t MicaHighSpeedRadioM$SpiByteFifo$startReadBytes(uint16_t arg_0xa36cfe0);static   #line 34result_t MicaHighSpeedRadioM$SpiByteFifo$idle(void);static   result_t MicaHighSpeedRadioM$SpiByteFifo$txMode(void);static   result_t MicaHighSpeedRadioM$SpiByteFifo$rxMode(void);static   # 36 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/RadioCoordinator.nc"void MicaHighSpeedRadioM$RadioSendCoordinator$byte(TOS_MsgPtr arg_0xa35ab10, uint8_t arg_0xa35ac60);static   void MicaHighSpeedRadioM$RadioSendCoordinator$blockTimer(void);static   #line 31void MicaHighSpeedRadioM$RadioSendCoordinator$startSymbol(uint8_t arg_0xa35a400, uint8_t arg_0xa35a548, TOS_MsgPtr arg_0xa35a698);static   # 36 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/ChannelMon.nc"result_t MicaHighSpeedRadioM$ChannelMon$macDelay(void);static   #line 34result_t MicaHighSpeedRadioM$ChannelMon$startSymbolSearch(void);static   #line 33result_t MicaHighSpeedRadioM$ChannelMon$init(void);# 55 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/MicaHighSpeedRadioM.nc"enum MicaHighSpeedRadioM$__nesc_unnamed4262 {  MicaHighSpeedRadioM$IDLE_STATE,   MicaHighSpeedRadioM$SEND_WAITING,   MicaHighSpeedRadioM$RX_STATE,   MicaHighSpeedRadioM$TRANSMITTING,   MicaHighSpeedRadioM$WAITING_FOR_ACK,   MicaHighSpeedRadioM$SENDING_STRENGTH_PULSE,   MicaHighSpeedRadioM$TRANSMITTING_START,   MicaHighSpeedRadioM$RX_DONE_STATE,   MicaHighSpeedRadioM$ACK_SEND_STATE,   MicaHighSpeedRadioM$STOPPED_STATE};enum MicaHighSpeedRadioM$__nesc_unnamed4263 {  MicaHighSpeedRadioM$ACK_CNT = 4,   MicaHighSpeedRadioM$ENCODE_PACKET_LENGTH_DEFAULT = MSG_DATA_SIZE * 3};char  TOSH_MHSR_start[12] = { 0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xff, 0x0f, 0x00, 0xff, 0x0f, 0x0f, 0x0f };char MicaHighSpeedRadioM$state;char MicaHighSpeedRadioM$send_state;char MicaHighSpeedRadioM$tx_count;uint16_t MicaHighSpeedRadioM$calc_crc;uint8_t MicaHighSpeedRadioM$ack_count;char MicaHighSpeedRadioM$rec_count;TOS_Msg MicaHighSpeedRadioM$buffer;TOS_Msg *MicaHighSpeedRadioM$rec_ptr;TOS_Msg *MicaHighSpeedRadioM$send_ptr;unsigned char MicaHighSpeedRadioM$rx_count;char MicaHighSpeedRadioM$msg_length;char MicaHighSpeedRadioM$buf_head;char MicaHighSpeedRadioM$buf_end;char MicaHighSpeedRadioM$encoded_buffer[4];char MicaHighSpeedRadioM$enc_count;static inline  void MicaHighSpeedRadioM$packetReceived(void);static inline  #line 112void MicaHighSpeedRadioM$packetSent(void);static inline  #line 124result_t MicaHighSpeedRadioM$Send$send(TOS_MsgPtr msg);static inline  #line 143result_t MicaHighSpeedRadioM$Control$init(void);static inline  result_t MicaHighSpeedRadioM$Control$start(void);static inline   #line 196result_t MicaHighSpeedRadioM$ChannelMon$startSymDetect(void);static inline   #line 217result_t MicaHighSpeedRadioM$ChannelMon$idleDetect(void);static inline   #line 257result_t MicaHighSpeedRadioM$Code$decodeDone(char data, char error);static   #line 297result_t MicaHighSpeedRadioM$Code$encodeDone(char data1);static   result_t MicaHighSpeedRadioM$SpiByteFifo$dataReady(uint8_t data);static inline    #line 400void MicaHighSpeedRadioM$RadioSendCoordinator$default$startSymbol(uint8_t bitsPerBlock, uint8_t offset, TOS_MsgPtr msgBuff);static inline    void MicaHighSpeedRadioM$RadioSendCoordinator$default$byte(TOS_MsgPtr msg, uint8_t byteCount);static inline    void MicaHighSpeedRadioM$RadioSendCoordinator$default$blockTimer(void);static inline    void MicaHighSpeedRadioM$RadioReceiveCoordinator$default$startSymbol(uint8_t bitsPerBlock, uint8_t offset, TOS_MsgPtr msgBuff);static inline    void MicaHighSpeedRadioM$RadioReceiveCoordinator$default$byte(TOS_MsgPtr msg, uint8_t byteCount);static inline    void MicaHighSpeedRadioM$RadioReceiveCoordinator$default$blockTimer(void);static   # 36 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/RadioEncoding.nc"result_t SecDedEncoding$Code$decodeDone(char arg_0xa3614b0, char arg_0xa3615f0);static   result_t SecDedEncoding$Code$encodeDone(char arg_0xa361a10);# 39 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/SecDedEncoding.nc"enum SecDedEncoding$__nesc_unnamed4264 {  SecDedEncoding$IDLE_STATE = 0,   SecDedEncoding$DECODING_BYTE_3 = 1,   SecDedEncoding$DECODING_BYTE_2 = 2,   SecDedEncoding$DECODING_BYTE_1 = 3,   SecDedEncoding$ENCODING_BYTE = 4};char SecDedEncoding$data1;char SecDedEncoding$data2;char SecDedEncoding$data3;char SecDedEncoding$state;static inline void SecDedEncoding$radio_decode_thread(void);static inline void SecDedEncoding$radio_encode_thread(void);static inline   result_t SecDedEncoding$Code$decode(char d1);static inline   #line 76result_t SecDedEncoding$Code$encode_flush(void);static   result_t SecDedEncoding$Code$encode(char d);static inline #line 99void SecDedEncoding$radio_encode_thread(void);static inline #line 167void SecDedEncoding$radio_decode_thread(void);# 54 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/RandomLFSR.nc"uint16_t RandomLFSR$shiftReg;uint16_t RandomLFSR$initSeed;uint16_t RandomLFSR$mask;static inline   result_t RandomLFSR$Random$init(void);static   uint16_t RandomLFSR$Random$rand(void);static   # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/Random.nc"uint16_t ChannelMonC$Random$rand(void);static   # 39 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/ChannelMon.nc"result_t ChannelMonC$ChannelMon$idleDetect(void);static   #line 38result_t ChannelMonC$ChannelMon$startSymDetect(void);# 42 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/ChannelMonC.nc"enum ChannelMonC$__nesc_unnamed4265 {  ChannelMonC$IDLE_STATE,   ChannelMonC$START_SYMBOL_SEARCH,   ChannelMonC$PACKET_START,   ChannelMonC$DISABLED_STATE};enum ChannelMonC$__nesc_unnamed4266 {  ChannelMonC$SAMPLE_RATE = 100 / 2 * 4};unsigned short ChannelMonC$CM_search[2];char ChannelMonC$CM_state;unsigned char ChannelMonC$CM_lastBit;unsigned char ChannelMonC$CM_startSymBits;short ChannelMonC$CM_waiting;static inline   result_t ChannelMonC$ChannelMon$init(void);static   result_t ChannelMonC$ChannelMon$startSymbolSearch(void);#line 94void __attribute((signal))   __vector_9(void);static inline   #line 151result_t ChannelMonC$ChannelMon$macDelay(void);static inline   # 40 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/RadioTimingC.nc"uint16_t RadioTimingC$RadioTiming$getTiming(void);static inline   #line 55uint16_t RadioTimingC$RadioTiming$currentTime(void);static   # 51 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica/SlavePin.nc"result_t SpiByteFifoC$SlavePin$low(void);static   result_t SpiByteFifoC$SlavePin$high(bool arg_0xa31e0f0);static   

⌨️ 快捷键说明

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