Kevin Townsend 4fd1ebb105 hw/sensor: Add lsm303dlhc magnetometer device
This commit adds emulation of the magnetometer on the LSM303DLHC.
It allows the magnetometer's X, Y and Z outputs to be set via the
mag-x, mag-y and mag-z properties, as well as the 12-bit
temperature output via the temperature property. Sensor can be
enabled with 'CONFIG_LSM303DLHC_MAG=y'.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
Message-id: 20220130095032.35392-1-kevin.townsend@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2022-02-08 10:56:29 +00:00
..
2021-10-27 14:45:22 +02:00
2022-02-06 04:33:50 -05:00
2021-10-12 08:20:08 +02:00
2022-02-08 10:56:28 +00:00
2022-02-02 19:54:30 +00:00
2022-01-29 15:55:54 +00:00
2021-10-12 08:20:08 +02:00
2022-01-29 15:55:54 +00:00
2022-01-31 11:10:08 +00:00
2022-01-29 15:55:54 +00:00
2022-01-13 10:58:05 +01:00
2021-11-17 11:25:55 -07:00