Skip to content

Commit

Permalink
Add TMAG5273 Driver (#725)
Browse files Browse the repository at this point in the history
* Adds outline of the I2C sensor driver.

* Adds register read and write commands.

* Adds a demo class for the magnetic sensor.

* Adds conversions to the demo.

* Decrease sensitivity.

* Adds register modify and sets up angular rotation decoding.

* Adds APIs for offset and gain correction.
Adds API for determining whether the device exists.
Adds return error for the register read command.

* Reads the device ID as well in the demo code.

* Add address enumeration.

* Add alternative constructor and destructor which closes the open file reference if applicable.

* Add friend class for testing. This should eventually be removed.

* Enhance TMAG5273 driver to have a cleaner public interface.

* Fix TMAG5273Demo build.

* Add comment.

* Address review comments.

---------

Co-authored-by: Balazs Racz <[email protected]>
  • Loading branch information
bakerstu and balazsracz authored Aug 13, 2023
1 parent a7e4abf commit 65ef5c3
Show file tree
Hide file tree
Showing 2 changed files with 633 additions and 0 deletions.
Loading

0 comments on commit 65ef5c3

Please sign in to comment.