![](/media/cache/profiles/BYNBmpmCQAAYTvZ.jpg.50x50_q85.jpg)
トランジスタ技術2014年2月号に付属のI2C実験基板を黄mbed(LPC11U24)で動かしてみました。
LPS331.h@0:3a0493cd3408, 2014-01-13 (annotated)
- Committer:
- y_notsu
- Date:
- Mon Jan 13 12:34:19 2014 +0000
- Revision:
- 0:3a0493cd3408
????????2014?2???????mbed???????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
y_notsu | 0:3a0493cd3408 | 1 | //********************** |
y_notsu | 0:3a0493cd3408 | 2 | // LPS331.h |
y_notsu | 0:3a0493cd3408 | 3 | // |
y_notsu | 0:3a0493cd3408 | 4 | // (C)Copyright 2013 All rights reserved by Y.Onodera |
y_notsu | 0:3a0493cd3408 | 5 | // http://einstlab.web.fc2.com |
y_notsu | 0:3a0493cd3408 | 6 | //********************** |
y_notsu | 0:3a0493cd3408 | 7 | #include "mbed.h" |
y_notsu | 0:3a0493cd3408 | 8 | #ifndef LPS331_H_ |
y_notsu | 0:3a0493cd3408 | 9 | #define LPS331_H_ |
y_notsu | 0:3a0493cd3408 | 10 | |
y_notsu | 0:3a0493cd3408 | 11 | #define LPS331_ADDR 0xB8 |
y_notsu | 0:3a0493cd3408 | 12 | #define LPS331_REF_P_XL 0x08 |
y_notsu | 0:3a0493cd3408 | 13 | #define LPS331_REF_P_L 0x09 |
y_notsu | 0:3a0493cd3408 | 14 | #define LPS331_REF_P_H 0x0A |
y_notsu | 0:3a0493cd3408 | 15 | #define LPS331_WHO_AM_I 0x0F |
y_notsu | 0:3a0493cd3408 | 16 | #define LPS331_RES_CONF 0x10 |
y_notsu | 0:3a0493cd3408 | 17 | #define LPS331_CTRL_REG1 0x20 |
y_notsu | 0:3a0493cd3408 | 18 | #define LPS331_CTRL_REG2 0x21 |
y_notsu | 0:3a0493cd3408 | 19 | #define LPS331_CTRL_REG3 0x22 |
y_notsu | 0:3a0493cd3408 | 20 | #define LPS331_INT_CFG_REG 0x23 |
y_notsu | 0:3a0493cd3408 | 21 | #define LPS331_INT_SOURCE_REG 0x24 |
y_notsu | 0:3a0493cd3408 | 22 | #define LPS331_THS_P_LOW_REG 0x25 |
y_notsu | 0:3a0493cd3408 | 23 | #define LPS331_THS_P_HIGH_REG 0x26 |
y_notsu | 0:3a0493cd3408 | 24 | #define LPS331_STATUS_REG 0x27 |
y_notsu | 0:3a0493cd3408 | 25 | #define LPS331_PRESS_POUT_XL_REH 0x28 |
y_notsu | 0:3a0493cd3408 | 26 | #define LPS331_PRESS_OUT_L 0x29 |
y_notsu | 0:3a0493cd3408 | 27 | #define LPS331_PRESS_OUT_H 0x2A |
y_notsu | 0:3a0493cd3408 | 28 | #define LPS331_TEMP_OUT_L 0x2B |
y_notsu | 0:3a0493cd3408 | 29 | #define LPS331_TEMP_OUT_H 0x2C |
y_notsu | 0:3a0493cd3408 | 30 | #define LPS331_AMP_CTRL 0x2D |
y_notsu | 0:3a0493cd3408 | 31 | #define LPS331_DELTA_PRESS_XL 0x3C |
y_notsu | 0:3a0493cd3408 | 32 | #define LPS331_DELTA_PRESS_H 0x3D |
y_notsu | 0:3a0493cd3408 | 33 | #define LPS331_DELTA_PRESS_L 0x3E |
y_notsu | 0:3a0493cd3408 | 34 | |
y_notsu | 0:3a0493cd3408 | 35 | #endif /* LPS331_H_ */ |