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

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

isf_magnetometer_types.h
Go to the documentation of this file.
1 /**
2 * @file isf_magnetometer_types.h
3 *
4 * @brief The \b isf_magnetometer_types.h file contains the ISF data type definitions for use with the
5 * ISF generic magnetometer fixed and floating point interface
6 *
7 * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
8 */
9
10 #ifndef ISF_MAGNETOMETER_TYPES_H_
11 #define ISF_MAGNETOMETER_TYPES_H_
12
13 #include <isf_sensor_base_types.h>
14
15 /** @brief ISF sensors standard fixed point magnetometer type in microTeslas
16 * using AC_Fixed(32,16,1) notation
17 * This means of 32 total bits, 16 are used to represent
18 * the integer portion with the MSB as a sign bit.
19 * This leaves 16 bits for the fractional component. The
20 * LSB is therefore ~ 0.0000152587890625 uT.
21 * The type can contain field strengths in the
22 * +/-32768 uT range.
23 */
24 /** @brief Fixed Point magnetometer field strength type definition */
25 typedef int32 isf_microTeslas_fixed_32s1i16_t;
26
27 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D */
28 typedef struct {
29 isf_timestamp_t timestamp;
30 isf_microTeslas_fixed_32s1i16_t fieldStrength[1];
31 } isf_MagneticFieldStrength1D_EngFixed_t;
32
33 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D */
34 typedef struct {
35 isf_timestamp_t timestamp;
36 isf_microTeslas_fixed_32s1i16_t fieldStrength[2];
37 } isf_MagneticFieldStrength2D_EngFixed_t;
38
39 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D */
40 typedef struct {
41 isf_timestamp_t timestamp;
42 isf_microTeslas_fixed_32s1i16_t fieldStrength[3];
43 } isf_MagneticFieldStrength3D_EngFixed_t;
44
45 typedef int16 isf_microTeslas_raw_16count_t;
46 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D */
47 typedef struct {
48 isf_timestamp_t timestamp;
49 isf_microTeslas_raw_16count_t fieldStrength[1];
50 } isf_MagneticFieldStrength1D_RawCount_t;
51
52 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D */
53 typedef struct {
54 isf_timestamp_t timestamp;
55 isf_microTeslas_raw_16count_t fieldStrength[2];
56 } isf_MagneticFieldStrength2D_RawCount_t;
57
58 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D */
59 typedef struct {
60 isf_timestamp_t timestamp;
61 isf_microTeslas_raw_16count_t fieldStrength[3];
62 } isf_MagneticFieldStrength3D_RawCount_t;
63 /* ISF sensors standard floating point magnetometer type in microTeslas
64 */
65 typedef float isf_fieldStrength_uT_float_t;
66
67 /** @brief Standard fixed type for single axis accelerometers */
68 typedef struct {
69 isf_timestamp_t timestamp;
70 isf_fieldStrength_uT_float_t fieldStrength;
71 } isf_MagneticFieldStrength1D_float_t;
72
73 /** @brief Standard fixed type for two axis accelerometers */
74 typedef struct {
75 isf_timestamp_t timestamp;
76 isf_fieldStrength_uT_float_t fieldStrength[2];
77 } isf_MagneticFieldStrength2D_float_t;
78
79 /** @brief Standard fixed type for three axis accelerometers */
80 typedef struct {
81 isf_timestamp_t timestamp;
82 isf_fieldStrength_uT_float_t fieldStrength[3];
83 } isf_MagneticFieldStrength3D_float_t;
84
85 #endif /* ISF_MAGNETOMETER_TYPES_H_ */
isf_MagneticFieldStrength2D_float_t
Standard fixed type for two axis accelerometers.
Definition: isf_magnetometer_types.h:74
isf_MagneticFieldStrength3D_float_t
Standard fixed type for three axis accelerometers.
Definition: isf_magnetometer_types.h:80
isf_microTeslas_fixed_32s1i16_t
int32 isf_microTeslas_fixed_32s1i16_t
ISF sensors standard fixed point magnetometer type in microTeslas using AC_Fixed(32,16,1) notation This means of 32 total bits, 16 are used to represent the integer portion with the MSB as a sign bit. This leaves 16 bits for the fractional component. The LSB is therefore ~ 0.0000152587890625 uT. The type can contain field strengths in the +/-32768 uT range.
Definition: isf_magnetometer_types.h:25
isf_MagneticFieldStrength3D_RawCount_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:60
isf_MagneticFieldStrength1D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:29
isf_MagneticFieldStrength2D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:35
isf_MagneticFieldStrength1D_float_t
Standard fixed type for single axis accelerometers.
Definition: isf_magnetometer_types.h:68
isf_MagneticFieldStrength3D_RawCount_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D
Definition: isf_magnetometer_types.h:59
isf_MagneticFieldStrength2D_EngFixed_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D
Definition: isf_magnetometer_types.h:34
isf_fieldStrength_uT_float_t
float isf_fieldStrength_uT_float_t
Definition: isf_magnetometer_types.h:65
isf_MagneticFieldStrength1D_RawCount_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D
Definition: isf_magnetometer_types.h:47
isf_MagneticFieldStrength1D_float_t::fieldStrength
isf_fieldStrength_uT_float_t fieldStrength
Definition: isf_magnetometer_types.h:70
isf_MagneticFieldStrength1D_float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:69
isf_MagneticFieldStrength1D_RawCount_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:48
isf_MagneticFieldStrength3D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:41
isf_MagneticFieldStrength2D_RawCount_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:54
isf_MagneticFieldStrength2D_float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:75
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_timestamp_t
uint32 isf_timestamp_t
Standard timestamp.
Definition: isf_sensor_base_types.h:15
isf_MagneticFieldStrength3D_float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_magnetometer_types.h:81
int32
signed long int int32
Definition: isf_types.h:74
isf_microTeslas_raw_16count_t
int16 isf_microTeslas_raw_16count_t
Definition: isf_magnetometer_types.h:45
isf_MagneticFieldStrength2D_RawCount_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D
Definition: isf_magnetometer_types.h:53
isf_MagneticFieldStrength1D_EngFixed_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D
Definition: isf_magnetometer_types.h:28
isf_MagneticFieldStrength3D_EngFixed_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D
Definition: isf_magnetometer_types.h:40
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.