atm128adcconfig.nc
来自「tinyos-2.x.rar」· NC 代码 · 共 41 行
NC
41 行
/* $Id: Atm128AdcConfig.nc,v 1.4 2006/12/12 18:23:03 vlahan Exp $
* Copyright (c) 2005 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.
*/
#include "Atm128Adc.h"
/**
* Clients of the higher-level A/D system must implement this interface to
* specify which channel to sample, and with what parameters.
*
* @author David Gay
*/
interface Atm128AdcConfig {
/**
* Obtain channel.
* @return The A/D channel to use. Must be one of the ATM128_ADC_SNGL_xxx
* or ATM128_ADC_DIFF_xxx values from Atm128Adc.h.
*/
async command uint8_t getChannel();
/**
* Obtain reference voltage
* @return The reference voltage to use. Must be one of the
* ATM128_ADC_VREF_xxx values from Atm128Adc.h.
*/
async command uint8_t getRefVoltage();
/**
* Obtain prescaler value.
* @return The prescaler value to use. Must be one of the
* ATM128_ADC_PRESCALE_xxx values from Atm128Adc.h.
*/
async command uint8_t getPrescaler();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?