# example_read_accelerometer.c File Reference

Reads accelerometer values in the X-axis, Y-axis, and Z-axis and outputs to console regularly. More...

`#include "../HAL/hal_cc2530znp_target_board.h"`
`#include "../HAL/hal_vti_cma3000_D01_accelerometer.h"`

#define | DELAY_BETWEEN_ACCELEROMETER_READINGS_MS 100
int | main (void)

## Detailed Description

Reads accelerometer values in the X-axis, Y-axis, and Z-axis and outputs to console regularly.

Uses the Hardware Abstraction Layer (hal) to access the accelerometer. Configures Accelerometer as:

- Range = 2g
- Disable I2C
- Measure acceleration 100 times per sec
- Disable interrupt

See also:
  VTI Technologies document: CMA3000-D01 datasheet
  VTI Technologies document: Product Family Specification, CMA3000-D0X Series 3-axis accelerometer
  VTI Technologies document: Interfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller
  http://processors.wiki.ti.com/index.php/Tutorial_on_the_Examples and http://e2e.ti.com/support/low_power_rf/default.aspx

Rev
  602

Author
  dsmith

Date
  2010-06-16 13:09:46 -0700 (Wed, 16 Jun 2010)

YOU ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.

All Data Structures Files Functions Variables Defines