Skip to content

Conversation

@Byte-Entropy
Copy link

Introduce drivers for the MMC5983MA magnetometer, including wrapper for SPI communication. The implementation includes core functionalities, register definitions, and example usage files for the sensor. Additionally, the project structure has been organized to enhance clarity and maintainability.

This commit adds the initial, complete C++ driver for the NAU7802 sensor,
placing it in the PeripheralDriversSubmodule.

- Includes a reusable I2C_Wrapper to abstract STM32 HAL functions.
- Implements core logic: init, reset, setGain, and readSensor.
- Adds register definitions, example usage files, and a README.
This commit finalizes the MMC5983MA magnetometer driver for SPI communication. It completes the work from the previous "WIP" commits on this branch.

- Implements the core MMC5983MA driver logic, including 18-bit data parsing and scaling.
- Includes a C++ SPI_Wrapper to abstract STM32 HAL functions.
- Provides complete register definitions in `mmc5983ma_regs.hpp`.
- Adds a `README.md` with usage instructions and a complete example in `main_read_test.cpp`.
@Byte-Entropy Byte-Entropy changed the title AddMMC5983MA magnetometer drivers Add SPI MMC5983MA magnetometer drivers Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants