| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

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 */
23 typedef int32 isf_acceleration_g_fixed_32s1i16_t;
24
25
26 /** @brief Standard fixed type for single axis accelerometers */
27 typedef struct {
28 isf_timestamp_t timestamp;
29 isf_acceleration_g_fixed_32s1i16_t accel;
30 } isf_Acceleration1D_EngFixed_t;
31
32 /** @brief Standard fixed type for two axis accelerometers */
33 typedef struct {
34 isf_timestamp_t timestamp;
35 isf_acceleration_g_fixed_32s1i16_t accel[2];
36 } isf_Acceleration2D_EngFixed_t;
37
38 /** @brief Standard fixed type for three axis accelerometers */
39 typedef struct {
40 isf_timestamp_t timestamp;
41 isf_acceleration_g_fixed_32s1i16_t accel[3];
42 } isf_Acceleration3D_EngFixed_t;
43
44 typedef int16 isf_acceleration_g_rawCount_t;
45
46 /** @brief Standard raw type for single axis accelerometers */
47 typedef struct {
48 isf_timestamp_t timestamp;
49 isf_acceleration_g_rawCount_t accel;
50 } isf_Acceleration1D_RawCount_t;
51
52 /** @brief Standard raw type for 2 axes accelerometers */
53 typedef struct {
54 isf_timestamp_t timestamp;
55 isf_acceleration_g_rawCount_t accel[2];
56 } isf_Acceleration2D_RawCount_t;
57 /** @brief Standard raw type for three axes accelerometers */
58 typedef struct {
59 isf_timestamp_t timestamp;
60 isf_acceleration_g_rawCount_t accel[3];
61 } isf_Acceleration3D_RawCount_t;
62
63 /** @brief ISF sensors standard fixed point acceleration in Gs
64 */
65 typedef float isf_acceleration_g_float_t;
66
67 /** @brief Standard float type for single axis accelerometers */
68 typedef struct {
69 isf_timestamp_t timestamp;
70 isf_acceleration_g_float_t accel;
71 } isf_Acceleration1D_Float_t;
72
73 /** @brief Standard float type for two axis accelerometers */
74 typedef struct {
75 isf_timestamp_t timestamp;
76 isf_acceleration_g_float_t accel[2];
77 } isf_Acceleration2D_Float_t;
78
79 /** @brief Standard float type for three axis accelerometers */
80 typedef struct {
81 isf_timestamp_t timestamp;
82 isf_acceleration_g_float_t accel[3];
83 } isf_Acceleration3D_Float_t;
84
85 #endif /* ISF_ACCELEROMETER_TYPES_H_ */
isf_Acceleration3D_RawCount_t
Standard raw type for three axes accelerometers.
Definition: isf_accelerometer_types.h:58
isf_Acceleration2D_EngFixed_t
Standard fixed type for two axis accelerometers.
Definition: isf_accelerometer_types.h:33
isf_Acceleration1D_RawCount_t::accel
isf_acceleration_g_rawCount_t accel
Definition: isf_accelerometer_types.h:49
isf_Acceleration3D_EngFixed_t
Standard fixed type for three axis accelerometers.
Definition: isf_accelerometer_types.h:39
isf_acceleration_g_rawCount_t
int16 isf_acceleration_g_rawCount_t
Definition: isf_accelerometer_types.h:44
isf_Acceleration1D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:28
isf_Acceleration3D_Float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:81
isf_Acceleration1D_RawCount_t
Standard raw type for single axis accelerometers.
Definition: isf_accelerometer_types.h:47
isf_Acceleration1D_EngFixed_t::accel
isf_acceleration_g_fixed_32s1i16_t accel
Definition: isf_accelerometer_types.h:29
isf_Acceleration2D_Float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:75
isf_Acceleration2D_RawCount_t
Standard raw type for 2 axes accelerometers.
Definition: isf_accelerometer_types.h:53
isf_Acceleration1D_Float_t
Standard float type for single axis accelerometers.
Definition: isf_accelerometer_types.h:68
isf_Acceleration2D_Float_t
Standard float type for two axis accelerometers.
Definition: isf_accelerometer_types.h:74
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:27
isf_Acceleration2D_RawCount_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:54
isf_sensor_base_types.h
The isf_sensor_base_types.h file contains declarations for the general base types used in the isf sen...
int16
signed short int int16
Definition: isf_types.h:73
isf_Acceleration1D_RawCount_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:48
isf_Acceleration3D_RawCount_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:59
isf_timestamp_t
uint32 isf_timestamp_t
Standard timestamp.
Definition: isf_sensor_base_types.h:15
int32
signed long int int32
Definition: isf_types.h:74
isf_Acceleration2D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:34
isf_Acceleration3D_Float_t
Standard float type for three axis accelerometers.
Definition: isf_accelerometer_types.h:80
isf_Acceleration1D_Float_t::accel
isf_acceleration_g_float_t accel
Definition: isf_accelerometer_types.h:70
isf_Acceleration1D_Float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:69
isf_Acceleration3D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_accelerometer_types.h:40
isf_acceleration_g_float_t
float isf_acceleration_g_float_t
ISF sensors standard fixed point acceleration in Gs.
Definition: isf_accelerometer_types.h:65
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.