ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
isf_accelerometer_types.h
Go to the documentation of this file.
1 /**
2  * @file isf_accelerometer_types.h
3  *
4  * @brief The \b isf_accelerometer_types.h file contains the ISF data type definitions for use with the
5  * ISF generic accelerometer fixed and floating point interface
6  *
7  * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
8  */
9 #ifndef ISF_ACCELEROMETER_TYPES_H_
10 #define ISF_ACCELEROMETER_TYPES_H_
11 
12 #include <isf_sensor_base_types.h>
13 
14 /** @brief ISF sensors standard fixed point acceleration in Gs
15  * using AC_Fixed(32,16,1) notation
16  * This means of 32 total bits, 16 are used to represent
17  * the integer portion with the MSB as a sign bit.
18  * This leaves 16 bits for the fractional portion. The LSB is
19  * therefore ~1.5258789e-5 Gs.
20  * The type can contain accelerations in the
21  * +/- 32767 G range.
22  */
24 
25 
26 /** @brief Standard fixed type for single axis accelerometers */
27 typedef struct {
31 
32 /** @brief Standard fixed type for two axis accelerometers */
33 typedef struct {
37 
38 /** @brief Standard fixed type for three axis accelerometers */
39 typedef struct {
43 
45 
46 /** @brief Standard raw type for single axis accelerometers */
47 typedef struct {
51 
52 /** @brief Standard raw type for 2 axes accelerometers */
53 typedef struct {
57 /** @brief Standard raw type for three axes accelerometers */
58 typedef struct {
62 
63 /** @brief ISF sensors standard fixed point acceleration in Gs
64  */
66 
67 /** @brief Standard float type for single axis accelerometers */
68 typedef struct {
72 
73 /** @brief Standard float type for two axis accelerometers */
74 typedef struct {
78 
79 /** @brief Standard float type for three axis accelerometers */
80 typedef struct {
84 
85 #endif /* ISF_ACCELEROMETER_TYPES_H_ */
Standard raw type for three axes accelerometers.
Standard fixed type for two axis accelerometers.
isf_acceleration_g_rawCount_t accel
Standard fixed type for three axis accelerometers.
int16 isf_acceleration_g_rawCount_t
Standard raw type for single axis accelerometers.
isf_acceleration_g_fixed_32s1i16_t accel
Standard raw type for 2 axes accelerometers.
Standard float type for single axis accelerometers.
Standard float type for two axis accelerometers.
int32 isf_acceleration_g_fixed_32s1i16_t
ISF sensors standard fixed point acceleration in Gs using AC_Fixed(32,16,1) notation This means of 32...
Standard fixed type for single axis accelerometers.
The isf_sensor_base_types.h file contains declarations for the general base types used in the isf sen...
signed short int int16
Definition: isf_types.h:73
uint32 isf_timestamp_t
Standard timestamp.
signed long int int32
Definition: isf_types.h:74
Standard float type for three axis accelerometers.
isf_acceleration_g_float_t accel
float isf_acceleration_g_float_t
ISF sensors standard fixed point acceleration in Gs.