ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
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 */
26 
27 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D */
28 typedef struct {
32 
33 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D */
34 typedef struct {
38 
39 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D */
40 typedef struct {
44 
46 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D */
47 typedef struct {
51 
52 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D */
53 typedef struct {
57 
58 /** @brief isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D */
59 typedef struct {
63 /* ISF sensors standard floating point magnetometer type in microTeslas
64  */
66 
67 /** @brief Standard fixed type for single axis accelerometers */
68 typedef struct {
72 
73 /** @brief Standard fixed type for two axis accelerometers */
74 typedef struct {
76  isf_fieldStrength_uT_float_t fieldStrength[2];
78 
79 /** @brief Standard fixed type for three axis accelerometers */
80 typedef struct {
82  isf_fieldStrength_uT_float_t fieldStrength[3];
84 
85 #endif /* ISF_MAGNETOMETER_TYPES_H_ */
Standard fixed type for two axis accelerometers.
Standard fixed type for three axis accelerometers.
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.
Standard fixed type for single axis accelerometers.
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D
float isf_fieldStrength_uT_float_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D
isf_fieldStrength_uT_float_t fieldStrength
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
int16 isf_microTeslas_raw_16count_t
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D