| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

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 */
23 typedef int32 isf_acceleration_g_fixed_32s1i16_t;
24
25 /** @brief Standard fixed type for single axis accelerometers */
26 typedef struct {
27 isf_timestamp_t timestamp;
28 isf_acceleration_g_fixed_32s1i16_t accel;
29 } isf_Acceleration1D_EngFixed_t;
30
31 /** @brief Standard fixed type for two axis accelerometers */
32 typedef struct {
33 isf_timestamp_t timestamp;
34 isf_acceleration_g_fixed_32s1i16_t accel[2];
35 } isf_Acceleration2D_EngFixed_t;
36
37 /** @brief Standard fixed type for three axis accelerometers */
38 typedef struct {
39 isf_timestamp_t timestamp;
40 isf_acceleration_g_fixed_32s1i16_t accel[3];
41 } isf_Acceleration3D_EngFixed_t;
42
43
44 /** @brief ISF sensors standard fixed point acceleration in Gs
45 */
46 typedef float isf_acceleration_g_float_t;
47
48 /** @brief Standard float type for single axis accelerometers */
49 typedef struct {
50 isf_timestamp_t timestamp;
51 isf_acceleration_g_float_t accel;
52 } isf_Acceleration1D_Float_t;
53
54 /** @brief Standard float type for two axis accelerometers */
55 typedef struct {
56 isf_timestamp_t timestamp;
57 isf_acceleration_g_float_t accel[2];
58 } isf_Acceleration2D_Float_t;
59
60 /** @brief Standard float type for three axis accelerometers */
61 typedef struct {
62 isf_timestamp_t timestamp;
63 isf_acceleration_g_float_t accel[3];
64 } isf_Acceleration3D_Float_t;
65
66 #endif /* ISF_ACCELEROMETER_TYPES_H_ */
isf_Acceleration2D_EngFixed_t
Standard fixed type for two axis accelerometers.
Definition: isf_accelerometer_types.h:32
isf_Acceleration3D_EngFixed_t
Standard fixed type for three axis accelerometers.
Definition: isf_accelerometer_types.h:38
isf_Acceleration1D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:27
isf_Acceleration3D_Float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:62
isf_Acceleration1D_EngFixed_t::accel
isf_acceleration_g_fixed_32s1i16_t accel
Definition: isf_accelerometer_types.h:28
isf_Acceleration2D_Float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:56
isf_Acceleration1D_Float_t
Standard float type for single axis accelerometers.
Definition: isf_accelerometer_types.h:49
isf_Acceleration2D_Float_t
Standard float type for two axis accelerometers.
Definition: isf_accelerometer_types.h:55
isf_acceleration_g_fixed_32s1i16_t
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...
Definition: isf_accelerometer_types.h:23
isf_Acceleration1D_EngFixed_t
Standard fixed type for single axis accelerometers.
Definition: isf_accelerometer_types.h:26
isf_sensor_base_types.h
The isf_sensor_base_types.h file contains declarations for the general base types used in the isf sen...
isf_timestamp_t
uint32 isf_timestamp_t
Standard timestamp.
Definition: isf_sensor_base_types.h:15
int32
long int32
This defines int32 as long.
Definition: isf_types.h:32
isf_Acceleration2D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:33
isf_Acceleration3D_Float_t
Standard float type for three axis accelerometers.
Definition: isf_accelerometer_types.h:61
isf_Acceleration1D_Float_t::accel
isf_acceleration_g_float_t accel
Definition: isf_accelerometer_types.h:51
isf_Acceleration1D_Float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:50
isf_Acceleration3D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:39
isf_acceleration_g_float_t
float isf_acceleration_g_float_t
ISF sensors standard fixed point acceleration in Gs.
Definition: isf_accelerometer_types.h:46
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.