# $Id: mma7455.txt,v 1.2 2010/12/05 20:21:54 awachtler Exp $
# AT86RF230 Rev.A Template for generating the headerfile.
# License see in the HEADER section of this file
#
REGISTER
0x00 XOUTL XOUTL[7] XOUTL[6] XOUTL[5] XOUTL[4] XOUTL[3] XOUTL[2] XOUTL[1] XOUTL[0]
0x01 XOUTH - - - - - - XOUTH[9] XOUTH[8]
0x02 YOUTL YOUTL[7] YOUTL[6] YOUTL[5] YOUTL[4] YOUTL[3] YOUTL[2] YOUTL[1] YOUTL[0]
0x03 YOUTH - - - - - - YOUTH[9] YOUTH[8]
0x04 ZOUTL ZOUTL[7] ZOUTL[6] ZOUTL[5] ZOUTL[4] ZOUTL[3] ZOUTL[2] ZOUTL[1] ZOUTL[0]
0x05 ZOUTH - - - - - - ZOUTH[9] ZOUTH[8]
0x06 XOUT8 XOUT[7] XOUT[6] XOUT[5] XOUT[4] XOUT[3] XOUT[2] XOUT[1] XOUT[0]
0x07 YOUT8 YOUT[7] YOUT[6] YOUT[5] YOUT[4] YOUT[3] YOUT[2] YOUT[1] YOUT[0]
0x08 ZOUT8 ZOUT[7] ZOUT[6] ZOUT[5] ZOUT[4] ZOUT[3] ZOUT[2] ZOUT[1] ZOUT[0]
0x09 STATUS - - - - - PERR DOVR DRDY
0x0A DETSRC LDX LDY LDZ PDX PDY PDZ INT2 INT1
0x0B TOUT TMP[7] TMP[6] TMP[5] TMP[4] TMP[3] TMP[2] TMP[1] TMP[0]
0x0D I2CAD I2CDIS DAD[6] DAD[5] DAD[4] DAD[3] DAD[2] DAD[1] DAD[0]
0x0E USRINF UI[7] UI[6] UI[5] UI[4] UI[3] UI[2] UI[1] UI[0]
0x0F WHOAMI ID[7] ID[6] ID[5] ID[4] ID[3] ID[2] ID[1] ID[0]
0x10 XOFFL XOFFL[7] XOFFL[6] XOFFL[5] XOFFL[4] XOFFL[3] XOFFL[2] XOFFL[1] XOFFL[0]
0x11 XOFFH - - - - - XOFFH[2] XOFFH[1] XOFFH[0]
0x12 YOFFL YOFFL[7] YOFFL[6] YOFFL[5] YOFFL[4] YOFFL[3] YOFFL[2] YOFFL[1] YOFFL[0]
0x13 YOFFH - - - - - YOFFH[2] YOFFH[1] YOFFH[0]
0x14 ZOFFL ZOFFL[7] ZOFFL[6] ZOFFL[5] ZOFFL[4] ZOFFL[3] ZOFFL[2] ZOFFL[1] ZOFFL[0]
0x15 ZOFFH - - - - - ZOFFH[2] ZOFFH[1] ZOFFH[0]
0x16 MCTL - DRPD SPI3W STON GLVL[1] GLVL[0] MOD[1] MOD[0]
0x17 INTRST - - - - - - CLRINT2 CLRINT1
0x18 CTL1 DFBW THOPT ZDA YDA XDA INTRG[1] INTRG[0] INTPIN
0x19 CTL2 - - - - - DRVO PDPL LDPL
0x1A LDTH LDTH[7] LDTH[6] LDTH[5] LDTH[4] LDTH[3] LDTH[2] LDTH[1] LDTH[0]
0x1B PDTH PDTH[7] PDTH[6] PDTH[5] PDTH[4] PDTH[3] PDTH[2] PDTH[1] PDTH[0]
0x1C PW PD[7] PD[6] PD[5] PD[4] PD[3] PD[2] PD[1] PD[0]
0x1D LT LT[7] LT[6] LT[5] LT[4] LT[3] LT[2] LT[1] LT[0]
0x1E TW TW[7] TW[6] TW[5] TW[4] TW[3] TW[2] TW[1] TW[0]
CONST


HEADER
/* Copyright (c) 2009 Axel Wachtler
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions
   are met:

   * Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.
   * Neither the name of the authors nor the names of its contributors
     may be used to endorse or promote products derived from this software
     without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE. */

/* $Id: mma7455.txt,v 1.2 2010/12/05 20:21:54 awachtler Exp $ */
/**
 * @file
 * @brief MMA7455, a ±2g/±4g/±8g Three Axis Low-g Digital Output Accelerometer.
 */

#ifndef MMA7455_H
#define MMA7455_H (1)

/* === Includes ============================================================== */

/* === Externals ============================================================= */

/* === Types ================================================================= */

/* === Macros ================================================================ */
/** Name string of the sensor */
#define ACC_SENSOR_NAME "MMA7455"


/** Subregister MOD[1:0], STANDBY */
#define ACC_MODE_STANDBY        (0x00)
/** Subregister MOD[1:0], MEASURE */
#define ACC_MODE_MEASURE        (0x01)
/** Subregister MOD[1:0], LEVELDETECT */
#define ACC_MODE_LEVELDETECT    (0x02)
/** Subregister MOD[1:0], PULSEDETECT */
#define ACC_MODE_PULSEDETECT    (0x03)

/** Subregister GLVL[1:0], g-Selector: 2g */
#define ACC_RANGE_2G            (0x01)
/** Subregister GLVL[1:0], g-Selector: 4g */
#define ACC_RANGE_4G            (0x02)
/** Subregister GLVL[1:0], g-Selector: 8g */
#define ACC_RANGE_8G            (0x00)

FOOTER

#endif /* ifndef MMA7455_H */

