ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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) 2014, 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,14,1) notation
17  * This means of 32 total bits, 14 are used to represent
18  * the integer portion with the MSB as a sign bit.
19  * This leaves 17 bits for the fractional component. The
20  * LSB is therefore ~ 7.62939453125e-6 uT.
21  * The type can contain field strengths in the
22  * +/-8192 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 
45 /* ISF sensors standard floating point magnetometer type in microTeslas
46  */
48 
49 /** @brief Standard fixed type for single axis accelerometers */
50 typedef struct {
54 
55 /** @brief Standard fixed type for two axis accelerometers */
56 typedef struct {
58  isf_fieldStrength_uT_float_t fieldStrength[2];
60 
61 /** @brief Standard fixed type for three axis accelerometers */
62 typedef struct {
64  isf_fieldStrength_uT_float_t fieldStrength[3];
66 
67 #endif /* ISF_MAGNETOMETER_TYPES_H_ */
Standard fixed type for two axis accelerometers.
Standard fixed type for three axis accelerometers.
Standard fixed type for single axis accelerometers.
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_2D
float isf_fieldStrength_uT_float_t
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...
uint32 isf_timestamp_t
Standard timestamp.
long int32
This defines int32 as long.
Definition: isf_types.h:32
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_1D
isf_SensorDataTypes_t TYPE_MAGNETIC_FIELD_STRENGTH_3D
int32 isf_microTeslas_fixed_32s1i14_t
ISF sensors standard fixed point magnetometer type in microTeslas using AC_Fixed(32,14,1) notation This means of 32 total bits, 14 are used to represent the integer portion with the MSB as a sign bit. This leaves 17 bits for the fractional component. The LSB is therefore ~ 7.62939453125e-6 uT. The type can contain field strengths in the +/-8192 uT range.