CTL_STATUS_t hmc5843_initialize_i2c(CTL_MAGNETOMETER_t *self, CTL_I2C_BUS_t *bus, int addr);
hmc5843_initialize_i2c initializes the magnetometer interface self with methods to communicate with an HMC5843 magnetometer on the I2C bus bus with 8-bit I2C address addr.
Once the magnetometer interface is initialized, you can use all standard magnetometer methods from the sensor API on the interface.
hmc5843_initialize_i2c returns a standard status code.
hmc5843_initialize_i2c is thread-safe.