micabusp.nc

来自「tinyos-2.0源代码!转载而已!要的尽管拿!」· NC 代码 · 共 38 行

NC
38
字号
// $Id: MicaBusP.nc,v 1.1.2.1 2006/02/01 16:43:58 idgay Exp $/* * Copyright (c) 2005-2006 Intel Corporation * All rights reserved. * * This file is distributed under the terms in the attached INTEL-LICENSE      * file. If you do not find these files, copies can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,  * 94704.  Attention:  Intel License Inquiry. *//** * Internal component of the simplistic mica bus interface. * @author David Gay */module MicaBusP {  provides {    interface MicaBusAdc as Adc0;    interface MicaBusAdc as Adc1;    interface MicaBusAdc as Adc2;    interface MicaBusAdc as Adc3;    interface MicaBusAdc as Adc4;    interface MicaBusAdc as Adc5;    interface MicaBusAdc as Adc6;    interface MicaBusAdc as Adc7;  }}implementation {  async command uint8_t Adc0.getChannel() { return 0; }  async command uint8_t Adc1.getChannel() { return 1; }  async command uint8_t Adc2.getChannel() { return 2; }  async command uint8_t Adc3.getChannel() { return 3; }  async command uint8_t Adc4.getChannel() { return 4; }  async command uint8_t Adc5.getChannel() { return 5; }  async command uint8_t Adc6.getChannel() { return 6; }  async command uint8_t Adc7.getChannel() { return 7; }}

⌨️ 快捷键说明

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