Forked from Jose R. Padron and Aaron Berk's library, customized for my specific application using 9DoF-Stick by Sparkfun.
Fork of HMC5843 by
HMC5843 is triple axis, digital interface compass (geomagnetic sensor).
This library is forked from Jose R. Padron and Aaron Berk's work.
This library is for specific application using 9DoF-Stick.
Datasheet:
http://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf
HMC5843 は3軸のデジタルインターフェースを備えたコンパス(地磁気センサ)です。
このライブラリは 9DoF-Stick を使用した特定の企画のために保守しています。
mbed IDEが日本語をサポートするまでは英語でコメントを書いていきますが、サポートした後もきっと英語で書いていくでしょう。
History
Added a new constructor to accept an external I2C interface object.
2012-09-29, by gltest26 [Sat, 29 Sep 2012 14:18:48 +0000] rev 6
Added a new constructor to accept an external I2C interface object.
Collected common codes into a function getWord() to reduce duplicate codes.; Also made byte ordering and sign extending portable.
2012-09-12, by gltest26 [Wed, 12 Sep 2012 22:53:13 +0000] rev 5
Collected common codes into a function getWord() to reduce duplicate codes.; Also made byte ordering and sign extending portable.
Changed internal i2c_ object from a pointer to embedded object.; In this way you don't need to manage heap memory manually and can avoid overheads of memory management.
2012-09-12, by gltest26 [Wed, 12 Sep 2012 15:54:13 +0000] rev 4
Changed internal i2c_ object from a pointer to embedded object.; In this way you don't need to manage heap memory manually and can avoid overheads of memory management.
Fixed a bug getData() have returned incorrect negative values.
2012-09-09, by gltest26 [Sun, 09 Sep 2012 17:26:31 +0000] rev 3
Fixed a bug getData() have returned incorrect negative values.
Add functions to get Mx, My and Mz.
2010-11-09, by elrafapadron [Tue, 09 Nov 2010 23:18:46 +0000] rev 2
Add functions to get Mx, My and Mz.
Correct function declaration; readData function wasn\t visible
removed comments
2010-10-23, by elrafapadron [Sat, 23 Oct 2010 23:39:03 +0000] rev 1
removed comments