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

📄 app.c

📁 主要用于无线传感网络的编写的书籍.对于初学者有着很大的用处
💻 C
📖 第 1 页 / 共 5 页
字号:
# 105 "/usr/local/mspgcc/msp430/include/msp430/timera.h" 3typedef struct __nesc_unnamed4251 {  volatile unsigned   taifg : 1,   taie : 1,   taclr : 1,   dummy : 1,   tamc : 2,   taid : 2,   tassel : 2;} __attribute((packed))  tactl_t;typedef struct __nesc_unnamed4252 {  volatile unsigned   ccifg : 1,   cov : 1,   out : 1,   cci : 1,   ccie : 1,   outmod : 3,   cap : 1,   dummy : 1,   scci : 1,   scs : 1,   ccis : 2,   cm : 2;} __attribute((packed))  tacctl_t;struct timera_t {  tactl_t ctl;  tacctl_t cctl0;  tacctl_t cctl1;  tacctl_t cctl2;  volatile unsigned dummy[4];  volatile unsigned tar;  volatile unsigned taccr0;  volatile unsigned taccr1;  volatile unsigned taccr2;};struct timera_t;# 22 "/usr/local/mspgcc/msp430/include/msp430/timerb.h"volatile unsigned int TBIV __asm ("0x011E");volatile unsigned int TBCTL __asm ("0x0180");volatile unsigned int TBCCTL0 __asm ("0x0182");volatile unsigned int TBCCTL1 __asm ("0x0184");volatile unsigned int TBCCTL2 __asm ("0x0186");volatile unsigned int TBR __asm ("0x0190");volatile unsigned int TBCCTL3 __asm ("0x0188");volatile unsigned int TBCCTL4 __asm ("0x018A");volatile unsigned int TBCCTL5 __asm ("0x018C");volatile unsigned int TBCCTL6 __asm ("0x018E");#line 63typedef struct __nesc_unnamed4253 {  volatile unsigned   tbifg : 1,   tbie : 1,   tbclr : 1,   dummy1 : 1,   tbmc : 2,   tbid : 2,   tbssel : 2,   dummy2 : 1,   tbcntl : 2,   tbclgrp : 2;} __attribute((packed))  tbctl_t;typedef struct __nesc_unnamed4254 {  volatile unsigned   ccifg : 1,   cov : 1,   out : 1,   cci : 1,   ccie : 1,   outmod : 3,   cap : 1,   clld : 2,   scs : 1,   ccis : 2,   cm : 2;} __attribute((packed))  tbcctl_t;struct timerb_t {  tbctl_t ctl;  tbcctl_t cctl0;  tbcctl_t cctl1;  tbcctl_t cctl2;  tbcctl_t cctl3;  tbcctl_t cctl4;  tbcctl_t cctl5;  tbcctl_t cctl6;  volatile unsigned tbr;  volatile unsigned tbccr0;  volatile unsigned tbccr1;  volatile unsigned tbccr2;  volatile unsigned tbccr3;  volatile unsigned tbccr4;  volatile unsigned tbccr5;  volatile unsigned tbccr6;};struct timerb_t;# 18 "/usr/local/mspgcc/msp430/include/msp430/basic_clock.h"volatile unsigned char DCOCTL __asm ("0x0056");volatile unsigned char BCSCTL1 __asm ("0x0057");volatile unsigned char BCSCTL2 __asm ("0x0058");# 18 "/usr/local/mspgcc/msp430/include/msp430/adc12.h"volatile unsigned int ADC12CTL0 __asm ("0x01A0");volatile unsigned int ADC12CTL1 __asm ("0x01A2");typedef struct __nesc_unnamed4255 {  volatile unsigned   adc12sc : 1,   enc : 1,   adc12tovie : 1,   adc12ovie : 1,   adc12on : 1,   refon : 1,   r2_5v : 1,   msc : 1,   sht0 : 4,   sht1 : 4;} __attribute((packed))  adc12ctl0_t;typedef struct __nesc_unnamed4256 {  volatile unsigned   adc12busy : 1,   conseq : 2,   adc12ssel : 2,   adc12div : 3,   issh : 1,   shp : 1,   shs : 2,   cstartadd : 4;} __attribute((packed))  adc12ctl1_t;typedef struct __nesc_unnamed4257 {  volatile unsigned   bit0 : 1,   bit1 : 1,   bit2 : 1,   bit3 : 1,   bit4 : 1,   bit5 : 1,   bit6 : 1,   bit7 : 1,   bit8 : 1,   bit9 : 1,   bit10 : 1,   bit11 : 1,   bit12 : 1,   bit13 : 1,   bit14 : 1,   bit15 : 1;} __attribute((packed))  adc12xflg_t;struct adc12_t {  adc12ctl0_t ctl0;  adc12ctl1_t ctl1;  adc12xflg_t ifg;  adc12xflg_t ie;  adc12xflg_t iv;};struct adc12_t;# 44 "/usr/local/mspgcc/msp430/include/msp430x16x.h"volatile unsigned char IE1 __asm ("0x0000");volatile unsigned char IFG1 __asm ("0x0002");volatile unsigned char IE2 __asm ("0x0001");volatile unsigned char ME1 __asm ("0x0004");volatile unsigned char ME2 __asm ("0x0005"); # 130 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/msp430/msp430hardware.h"static volatile uint8_t U0CTLnr __asm ("0x0070"); static volatile uint8_t I2CTCTLnr __asm ("0x0071"); static volatile uint8_t I2CDCTLnr __asm ("0x0072");static __inline void TOSH_wait(void );static #line 156__inline void TOSH_uwait(uint16_t u);static inline #line 178void __nesc_disable_interrupt(void);static inline void __nesc_enable_interrupt(void);static inline bool are_interrupts_enabled(void);typedef bool __nesc_atomic_t;static inline __nesc_atomic_t __nesc_atomic_start(void );static inline void __nesc_atomic_end(__nesc_atomic_t oldSreg);static inline __nesc_atomic_t __nesc_atomic_start(void );static inline void __nesc_atomic_end(__nesc_atomic_t reenable_interrupts); bool LPMode_disabled = FALSE;static __inline void TOSH_sleep(void);# 103 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/msp430/MSP430ADC12.h"typedef struct __nesc_unnamed4258 {  unsigned int refVolt2_5 : 1;  unsigned int clockSourceSHT : 2;  unsigned int clockSourceSAMPCON : 2;  unsigned int clockDivSAMPCON : 2;  unsigned int referenceVoltage : 3;  unsigned int clockDivSHT : 3;  unsigned int inputChannel : 4;  unsigned int sampleHoldTime : 4;  unsigned int  : 0;} MSP430ADC12Settings_t;typedef enum __nesc_unnamed4259 {  MSP430ADC12_FAIL = 0,   MSP430ADC12_SUCCESS = 1,   MSP430ADC12_DELAYED = 2} msp430ADCresult_t;enum refVolt2_5_enum {  REFVOLT_LEVEL_1_5 = 0,   REFVOLT_LEVEL_2_5 = 1};enum clockDivSHT_enum {  SHT_CLOCK_DIV_1 = 0,   SHT_CLOCK_DIV_2 = 1,   SHT_CLOCK_DIV_3 = 2,   SHT_CLOCK_DIV_4 = 3,   SHT_CLOCK_DIV_5 = 4,   SHT_CLOCK_DIV_6 = 5,   SHT_CLOCK_DIV_7 = 6,   SHT_CLOCK_DIV_8 = 7};enum clockDivSAMPCON_enum {  SAMPCON_CLOCK_DIV_1 = 0,   SAMPCON_CLOCK_DIV_2 = 1,   SAMPCON_CLOCK_DIV_3 = 2,   SAMPCON_CLOCK_DIV_4 = 3};enum clockSourceSAMPCON_enum {  SAMPCON_SOURCE_TACLK = 0,   SAMPCON_SOURCE_ACLK = 1,   SAMPCON_SOURCE_SMCLK = 2,   SAMPCON_SOURCE_INCLK = 3};enum inputChannel_enum {  INPUT_CHANNEL_A0 = 0,   INPUT_CHANNEL_A1 = 1,   INPUT_CHANNEL_A2 = 2,   INPUT_CHANNEL_A3 = 3,   INPUT_CHANNEL_A4 = 4,   INPUT_CHANNEL_A5 = 5,   INPUT_CHANNEL_A6 = 6,   INPUT_CHANNEL_A7 = 7,   EXTERNAL_REFERENCE_VOLTAGE = 8,   REFERENCE_VOLTAGE_NEGATIVE_TERMINAL = 9,   INTERNAL_TEMPERATURE = 10,   INTERNAL_VOLTAGE = 11};enum referenceVoltage_enum {  REFERENCE_AVcc_AVss = 0,   REFERENCE_VREFplus_AVss = 1,   REFERENCE_VeREFplus_AVss = 2,   REFERENCE_AVcc_VREFnegterm = 4,   REFERENCE_VREFplus_VREFnegterm = 5,   REFERENCE_VeREFplus_VREFnegterm = 6};enum clockSourceSHT_enum {  SHT_SOURCE_ADC12OSC = 0,   SHT_SOURCE_ACLK = 1,   SHT_SOURCE_MCLK = 2,   SHT_SOURCE_SMCLK = 3};enum sampleHold_enum {  SAMPLE_HOLD_4_CYCLES = 0,   SAMPLE_HOLD_8_CYCLES = 1,   SAMPLE_HOLD_16_CYCLES = 2,   SAMPLE_HOLD_32_CYCLES = 3,   SAMPLE_HOLD_64_CYCLES = 4,   SAMPLE_HOLD_96_CYCLES = 5,   SAMPLE_HOLD_123_CYCLES = 6,   SAMPLE_HOLD_192_CYCLES = 7,   SAMPLE_HOLD_256_CYCLES = 8,   SAMPLE_HOLD_384_CYCLES = 9,   SAMPLE_HOLD_512_CYCLES = 10,   SAMPLE_HOLD_768_CYCLES = 11,   SAMPLE_HOLD_1024_CYCLES = 12};typedef union __nesc_unnamed4260 {  uint32_t i;  MSP430ADC12Settings_t s;} MSP430ADC12Settings_ut;enum __nesc_unnamed4261 {  ADC_IDLE = 0,   SINGLE_CHANNEL = 1,   REPEAT_SINGLE_CHANNEL = 2,   SEQUENCE_OF_CHANNELS = 4,   REPEAT_SEQUENCE_OF_CHANNELS = 8,   TIMER_USED = 16,   RESERVED = 32,   VREF_WAIT = 64};#line 253typedef struct __nesc_unnamed4262 {  volatile unsigned   inch : 4,   sref : 3,   eos : 1;} __attribute((packed))  adc12memctl_t;typedef struct __nesc_unnamed4263 {  unsigned int refVolt2_5 : 1;  unsigned int gotRefVolt : 1;  unsigned int result_16bit : 1;  unsigned int clockSourceSHT : 2;  unsigned int clockSourceSAMPCON : 2;  unsigned int clockDivSAMPCON : 2;  unsigned int clockDivSHT : 3;  unsigned int sampleHoldTime : 4;  adc12memctl_t memctl;} __attribute((packed))  adc12settings_t;# 58 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420Const.h"enum __nesc_unnamed4264 {  CC2420_TIME_BIT = 4,   CC2420_TIME_BYTE = CC2420_TIME_BIT << 3,   CC2420_TIME_SYMBOL = 16};enum __nesc_unnamed4265 {  CC2420_MIN_CHANNEL = 11,   CC2420_MAX_CHANNEL = 26};#line 257enum __nesc_unnamed4266 {  CP_MAIN = 0,   CP_MDMCTRL0,   CP_MDMCTRL1,   CP_RSSI,   CP_SYNCWORD,   CP_TXCTRL,   CP_RXCTRL0,   CP_RXCTRL1,   CP_FSCTRL,   CP_SECCTRL0,   CP_SECCTRL1,   CP_BATTMON,   CP_IOCFG0,   CP_IOCFG1};# 46 "C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/telos/AM.h"enum __nesc_unnamed4267 {  TOS_BCAST_ADDR = 0xffff,   TOS_UART_ADDR = 0x007e};

⌨️ 快捷键说明

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