Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_5thJan_azad by
pni.h
- Committer:
- lakshya
- Date:
- 2016-07-01
- Revision:
- 20:949d13045431
- Parent:
- 18:3662058a7c10
File content as of revision 20:949d13045431:
#define SLAVE_ADDR 0x50
#define SLAVE_ADDR_READ 0x51
#define SENTRALSTATUS 0x37
#define RESETREQ 0x9B
#define ERROR 0x50
#define MAGRATE 0x55
#define SENSORSTATUS 0x36
#define ACCERATE 0x56
#define GYRORATE 0x57
#define QRATE_DIV 0x32
#define ALGO_CTRL 0x54
#define ENB_EVT 0x33
#define HOST_CTRL 0x34
#define EVT_STATUS 0x35
#define ALGO_STATUS 0x38
#define GYRO_XOUT_H 0x22
#define MAG_XOUT_H 0X12
#define UPLOAD_ADDR 0x94
//Configaration bits
#define BIT_RESREQ 0x01
#define BIT_EEP_DET 0x01
#define BIT_EEP_UPDN 0x02
#define BIT_EEP_UPERR 0x04
#define BIT_EEP_IDLE 0x08
#define BIT_EEP_NODET 0x10
#define BIT_STBY 0x01
#define BIT_RAW_ENB 0x02
#define BIT_HPR_OUT 0x04
#define BIT_CPU_RES 0x01
#define BIT_ERR 0x02
#define BIT_QRES 0x04
#define BIT_MAG_RES 0x08
#define BIT_ACC_RES 0x10
#define BIT_GYRO_RES 0x20
#define BIT_GYROODR 0x0F//0x0F
#define BIT_MAGODR 0x64//0x64
#define BIT_RUN_ENB 0x01//0x01
#define BIT_HOST_UPLD_ENB 0x02
#define BIT_ALGO_RAW 0x02
#define BIT_EVT_ENB 0X2A// 0x2A
