Atmel AVR4016
structure definitions, and various constants. The sensor.h file must be included in
any application code that will use the sensor interfaces.
If you are using the Atmel AVR Studio 5 project tools to create your application, either
from example applications or by selecting the sensor components to add to a custom
application, the avr.h header file will be automatically modified to include sensor.h .
In this case, your application does not need to include sensor.h directly – it may
simply include asf.h , as usual, and the necessary definitions will be available.
NOTE
The code sequence examples that are found later in this document reference
sensor.h explicitly. If you are using an automatically generated asf.h file that
includes sensor.h , you may simply include asf.h instead.
2.1.3 The Sensors Xplained module_config directory
The C language header files located in common/services/sensors/module_config
provide reference versions of the ASF configuration files that contain settings
appropriate for use with the Sensors Xplained software.
If your application is based on the example sensor applications provided in AVR
Studio 5, these configuration settings will automatically be included in your application
build and will appear in the config directory within your project.
If you are adding sensor support to an existing or custom application using the AVR
Studio 5 project facility, you may need to modify the initial settings in various
configuration files (located in the config directory within your project) to match the
settings found in the corresponding files in
common/services/sensors/module_config .
2.1.4 Sensors Xplained drivers directory
The files located in the common/services/sensors/drivers directory supply
definitions required by the Sensors Xplained hardware abstraction layer. Sensor
applications do not require the definitions in these files, and you should not include
these files or reference any of the symbols they define within your application. The
definitions and API routines specified in the sensor.h file provide access to all
installed sensor peripherals. None of the Atmel or third-party sensor driver
implementations are provided in source code form, and all files within this directory
are subject to change in future versions of the Common Sensors Service. The
directory itself will be retained in the tree for those developers who are writing new
sensor drivers for use by the sensor service.
2.1.5 Sensors Xplained driver libraries
Sensor drivers and API functions must be linked into your application from static link
libraries built for the GCC and IAR? Systems toolchains. The libraries are located in
the
thirdparty/sensors/libs/gcc
and
thirdparty/sensors/libs/iar
directories, respectively. Only necessary modules will be linked into your final system
image.
When you use the AVR Studio 5 project facility to create your application project, the
correct library will automatically be included in your build.
NOTE
The sensor drivers and API functions found in the libraries are only available in binary
format. No source code is provided.
3
8367B-AVR-06/11
相关PDF资料
ATAVRSBIN2 INERTIAL TWO SENSOR BOARD
ATAVRSBLP1 LIGHT AND PROXIMITY SENSOR BOARD
ATAVRSBPR1 BAROMETRIC PRESSURE ONE SNSR BRD
ATQT600 KIT EVAL TOUCH FOR QT600
ATU6-P305T-R CABLE CAT6 FULL-BOX 305M GRAY
ATUP-P305T-R CABLE CAT5E PULL-BOX 305M GRAY
ATUP-V305T-R CABLE CAT5E REEL 305M GRAY
AWG28-05/F-1/300-R CABLE 5 COND MULTI 300' RIBBON
相关代理商/技术参数
ATAVRSBIN2 功能描述:多功能传感器开发工具 9DOF Inertial Sensor Board 2 RoHS:否 制造商:Texas Instruments 工具用于评估:LMP91200 接口类型:SPI 工作电压:1.8 V to 5.5 V 最大工作温度:
ATAVRSBLP1 功能描述:光学传感器开发工具 Ambient Light and Proximity Snsr Brd RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
ATAVRSBPR1 功能描述:压力传感器开发工具 Barometric Pressure Sensor Board 1 RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
ATAVRSECURITYX 功能描述:安全/ 验证开发工具 Security Module Kit for Xplain Series RoHS:否 制造商:Digi International 产品:Development Kits 工具用于评估:XEB-AW140 接口类型:SPI, USB 工作电源电压:3.1 V to 3.6 V
ATAVRSMD 功能描述:ADAPTER KIT SMD ICE200 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035
ATAVR-SOAKIT 功能描述:插座和适配器 Standoff Adapter Kit for JTAG debuggers RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
ATAVRTEMPSENSORX 功能描述:温度传感器开发工具 Temp Sensor kit for Xplain Series RoHS:否 制造商:Texas Instruments 产品类型:Temperature Sensors and Control ICs 工具用于评估:MSP430G2553 接口类型:USB 工作电源电压: 工作电源电流:
ATAVRTS2080A 功能描述:开发板和工具包 - AVR ATmega88 QTouch QTch kit w/SW librar RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V