mma.h
来自「MSP acquires data and sends through USB 」· C头文件 代码 · 共 38 行
H
38 行
/*
* File: mma.h
* Purpose: Prototypes of MMA7260 XYZ acceleration meter handling functions
* Author: Peter Ivanov, Olimex Ltd.
* Modified by:
* Created: 2007-05-19 11:29:32
* Last modify: 2007-10-03 21:12:23 ivanovp {Time-stamp}
* Copyright: (C) Peter Ivanov, Olimex Ltd., 2007
* Licence: GPL
*/
/**
* \file mma.h
* \brief Protypes of MMA7260 XYZ acceleration meter handling functions.
* \author Peter Ivanov, Olimex Ltd.
*/
#ifndef __INCLUDE_MMA_H
#define __INCLUDE_MMA_H
#define MMA_COORD_X 0
#define MMA_COORD_Y 1
#define MMA_COORD_Z 2
// MMA coordinates array
extern int MMA_coordinates[3];
/**
* Initialize MMA7620Q device.
*/
void MMA_init (void);
/**
* Get MMA coordinates (X,Y,Z)
* The result is in array MMA_coordinates.
*/
void MMA_getCoordinates (void);
#endif // __INCLUDE_MMA_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?