亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ultrasoundcontrolm.nc

?? 無線傳感器網絡中的節點定位算法。詳見ReadMe文件。在TinyOS上實現的節點定位算法。
?? NC
字號:
/** * Cricket v2 Ultrasound Control implementation. * @author David Moore */module UltrasoundControlM {    provides {        interface UltrasoundControl;    }}implementation {    /*     * Resets the timer that measures the number of microseconds until     * each incoming pulse of the ultrasound receiver.  The     * PulseDetected event will be generated for each rising edge of     * the pulse.  timeout specifies the number of microseconds before     * the timer is disabled, at which time the DetectorTimeout event     * is generated.     */    async command result_t UltrasoundControl.StartDetector(uint16_t timeout)    {        atomic {	    /* Enable ultrasonic receiver */	    //cbi(PORTB, 4);            /* Reset the counter to zero */            outp(0x00, TCNT1H);            outp(0x00, TCNT1L);            /* Set the maximum count */            __outw(OCR1AL, timeout);            /* Clear the input capture and output compare flags.  We don't             * use sbi() because that could possibly clear other pending             * interrupts that use the TIFR register. */            outp(1 << ICF1, TIFR);            outp(1 << OCF1A, TIFR);            /* Activate input capture noise canceler (0x80), select rising edge               capture (0x40), and use a prescaler factor of 8 (0x02) */            outp(0xC2, TCCR1B);            /* Enable the input capture and output compare interrupts */            sbi(TIMSK, TICIE1);            sbi(TIMSK, OCIE1A);        }        return SUCCESS;    }    /*     * Stops the ultrasound timer and prevents the generation of further     * events.     */    async command result_t UltrasoundControl.StopDetector()    {        atomic {            /* Disable the timer interrupts */            cbi(TIMSK, TICIE1);            cbi(TIMSK, OCIE1A);            /* Turn off the timer */            outp(0xC0, TCCR1B);	    /* Disable ultrasonic receiver */	    //sbi(PORTB,4);        }        return SUCCESS;    }    default async event result_t UltrasoundControl.PulseDetected(uint16_t time)    {        return SUCCESS;    }    default async event result_t UltrasoundControl.DetectorTimeout()    {        return SUCCESS;    }    /* When the timeout is reached, the timer is stopped and the     * DetectorTimeout event is generated. */    TOSH_INTERRUPT(SIG_OUTPUT_COMPARE1A) {        call UltrasoundControl.StopDetector();        signal UltrasoundControl.DetectorTimeout();    }    /* Upon receiving the rising edge of a pulse, generate an event     * with the captured time. */    TOSH_INTERRUPT(SIG_INPUT_CAPTURE1) {        signal UltrasoundControl.PulseDetected(__inw_atomic(ICR1L));    }    uint8_t cycle_count;        /*      * Generate a 150 us pulse of 40 KHz ultrasound using the transducer.     */    async command result_t UltrasoundControl.SendPulse() {        atomic {            cycle_count = 0;	    /* Enable ultrasonic trasmitter */	    cbi(PORTG,2);            /* Set the OC2 port to output */            cbi(PORTB, 7);            sbi(DDRB, 7);                        /* Disable the overflow interrupt */            cbi(TIMSK, TOIE2);            /* Reset the timer to 0 */            outp(0, TCNT2);            /* Set the timer frequency to 40 KHz (39.68 Khz with the 7.3 Mhz Crystal)*/            outp(0x5B, OCR2);            /* Enable the output compare interrupt */            sbi(TIMSK, OCIE2);            /* Enable the timer in CTC mode with toggling of OC2 at reset */            outp(0x19, TCCR2);        }        return SUCCESS;    }    command result_t UltrasoundControl.SetGain(uint8_t val) {	uint8_t i;	atomic {		TOSH_MAKE_CC_PDATA_OUTPUT();            	cbi(PORTB, 6);   		//enable pot control            	cbi(PORTB, 5);   		//send address bit (0 for pot A)            	cbi(PORTD, 7);            	sbi(PORTB, 6);            	cbi(PORTB, 6);   		//send the data MSB first   		for(i =0; i< 8; i++){       			if(val & 0x80){ //bit is 1            			sbi(PORTD, 7);       			} else {//bit is zero            			cbi(PORTD, 7);       			}         			//generate clock edge            		sbi(PORTB, 6);	            	cbi(PORTB, 6);       			//get next MSB       			val <<= 1;    		}    		//disable pot control            	sbi(PORTB, 5);	}	return SUCCESS;    }     TOSH_INTERRUPT(SIG_OUTPUT_COMPARE2) {        atomic {            cycle_count++;            /* We allow 12 cycles of the wave, or 6 periods.  At 25 us per period,               that makes a total pulse length of 150 us. */            if (cycle_count == 12) {                cbi(TIMSK, OCIE2);                outp(0x00, TCCR2);                outp(0x00, TCNT2);	    	/* Disable ultrasonic trasmitter */	    	sbi(PORTG,2);            }        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品尤物yw在线观看| 成人毛片老司机大片| 激情久久久久久久久久久久久久久久| www.欧美日韩| 久久精品一区蜜桃臀影院| 亚洲图片欧美一区| 99精品视频一区二区| 久久一区二区三区国产精品| 亚洲国产综合色| 91色九色蝌蚪| 国产欧美精品在线观看| 日产精品久久久久久久性色| 91福利在线观看| 亚洲欧美国产三级| 成人精品免费网站| 国产亚洲欧美日韩在线一区| 蜜桃免费网站一区二区三区| 在线不卡欧美精品一区二区三区| 亚洲欧洲精品一区二区精品久久久 | 国产色产综合色产在线视频| 亚洲一区二区三区在线看| 丁香天五香天堂综合| 久久综合九色综合97_久久久| 日韩中文字幕亚洲一区二区va在线 | 欧美日韩国产高清一区二区| 亚洲精品免费在线播放| 91首页免费视频| 国产精品系列在线| 国产成人午夜片在线观看高清观看| 欧美一区二区精品在线| 美国三级日本三级久久99| 91精选在线观看| 美脚の诱脚舐め脚责91 | 免费在线看一区| 欧美一区二区三区视频| 日韩高清电影一区| 日韩午夜三级在线| 国产一区91精品张津瑜| 久久久久久黄色| 波多野结衣欧美| 亚洲欧洲日产国产综合网| 91原创在线视频| 亚洲一区二区三区影院| 欧美日韩国产精选| 久久aⅴ国产欧美74aaa| 久久先锋资源网| 99久精品国产| 五月婷婷激情综合网| 欧美成人伊人久久综合网| 国产在线一区观看| 国产精品久99| 欧美日韩亚洲综合一区| 日韩电影免费一区| 久久美女艺术照精彩视频福利播放| 岛国av在线一区| 亚洲一区二区视频| 欧美精品一区二区三区在线播放| 国产成人精品在线看| 亚洲欧洲日韩女同| 欧美一区二区三级| fc2成人免费人成在线观看播放| 亚洲精品高清视频在线观看| 欧美疯狂做受xxxx富婆| 国产精品亚洲综合一区在线观看| 综合在线观看色| 91精品久久久久久久91蜜桃| 国产成人免费xxxxxxxx| 亚洲一线二线三线久久久| 日韩欧美在线观看一区二区三区| 国产.精品.日韩.另类.中文.在线.播放| 亚洲欧美日韩一区二区| 欧美成人在线直播| 色狠狠桃花综合| 国产福利电影一区二区三区| 亚洲自拍偷拍欧美| 亚洲国产精品精华液ab| 精品视频一区三区九区| 国产福利91精品一区二区三区| 亚洲小少妇裸体bbw| 国产日韩欧美亚洲| 日韩一区二区三区观看| 在线免费视频一区二区| 国产激情偷乱视频一区二区三区| 亚洲香肠在线观看| 国产精品成人免费精品自在线观看| 日韩无一区二区| 在线视频国内自拍亚洲视频| 国内精品写真在线观看| 日本中文字幕一区二区视频 | 久久免费看少妇高潮| 欧美中文字幕亚洲一区二区va在线| 黄色精品一二区| 日韩av在线发布| 亚洲成人资源网| 亚洲人成人一区二区在线观看| 久久久久久久性| 欧美变态口味重另类| 欧美日本韩国一区| 欧美亚洲动漫精品| 在线观看一区日韩| 91国内精品野花午夜精品| 成人精品免费看| 国产aⅴ综合色| 国产一区三区三区| 麻豆精品国产传媒mv男同| 天天影视涩香欲综合网| 香蕉久久夜色精品国产使用方法| 亚洲人成小说网站色在线| 久久久99精品久久| 国产视频一区二区在线| 久久久亚洲午夜电影| 欧美精品一区二区三区高清aⅴ | 精品成人佐山爱一区二区| 日韩视频123| 精品国产三级电影在线观看| 91精品国产黑色紧身裤美女| 欧美片在线播放| 欧美一级久久久久久久大片| 欧美一区二区三区色| 日韩免费看网站| 久久久久久综合| 国产精品色噜噜| 依依成人精品视频| 亚洲在线中文字幕| 视频一区二区欧美| 美女一区二区视频| 国产剧情一区在线| 不卡的av电影在线观看| 91免费在线视频观看| 久久久.com| 国产精品欧美精品| 亚洲免费高清视频在线| 亚洲成人在线免费| 国产一区二区在线看| 国产成人亚洲精品青草天美| 99国产精品久久久久| 欧美视频你懂的| 精品国产一区二区三区不卡| 欧美激情在线看| 一区二区三区在线观看视频| 亚洲v中文字幕| 激情小说亚洲一区| 色哟哟精品一区| 欧美一区二区精品在线| 欧美国产精品一区二区| 一区二区三区在线高清| 久久国产精品99久久久久久老狼| 国产在线麻豆精品观看| 91丨九色porny丨蝌蚪| 7777精品伊人久久久大香线蕉的 | 色美美综合视频| 欧美一卡二卡在线| 中文字幕亚洲精品在线观看| 亚洲国产中文字幕在线视频综合| 青青草国产成人99久久| 成人小视频免费在线观看| 欧美高清视频www夜色资源网| 欧美国产日韩在线观看| 亚洲午夜一区二区| 国产精品99久久久久| 欧美三级一区二区| 国产精品亲子伦对白| 天堂成人国产精品一区| 高清不卡一区二区在线| 欧美一级理论性理论a| 有码一区二区三区| 国产宾馆实践打屁股91| 欧美一区二区三区免费| 亚洲欧美国产高清| 福利一区二区在线观看| 精品日韩在线观看| 亚洲va在线va天堂| 99re这里只有精品视频首页| 精品国产露脸精彩对白| 视频一区二区不卡| 在线观看网站黄不卡| 欧美经典一区二区| 精品一区二区av| 91精品在线观看入口| 亚洲乱码国产乱码精品精小说| 久久99国产精品麻豆| 欧美一区二区在线观看| 亚洲成人动漫av| 欧美亚洲国产一区在线观看网站| 国产精品色哟哟| 国产69精品久久久久777| 久久久久久久久97黄色工厂| 精品亚洲免费视频| 欧美成人a∨高清免费观看| 蜜臀va亚洲va欧美va天堂| 欧美日韩一区二区电影| 亚洲一区二区三区精品在线| 91极品视觉盛宴| 亚洲人成伊人成综合网小说| www.日韩av| 一区二区三区在线观看视频| 色综合久久精品| 亚洲专区一二三| 欧美伦理电影网| 久久99九九99精品|