Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MAX14720 MAX30205 USBDevice
LIS2DHInfo.cs
00001 /******************************************************************************* 00002 * Copyright (C) 2016 Maxim Integrated Products, Inc., All rights Reserved. 00003 * 00004 * This software is protected by copyright laws of the United States and 00005 * of foreign countries. This material may also be protected by patent laws 00006 * and technology transfer regulations of the United States and of foreign 00007 * countries. This software is furnished under a license agreement and/or a 00008 * nondisclosure agreement and may only be used or reproduced in accordance 00009 * with the terms of those agreements. Dissemination of this information to 00010 * any party or parties not specified in the license agreement and/or 00011 * nondisclosure agreement is expressly prohibited. 00012 * 00013 * The above copyright notice and this permission notice shall be included 00014 * in all copies or substantial portions of the Software. 00015 * 00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00017 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00018 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 00019 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES 00020 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 00021 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00022 * OTHER DEALINGS IN THE SOFTWARE. 00023 * 00024 * Except as contained in this notice, the name of Maxim Integrated 00025 * Products, Inc. shall not be used except as stated in the Maxim Integrated 00026 * Products, Inc. Branding Policy. 00027 * 00028 * The mere transfer of this software does not imply any licenses 00029 * of trade secrets, proprietary technology, copyrights, patents, 00030 * trademarks, maskwork rights, or any other form of intellectual 00031 * property whatsoever. Maxim Integrated Products, Inc. retains all 00032 * ownership rights. 00033 ******************************************************************************* 00034 */ 00035 00036 using System; 00037 using System.Collections.Generic; 00038 using System.Linq; 00039 using System.Text; 00040 using HealthSensorPlatform.DeviceDescriptions; 00041 using RPCSupport.DeviceSupport; 00042 00043 namespace Maxim.CustomControls 00044 { 00045 public class LIS2DHInfo : Device 00046 { 00047 00048 public LIS2DHInfo() 00049 { 00050 deviceDetails = new DeviceDetails(); 00051 deviceDetails.InitI2c(2,0x32); 00052 00053 Info = new RegisterInfo[] { 00054 new RegisterInfo("STATUS_REG_AUX",0x07), 00055 new RegisterInfo("OUT_TEMP_L",0x0C), 00056 new RegisterInfo("OUT_TEMP_H",0x0D), 00057 new RegisterInfo("INT_COUNTER_REG",0x0E), 00058 new RegisterInfo("WHO_AM_I",0x0F), 00059 new RegisterInfo("TEMP_CFG_REG",0x1F), 00060 new RegisterInfo("CTRL_REG1",0x20), 00061 new RegisterInfo("CTRL_REG2",0x21), 00062 new RegisterInfo("CTRL_REG3",0x22), 00063 new RegisterInfo("CTRL_REG4",0x23), 00064 new RegisterInfo("CTRL_REG5",0x24), 00065 new RegisterInfo("CTRL_REG6",0x25), 00066 new RegisterInfo("REFERENCE",0x26), 00067 new RegisterInfo("STATUS_REG2",0x27), 00068 new RegisterInfo("OUT_X_L",0x28), 00069 new RegisterInfo("OUT_X_H",0x29), 00070 new RegisterInfo("OUT_Y_L",0x2A), 00071 new RegisterInfo("OUT_Y_H",0x2B), 00072 new RegisterInfo("OUT_Z_L",0x2C), 00073 new RegisterInfo("OUT_Z_H",0x2D), 00074 new RegisterInfo("FIFO_CTRL_REG",0x2E), 00075 new RegisterInfo("FIFO_SRC_REG",0x2F), 00076 new RegisterInfo("INT1_CFG",0x30), 00077 new RegisterInfo("INT1_SOURCE",0x31), 00078 new RegisterInfo("INT1_THS",0x32), 00079 new RegisterInfo("INT1_DURATION",0x33), 00080 new RegisterInfo("INT2_CFG",0x34), 00081 new RegisterInfo("INT2_SOURCE",0x35), 00082 new RegisterInfo("INT2_THS",0x36), 00083 new RegisterInfo("INT2_DURATION",0x37), 00084 new RegisterInfo("CLICK_CFG",0x38), 00085 new RegisterInfo("CLICK_SRC",0x39), 00086 new RegisterInfo("CLICK_THS",0x3A), 00087 new RegisterInfo("TIME_LIMIT",0x3B), 00088 new RegisterInfo("TIME_LATENCY",0x3C), 00089 new RegisterInfo("TIME_WINDOW",0x3D), 00090 new RegisterInfo("Act_THS",0x3E), 00091 new RegisterInfo("Act_DUR",0x3F) 00092 }; 00093 00094 // register 0x00 00095 Descriptions(0x07).Add("Bit 0", "PWR_RDY", "Power Ready Flag"); 00096 Descriptions(0x07).Add("Bit 4", "PROX_INT", "Proximity Threshold Triggered"); 00097 // register 0x01 00098 Descriptions(0x0C).Add("Bit 1", "DIE_TEMP_RDY", "Internal Temperature Ready Flag"); 00099 // register 0x02 00100 Descriptions(0x0D).Add("Bit 4", "PROX_INT_EN", "Proximity Threshold Enable"); 00101 } 00102 } 00103 }
Generated on Thu Jul 28 2022 18:07:15 by
1.7.2