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

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Enumerations
mma8491q.h File Reference

The mma8491q.h contains register definitions and macros as well as the type definitions and public functions for the lowest level interface to the MMA865x family of parts. More...

`#include <stdint.h>`
Include dependency graph for mma8491q.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | mma8491q_Sensor_Specific_Settings_t

## Macros
#define | MMA8491Q_WHOAMI_VALUE (0x55)
#define | SET_FIELD(name, val) (((val)<<name##_SHIFT)&(name##_MASK))
#define | GET_FIELD(name, val) ((val&name##_MASK)>>name##_SHIFT)
#define | ZYXOW_MASK 0x80
#define | ZYXOW_SHIFT 7
#define | ZOW_MASK 0x40
#define | YOW_MASK 0x20
#define | XOW_MASK 0x10
#define | ZYXDR_MASK 0x08
#define | ZYXDR_SHIFT 3
#define | ZDR_MASK 0x04
#define | YDR_MASK 0x02
#define | XDR_MASK 0x01

## Enumerations
enum | { MMA8491Q_STATUS_00 = 0, MMA8491Q_OUT_X_MSB, MMA8491Q_OUT_X_LSB, MMA8491Q_OUT_Y_MSB, MMA8491Q_OUT_Y_lSB, MMA8491Q_OUT_Z_MSB, MMA8491Q_OUT_Z_LSB }
enum | { MMA8491Q_DATA_SUCCESS, MMA8491Q_DATA_FAIL }
| Define the MMA8491Q functional interface status return type. More...
enum | mma8491q_mode_t { MMA8491Q_SHUTDOWN = 0, MMA8491Q_ACTIVE, MMA8491Q_STANDBY }

## Detailed Description

The mma8491q.h contains register definitions and macros as well as the type definitions and public functions for the lowest level interface to the MMA865x family of parts.

Copyright
  Copyright (c) 2015, Freescale Semiconductor, Inc.

Definition in file mma8491q.h.

## Macro Definition Documentation

#define GET_FIELD | ( |  | name,
|  |  | val
| ) |  | ((val&name##_MASK)>>name##_SHIFT)

Definition at line 25 of file mma8491q.h.

#define MMA8491Q_WHOAMI_VALUE (0x55)

Definition at line 16 of file mma8491q.h.

Referenced by mma8491q_CheckId().

#define SET_FIELD | ( |  | name,
|  |  | val
| ) |  | (((val)<<name##_SHIFT)&(name##_MASK))

Definition at line 24 of file mma8491q.h.

#define XDR_MASK 0x01

Definition at line 39 of file mma8491q.h.

#define XOW_MASK 0x10

Definition at line 34 of file mma8491q.h.

#define YDR_MASK 0x02

Definition at line 38 of file mma8491q.h.

#define YOW_MASK 0x20

Definition at line 33 of file mma8491q.h.

#define ZDR_MASK 0x04

Definition at line 37 of file mma8491q.h.

#define ZOW_MASK 0x40

Definition at line 32 of file mma8491q.h.

#define ZYXDR_MASK 0x08

Definition at line 35 of file mma8491q.h.

Referenced by mma8491q_getAccelData().

#define ZYXDR_SHIFT 3

Definition at line 36 of file mma8491q.h.

#define ZYXOW_MASK 0x80

Definition at line 30 of file mma8491q.h.

#define ZYXOW_SHIFT 7

Definition at line 31 of file mma8491q.h.

## Enumeration Type Documentation

anonymous enum

Enumerator
MMA8491Q_STATUS_00 |
MMA8491Q_OUT_X_MSB |
MMA8491Q_OUT_X_LSB |
MMA8491Q_OUT_Y_MSB |
MMA8491Q_OUT_Y_lSB |
MMA8491Q_OUT_Z_MSB |
MMA8491Q_OUT_Z_LSB |

Definition at line 48 of file mma8491q.h.

anonymous enum

Define the MMA8491Q functional interface status return type.

Enumerator
MMA8491Q_DATA_SUCCESS |
MMA8491Q_DATA_FAIL |

Definition at line 60 of file mma8491q.h.

enum mma8491q_mode_t

Enumerator
MMA8491Q_SHUTDOWN |
MMA8491Q_ACTIVE |
MMA8491Q_STANDBY |

Definition at line 67 of file mma8491q.h.

- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.