|
PebbleOS v4.47.0-1362-gd278268fe
|
MEMSIC MMC5603NJ magnetometer. More...
Data Structures | |
| struct | pbl_mmc5603nj_state |
| MMC5603NJ driver state, owned by the driver. More... | |
| struct | pbl_mmc5603nj |
| MMC5603NJ magnetometer. More... | |
Macros | |
| #define | PBL_MMC5603NJ_DEFINE(sym, _bus, _addr, ...) |
| Define an MMC5603NJ. | |
MEMSIC MMC5603NJ magnetometer.
The part has no data-ready interrupt line: while sampling, the driver polls it at the output data rate. Reads run a single measurement when not sampling.
| struct pbl_mmc5603nj_state |
MMC5603NJ driver state, owned by the driver.
| Data Fields | ||
|---|---|---|
| struct pbl_delayed_work | poll_timer | Polling work. |
| uint8_t | rate_hz | Output data rate in Hz, 0 when not sampling. |
| bool | report | Frames are reported as they are sampled. |
| struct pbl_mmc5603nj |
MMC5603NJ magnetometer.
| Data Fields | ||
|---|---|---|
| struct pbl_i2c_dev | i2c | I2C device. |
| struct pbl_sensor | sensor | Sensor, child of the I2C bus. |
| struct pbl_mmc5603nj_state * | state | Driver state. |
| #define PBL_MMC5603NJ_DEFINE | ( | sym, | |
| _bus, | |||
| _addr, | |||
| ... | |||
| ) |
Define an MMC5603NJ.
Only one instance is supported.
| sym | Symbol of the instance, a struct pbl_sensor. |
| _bus | I2C bus. |
| _addr | 7-bit I2C address. |
| ... | Mounting, from PBL_SENSOR_MOUNT_MATRIX(). |