ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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) 2014, 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 /** @brief Standard fixed type for single axis accelerometers */
26 typedef struct {
30 
31 /** @brief Standard fixed type for two axis accelerometers */
32 typedef struct {
36 
37 /** @brief Standard fixed type for three axis accelerometers */
38 typedef struct {
42 
43 
44 /** @brief ISF sensors standard fixed point acceleration in Gs
45  */
47 
48 /** @brief Standard float type for single axis accelerometers */
49 typedef struct {
53 
54 /** @brief Standard float type for two axis accelerometers */
55 typedef struct {
59 
60 /** @brief Standard float type for three axis accelerometers */
61 typedef struct {
65 
66 #endif /* ISF_ACCELEROMETER_TYPES_H_ */
Standard fixed type for two axis accelerometers.
Standard fixed type for three axis accelerometers.
isf_acceleration_g_fixed_32s1i16_t accel
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...
uint32 isf_timestamp_t
Standard timestamp.
long int32
This defines int32 as long.
Definition: isf_types.h:32
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.