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

📄 app.c

📁 主要用于无线传感网络的编写的书籍.对于初学者有着很大的用处
💻 C
📖 第 1 页 / 共 5 页
字号:
1416, 1618, 1820, 2022, 2224, 2427, 2629, 2831 };const uint16_t CC1000ControlM$FSepTbl[9] = { 0x1AA, 0x1F1, 0x238, 0x280, 0x2C7, 0x30E, 0x355, 0x39C, 0x3E3 };static inline #line 131result_t CC1000ControlM$chipcon_cal(void);static inline #line 187void CC1000ControlM$cc1000SetFreq(void);static inline #line 203void CC1000ControlM$cc1000SetModem(void);static inline #line 230uint32_t CC1000ControlM$cc1000ComputeFreq(uint32_t desiredFreq);static inline  #line 342result_t CC1000ControlM$StdControl$init(void);static inline  #line 411uint32_t CC1000ControlM$CC1000Control$TuneManual(uint32_t DesiredFreq);static   result_t CC1000ControlM$CC1000Control$TxMode(void);static   #line 434result_t CC1000ControlM$CC1000Control$RxMode(void);static inline  #line 456result_t CC1000ControlM$CC1000Control$BIASOn(void);static inline  #line 468result_t CC1000ControlM$StdControl$stop(void);static inline  result_t CC1000ControlM$StdControl$start(void);static inline  #line 504result_t CC1000ControlM$CC1000Control$SelectLock(uint8_t Value);static inline  #line 516bool CC1000ControlM$CC1000Control$GetLOStatus(void);static inline  # 51 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLCC1000M.nc"result_t HPLCC1000M$HPLCC1000$init(void);static   #line 75result_t HPLCC1000M$HPLCC1000$write(uint8_t addr, uint8_t data);static   #line 128uint8_t HPLCC1000M$HPLCC1000$read(uint8_t addr);# 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   # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/HPLADC.nc"result_t ADCREFM$HPLADC$bindPort(uint8_t arg_0xa5548b8, uint8_t arg_0xa554a00);static   #line 54result_t ADCREFM$HPLADC$init(void);static   #line 77result_t ADCREFM$HPLADC$samplePort(uint8_t arg_0xa554ee8);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_0xa55a800, # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa49ce68);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_0xa55a178, # 70 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ADC.nc"uint16_t arg_0xa49ce68);# 80 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/ADCREFM.nc"enum ADCREFM$__nesc_unnamed4276 {  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_0xa555a10);# 60 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/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   # 41 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/PowerManagement.nc"uint8_t HPLSpiM$PowerManagement$adjustPower(void);static   # 42 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/SpiByteFifo.nc"result_t HPLSpiM$SpiByteFifo$dataReady(uint8_t arg_0xa49fc48); # 51 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLSpiM.nc"uint8_t HPLSpiM$OutgoingByte;void __attribute((signal))   __vector_17(void);static inline   result_t HPLSpiM$SpiByteFifo$writeByte(uint8_t data);static inline   #line 74result_t HPLSpiM$SpiByteFifo$enableIntr(void);static   result_t HPLSpiM$SpiByteFifo$disableIntr(void);static inline   result_t HPLSpiM$SpiByteFifo$initSlave(void);static inline   #line 103result_t HPLSpiM$SpiByteFifo$txMode(void);static inline   result_t HPLSpiM$SpiByteFifo$rxMode(void);static  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc"TOS_MsgPtr FramerM$ReceiveMsg$receive(TOS_MsgPtr arg_0xa3568f8);static   # 55 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ByteComm.nc"result_t FramerM$ByteComm$txByte(uint8_t arg_0xa5caba0);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_0xa42d408, result_t arg_0xa42d558);static  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/TokenReceiveMsg.nc"TOS_MsgPtr FramerM$TokenReceiveMsg$receive(TOS_MsgPtr arg_0xa5b2770, uint8_t arg_0xa5b28b8);# 82 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/FramerM.nc"enum FramerM$__nesc_unnamed4277 {  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_unnamed4278 {  FramerM$RXSTATE_NOSYNC,   FramerM$RXSTATE_PROTO,   FramerM$RXSTATE_TOKEN,   FramerM$RXSTATE_INFO,   FramerM$RXSTATE_ESC};enum FramerM$__nesc_unnamed4279 {  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_unnamed4280 {  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  # 75 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc"TOS_MsgPtr FramerAckM$ReceiveCombined$receive(TOS_MsgPtr arg_0xa3568f8);static  # 88 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/TokenReceiveMsg.nc"result_t FramerAckM$TokenReceiveMsg$ReflectToken(uint8_t arg_0xa5b2ed0);# 72 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/FramerAckM.nc"uint8_t FramerAckM$gTokenBuf;static inline  void FramerAckM$SendAckTask(void);static inline  TOS_MsgPtr FramerAckM$TokenReceiveMsg$receive(TOS_MsgPtr Msg, uint8_t token);static inline  #line 91TOS_MsgPtr FramerAckM$ReceiveMsg$receive(TOS_MsgPtr Msg);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_0xa5fd608);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_0xa5cb800);static   #line 66result_t UARTM$ByteComm$rxByteReady(uint8_t arg_0xa5cb030, bool arg_0xa5cb178, uint16_t arg_0xa5cb2d0);# 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_0xa5fdb08);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;

⌨️ 快捷键说明

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