поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4503 датащи(PDF) 18 Page - STMicroelectronics

номер детали AN4503
подробное описание детали  This application note provides guidelines for successfully integrating
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4503 датащи(HTML) 18 Page - STMicroelectronics

Back Button AN4503 Datasheet HTML 14Page - STMicroelectronics AN4503 Datasheet HTML 15Page - STMicroelectronics AN4503 Datasheet HTML 16Page - STMicroelectronics AN4503 Datasheet HTML 17Page - STMicroelectronics AN4503 Datasheet HTML 18Page - STMicroelectronics AN4503 Datasheet HTML 19Page - STMicroelectronics AN4503 Datasheet HTML 20Page - STMicroelectronics AN4503 Datasheet HTML 21Page - STMicroelectronics AN4503 Datasheet HTML 22Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 26 page
background image
Android sensor HAL
AN4503
18/26
DocID026411 Rev 2
4
Android sensor HAL
4.1
Overview
The Android sensor HAL is the library which provides the links from kernel-space drivers to
the Android sensor service and Android SensorManager.
4.1.1
Sensor libraries
These libraries are dynamic; they take data in /dev/input/event and make them available to
the upper layer. This is done through the SensorManager class, sensor service class and
the sensor HAL.
The ServiceManager of the Android Framework checks the path /system/lib/hw to see if
some of the following dynamic libs are present:
 sensors.default.so
 sensors.<TARGET_BOARD_PLATFORM>.so
4.2
Files
The environmental sensors currently under consideration are:
 HTS221: relative humidity + temperature
 LPS25: pressure + temperature
 UVIS25: Ultraviolet
At this stage, the path and names are hard-coded; specifically: “lps25h”, “hts221” and
“uvis25”, as provided by the underlying kernel drivers. The path is instead found by the
libsensors.
The library is written in the C++ language using the object-oriented approach. For each
sensor, there is a custom class file: HumSensor.cpp, PressSensor.cpp and UVSensor.cpp,
which extends the common base class (SensorBase.cpp).
4.3
How to build and install the Android sensor HAL
To build the libsensors.so in the correct environment starting from the sources files, the
package must be compiled and added to the actual sensor HAL library, by following the
instructions below:
Copy the sensor HAL zipped package into the relevant android sources path, usually
located in:
 [Root Android Sources]/device/[vendor name]/[boardname]/
Untar it "tar -xzvf libsensors_env.tar.gz", or unzip in case it is provided in the .zip format
Before building the library, initialize the Android environment:
 [RAS]$ source build/envsetup.sh
 [RAS]$ lunch [target board]
Compile the library.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com