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

📄 app.c

📁 主要用于无线传感网络的编写的书籍.对于初学者有着很大的用处
💻 C
📖 第 1 页 / 共 5 页
字号:
result_t HPLSpiM$SpiByteFifo$rxMode(void);# 50 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/LedsC.nc"uint8_t LedsC$ledsOn;enum LedsC$__nesc_unnamed4277 {  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   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 inline   result_t LedsC$Leds$yellowOn(void);static inline   result_t LedsC$Leds$yellowOff(void);static   result_t LedsC$Leds$yellowToggle(void);static  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc"TOS_MsgPtr FramerM$ReceiveMsg$receive(TOS_MsgPtr arg_0xa338968);static   # 55 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ByteComm.nc"result_t FramerM$ByteComm$txByte(uint8_t arg_0xa57d060);static  # 63 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc"result_t FramerM$ByteControl$init(void);static  result_t FramerM$ByteControl$start(void);static  # 67 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/BareSendMsg.nc"result_t FramerM$BareSendMsg$sendDone(TOS_MsgPtr arg_0xa33d250, result_t arg_0xa33d3a0);static  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/TokenReceiveMsg.nc"TOS_MsgPtr FramerM$TokenReceiveMsg$receive(TOS_MsgPtr arg_0xa3420a0, uint8_t arg_0xa3421e8);# 82 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/FramerM.nc"enum FramerM$__nesc_unnamed4278 {  FramerM$HDLC_QUEUESIZE = 2,   FramerM$HDLC_MTU = sizeof(TOS_Msg ),   FramerM$HDLC_FLAG_BYTE = 0x7e,   FramerM$HDLC_CTLESC_BYTE = 0x7d,   FramerM$PROTO_ACK = 64,   FramerM$PROTO_PACKET_ACK = 65,   FramerM$PROTO_PACKET_NOACK = 66,   FramerM$PROTO_UNKNOWN = 255};enum FramerM$__nesc_unnamed4279 {  FramerM$RXSTATE_NOSYNC,   FramerM$RXSTATE_PROTO,   FramerM$RXSTATE_TOKEN,   FramerM$RXSTATE_INFO,   FramerM$RXSTATE_ESC};enum FramerM$__nesc_unnamed4280 {  FramerM$TXSTATE_IDLE,   FramerM$TXSTATE_PROTO,   FramerM$TXSTATE_INFO,   FramerM$TXSTATE_ESC,   FramerM$TXSTATE_FCS1,   FramerM$TXSTATE_FCS2,   FramerM$TXSTATE_ENDFLAG,   FramerM$TXSTATE_FINISH,   FramerM$TXSTATE_ERROR};enum FramerM$__nesc_unnamed4281 {  FramerM$FLAGS_TOKENPEND = 0x2,   FramerM$FLAGS_DATAPEND = 0x4,   FramerM$FLAGS_UNKNOWN = 0x8};TOS_Msg FramerM$gMsgRcvBuf[FramerM$HDLC_QUEUESIZE];typedef struct FramerM$_MsgRcvEntry {  uint8_t Proto;  uint8_t Token;  uint16_t Length;  TOS_MsgPtr pMsg;} FramerM$MsgRcvEntry_t;FramerM$MsgRcvEntry_t FramerM$gMsgRcvTbl[FramerM$HDLC_QUEUESIZE];uint8_t *FramerM$gpRxBuf;uint8_t *FramerM$gpTxBuf;uint8_t FramerM$gFlags; uint8_t FramerM$gTxState; uint8_t FramerM$gPrevTxState; uint16_t FramerM$gTxProto; uint16_t FramerM$gTxByteCnt; uint16_t FramerM$gTxLength; uint16_t FramerM$gTxRunningCRC;uint8_t FramerM$gRxState;uint8_t FramerM$gRxHeadIndex;uint8_t FramerM$gRxTailIndex;uint16_t FramerM$gRxByteCnt;uint16_t FramerM$gRxRunningCRC;TOS_MsgPtr FramerM$gpTxMsg;uint8_t FramerM$gTxTokenBuf;uint8_t FramerM$gTxUnknownBuf; uint8_t FramerM$gTxEscByte;static  void FramerM$PacketSent(void);static result_t FramerM$StartTx(void);static inline  #line 202void FramerM$PacketUnknown(void);static inline  void FramerM$PacketRcvd(void);static  #line 246void FramerM$PacketSent(void);static #line 268void FramerM$HDLCInitialize(void);static inline  #line 291result_t FramerM$StdControl$init(void);static inline  result_t FramerM$StdControl$start(void);static inline  result_t FramerM$BareSendMsg$send(TOS_MsgPtr pMsg);static inline  #line 328result_t FramerM$TokenReceiveMsg$ReflectToken(uint8_t Token);static   #line 348result_t FramerM$ByteComm$rxByteReady(uint8_t data, bool error, uint16_t strength);static #line 469result_t FramerM$TxArbitraryByte(uint8_t inByte);static inline   #line 482result_t FramerM$ByteComm$txByteReady(bool LastByteSuccess);static inline   #line 552result_t FramerM$ByteComm$txDone(void);static   # 62 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLUART.nc"result_t UARTM$HPLUART$init(void);static   #line 80result_t UARTM$HPLUART$put(uint8_t arg_0xa5adf00);static   # 83 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ByteComm.nc"result_t UARTM$ByteComm$txDone(void);static   #line 75result_t UARTM$ByteComm$txByteReady(bool arg_0xa57dcc0);static   #line 66result_t UARTM$ByteComm$rxByteReady(uint8_t arg_0xa57d4f0, bool arg_0xa57d638, uint16_t arg_0xa57d790);# 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/UARTM.nc"bool UARTM$state;static inline  result_t UARTM$Control$init(void);static inline  result_t UARTM$Control$start(void);static inline   result_t UARTM$HPLUART$get(uint8_t data);static   result_t UARTM$HPLUART$putDone(void);static   #line 110result_t UARTM$ByteComm$txByte(uint8_t data);static   # 88 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLUART.nc"result_t HPLUART0M$UART$get(uint8_t arg_0xa5c4438);static   result_t HPLUART0M$UART$putDone(void);static inline   # 60 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLUART0M.nc"result_t HPLUART0M$UART$init(void);#line 90void __attribute((signal))   __vector_18(void);void __attribute((interrupt))   __vector_20(void);static inline   result_t HPLUART0M$UART$put(uint8_t data);# 120 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/hardware.h"static __inline void TOSH_CLR_SERIAL_ID_PIN(void)#line 120{#line 120  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1B + 0x20) &= ~(1 << 4);}#line 120static __inline void TOSH_MAKE_SERIAL_ID_INPUT(void)#line 120{#line 120  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1A + 0x20) &= ~(1 << 4);}#line 145static __inline void TOSH_MAKE_SPI_OC1C_INPUT(void)#line 145{#line 145  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x17 + 0x20) &= ~(1 << 7);}#line 144static __inline void TOSH_MAKE_MISO_INPUT(void)#line 144{#line 144  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x17 + 0x20) &= ~(1 << 3);}#line 127static __inline void TOSH_MAKE_CC_PCLK_OUTPUT(void)#line 127{#line 127  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 6;}#line 126static __inline void TOSH_MAKE_CC_PDATA_OUTPUT(void)#line 126{#line 126  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 7;}#line 128static __inline void TOSH_MAKE_CC_PALE_OUTPUT(void)#line 128{#line 128  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x11 + 0x20) |= 1 << 4;}#line 149static __inline void TOSH_MAKE_PW0_OUTPUT(void)#line 149{#line 149  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 0;}#line 150static __inline void TOSH_MAKE_PW1_OUTPUT(void)#line 150{#line 150  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 1;}#line 151static __inline void TOSH_MAKE_PW2_OUTPUT(void)#line 151{#line 151  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 2;}#line 152static __inline void TOSH_MAKE_PW3_OUTPUT(void)#line 152{#line 152  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 3;}#line 153static __inline void TOSH_MAKE_PW4_OUTPUT(void)#line 153{#line 153  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 4;}#line 154static __inline void TOSH_MAKE_PW5_OUTPUT(void)#line 154{#line 154  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 5;}#line 155static __inline void TOSH_MAKE_PW6_OUTPUT(void)#line 155{#line 155  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 6;}#line 156static __inline void TOSH_MAKE_PW7_OUTPUT(void)#line 156{#line 156  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x14 + 0x20) |= 1 << 7;}#line 125static __inline void TOSH_MAKE_CC_CHP_OUT_INPUT(void)#line 125{#line 125  * (volatile unsigned char *)(unsigned int )& * (volatile unsigned char *)(0x1A + 0x20) &= ~(1 << 6);}static inline #line 171void TOSH_SET_PIN_DIRECTIONS(void ){  TOSH_MAKE_CC_CHP_OUT_INPUT();  TOSH_MAKE_PW7_OUTPUT();  TOSH_MAKE_PW6_OUTPUT();  TOSH_MAKE_PW5_OUTPUT();  TOSH_MAKE_PW4_OUTPUT();  TOSH_MAKE_PW3_OUTPUT();  TOSH_MAKE_PW2_OUTPUT();  TOSH_MAKE_PW1_OUTPUT();  TOSH_MAKE_PW0_OUTPUT();  TOSH_MAKE_CC_PALE_OUTPUT();  TOSH_MAKE_CC_PDATA_OUTPUT();  TOSH_MAKE_CC_PCLK_OUTPUT();  TOSH_MAKE_MISO_INPUT();  TOSH_MAKE_SPI_OC1C_INPUT();  TOSH_MAKE_SERIAL_ID_INPUT();  TOSH_CLR_SERIAL_ID_PIN();}static inline  # 57 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/avrmote/HPLInit.nc"result_t HPLInit$init(void)#line 57{  TOSH_SET_PIN_DIRECTIONS();  return SUCCESS;}# 47 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc"inline static  result_t RealMain$hardwareInit(void){#line 47  unsigned char result;#line 47#line 47  result = HPLInit$init();#line 47#line 47  return result;#line 47}#line 47static inline  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLPotC.nc"result_t HPLPotC$Pot$finalise(void)#line 75{  return SUCCESS;}# 74 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"inline static  result_t PotM$HPLPot$finalise(void){#line 74  unsigned char result;#line 74#line 74  result = HPLPotC$Pot$finalise();#line 74#line 74  return result;#line 74}#line 74static inline  # 66 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLPotC.nc"result_t HPLPotC$Pot$increase(void)#line 66{  return SUCCESS;}# 67 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"inline static  result_t PotM$HPLPot$increase(void){#line 67  unsigned char result;#line 67#line 67  result = HPLPotC$Pot$increase();#line 67#line 67  return result;#line 67}#line 67static inline  # 57 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLPotC.nc"result_t HPLPotC$Pot$decrease(void)#line 57{  return SUCCESS;}# 59 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLPot.nc"inline static  result_t PotM$HPLPot$decrease(void){#line 59

⌨️ 快捷键说明

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