Driver for the AKM AK9752 IR sensor device.
Library for the AK9752 Ultra-Small IR Sensor with I2C Interface. Includes integrated temperature sensor (0 - 50C) and 16-bit ADC.
AK9752_reg.h@3:2035a4a54d3f, 2016-11-01 (annotated)
- Committer:
- tkstreet
- Date:
- Tue Nov 01 17:03:31 2016 +0000
- Revision:
- 3:2035a4a54d3f
- Parent:
- 0:51fa46d39a3e
- Child:
- 6:254b7e5820e7
Added comments and documentation to library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
masahikofukasawa | 0:51fa46d39a3e | 1 | #ifndef __AK9752_REG_H__ |
masahikofukasawa | 0:51fa46d39a3e | 2 | #define __AK9752_REG_H__ |
masahikofukasawa | 0:51fa46d39a3e | 3 | |
tkstreet | 3:2035a4a54d3f | 4 | #define AK9752_REG_ADDR_WIA1 0x00 /* ID: AKM company code register */ |
tkstreet | 3:2035a4a54d3f | 5 | #define AK9752_REG_ADDR_WIA2 0x01 /* subID: AK9752 code register */ |
tkstreet | 3:2035a4a54d3f | 6 | #define AK9752_REG_ADDR_INFO1 0x02 /* AKM info register */ |
tkstreet | 3:2035a4a54d3f | 7 | #define AK9752_REG_ADDR_INFO2 0x03 /* AKM info register */ |
tkstreet | 3:2035a4a54d3f | 8 | #define AK9752_REG_ADDR_ST1 0x04 /* Status1: D0->DRDY */ |
tkstreet | 3:2035a4a54d3f | 9 | #define AK9752_REG_ADDR_INTCAUSE 0x05 /* Cause of interrupt */ |
tkstreet | 3:2035a4a54d3f | 10 | #define AK9752_REG_ADDR_IRL 0x06 /* Interrupt data low byte */ |
tkstreet | 3:2035a4a54d3f | 11 | #define AK9752_REG_ADDR_IRH 0x07 /* Interrupt data high byte */ |
tkstreet | 3:2035a4a54d3f | 12 | #define AK9752_REG_ADDR_TMPL 0x08 /* Temp data low byte */ |
tkstreet | 3:2035a4a54d3f | 13 | #define AK9752_REG_ADDR_TMPH 0x09 /* Temp data high byte */ |
tkstreet | 3:2035a4a54d3f | 14 | #define AK9752_REG_ADDR_ST2 0x0A /* Status2: D0->DOR */ |
tkstreet | 3:2035a4a54d3f | 15 | #define AK9752_REG_ADDR_THIRHL 0x0B /* IR threshold A */ |
tkstreet | 3:2035a4a54d3f | 16 | #define AK9752_REG_ADDR_THIRHH 0x0C /* IR threshold B */ |
tkstreet | 3:2035a4a54d3f | 17 | #define AK9752_REG_ADDR_THIRLL 0x0D /* IR threshold C */ |
tkstreet | 3:2035a4a54d3f | 18 | #define AK9752_REG_ADDR_THIRLH 0x0E /* IR threshold D */ |
tkstreet | 3:2035a4a54d3f | 19 | #define AK9752_REG_ADDR_THTMPHL 0x0F /* Temp threshold A */ |
tkstreet | 3:2035a4a54d3f | 20 | #define AK9752_REG_ADDR_THTMPHH 0x10 /* Temp threshold B */ |
tkstreet | 3:2035a4a54d3f | 21 | #define AK9752_REG_ADDR_THTMPLL 0x11 /* Temp threshold C */ |
tkstreet | 3:2035a4a54d3f | 22 | #define AK9752_REG_ADDR_THTMPLH 0x12 /* Temp threshold D */ |
tkstreet | 3:2035a4a54d3f | 23 | #define AK9752_REG_ADDR_INTEN 0x13 /* IR/temp/DRDY threshold interrupt enable */ |
tkstreet | 3:2035a4a54d3f | 24 | #define AK9752_REG_ADDR_CNTL1 0x14 /* Cutoff freq setting */ |
tkstreet | 3:2035a4a54d3f | 25 | #define AK9752_REG_ADDR_CNTL2 0x15 /* Operating mode settin */ |
tkstreet | 3:2035a4a54d3f | 26 | #define AK9752_REG_ADDR_CNTL3 0x16 /* SW reset */ |
masahikofukasawa | 0:51fa46d39a3e | 27 | |
tkstreet | 3:2035a4a54d3f | 28 | #define AK9752_REG_VALUE_WIA1 0x48 /* AKM company code */ |
tkstreet | 3:2035a4a54d3f | 29 | #define AK9752_REG_VALUE_WIA2 0x14 /* AK9752 code */ |
masahikofukasawa | 0:51fa46d39a3e | 30 | |
masahikofukasawa | 0:51fa46d39a3e | 31 | #endif // __AK9752_REG_H__ |