adc.h
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 35 行
H
35 行
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)/** @file adc.h * @brief This file provides the generic A to D conversion routines * * Actual device specific ADC routines are found in respective driver files. *//** @brief Init the adc device. */#ifdef ARCH_AVR#include "avr-adc.h"#elif defined(PLATFORM_TELOSB)#include "msp-adc.h"#endifvoid adc_init(void);//ioctl definitions#define ADC_SET_CHANNEL 0uint8_t adc_read_channel8(uint8_t ch);uint16_t adc_read_channel16(uint8_t ch);//TO BE IMPLEMENTED FOR EACH ARCHITECTURE://uint16_t adc_get_conversion16(uint8_t ch);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?