mems.h

00001 /** @file mems.h
00002  * @brief Header for MB851 mems APIS 
00003  *
00004  *
00005  * <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved.        -->
00006  */
00007 
00008 #ifndef _MEMS_H_
00009 #define _MEMS_H_
00010 
00011 #include "hal/micro/mems_regs.h"
00012 
00013 /** @brief Mems data type: three acceleration values each related to a specific direction
00014    Watch out: only lower data values (e.g. those terminated by the _l) are 
00015    currently used by the device */
00016 
00017 typedef struct {
00018   int8u outx_l;
00019   int8u outx_h;
00020   int8u outy_l;
00021   int8u outy_h;
00022   int8u outz_l;
00023   int8u outz_h;
00024 } t_mems_data;
00025 
00026 
00027 /** @brief Mems Initialization function
00028  */
00029 int8u mems_Init(void);
00030 
00031 /** @brief Get mems acceleration values
00032  */
00033 int8u mems_GetValue(t_mems_data *mems_data);
00034 
00035 #endif /* _MEMS_H_ */
00036 

Generated on Mon Apr 11 14:23:40 2011 for Contiki 2.5 by  doxygen 1.6.1