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

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

isf_pressure_types.h
Go to the documentation of this file.
1 /**
2 * @file isf_pressure_types.h
3 *
4 * @brief The \b isf_pressure_types.h file contains the ISF data type definitions for use with the
5 * ISF generic pressure fixed and floating point interface
6 *
7 * @copyright Copyright (c) 2015, Freescale Semiconductor, Inc.
8 */
9 #ifndef ISF_PRESSURE_TYPES_H_
10 #define ISF_PRESSURE_TYPES_H_
11
12 #include <isf_sensor_base_types.h>
13
14 /** @brief ISF sensors standard fixed point pressure in kiloPascals
15 * using AC_Fixed(32,16,1) notation
16 * This means of 32 total bits, 16 are used to represent
17 * the fractional portion and the MSB is used as a sign bit.
18 * the LSB is therefore ~1.5259E-05 kPas.
19 * The type can contain pressures in the
20 * +/- 32768 kPa range.
21 */
22 typedef int32 isf_pressure_kPa_fixed_32s1i16_t;
23
24 /** @brief Standard fixed type for single axis pressure sensor */
25 typedef struct {
26 isf_timestamp_t timestamp;
27 isf_pressure_kPa_fixed_32s1i16_t pressure;
28 } isf_KiloPascals1D_EngFixed_t;
29
30
31 /** @brief ISF sensors standard floating point pressure in kiloPascals
32 */
33 typedef float isf_pressure_kPa_float_t;
34
35 /** @brief Standard floating point type for single axis pressure sensor */
36 typedef struct {
37 isf_timestamp_t timestamp;
38 isf_pressure_kPa_float_t pressure;
39 } isf_KiloPascals1D_float_t;
40
41 #endif /* ISF_PRESSURE_TYPES_H_ */
isf_KiloPascals1D_EngFixed_t::pressure
isf_pressure_kPa_fixed_32s1i16_t pressure
Definition: isf_pressure_types.h:27
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_pressure_kPa_fixed_32s1i16_t
int32 isf_pressure_kPa_fixed_32s1i16_t
ISF sensors standard fixed point pressure in kiloPascals using AC_Fixed(32,16,1) notation This means ...
Definition: isf_pressure_types.h:22
isf_KiloPascals1D_float_t
Standard floating point type for single axis pressure sensor.
Definition: isf_pressure_types.h:36
isf_KiloPascals1D_float_t::timestamp
isf_timestamp_t timestamp
Definition: isf_pressure_types.h:37
isf_timestamp_t
uint32 isf_timestamp_t
Standard timestamp.
Definition: isf_sensor_base_types.h:15
isf_KiloPascals1D_EngFixed_t
Standard fixed type for single axis pressure sensor.
Definition: isf_pressure_types.h:25
isf_KiloPascals1D_float_t::pressure
isf_pressure_kPa_float_t pressure
Definition: isf_pressure_types.h:38
int32
signed long int int32
Definition: isf_types.h:74
isf_pressure_kPa_float_t
float isf_pressure_kPa_float_t
ISF sensors standard floating point pressure in kiloPascals.
Definition: isf_pressure_types.h:33
isf_KiloPascals1D_EngFixed_t::timestamp
isf_timestamp_t timestamp
Definition: isf_pressure_types.h:26
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.