Skyward boardcore
|
Various BMX160 register/enums definitions. More...
Classes | |
struct | AccRaw |
Raw struct, read directly from device. More... | |
struct | GyrRaw |
Raw struct, read directly from device. More... | |
struct | MagRaw |
Raw struct, read directly from device. More... | |
struct | TrimData |
Struct holding trim data used for magnetomer compensation. More... | |
Variables | |
const uint16_t | FIFO_SIZE = 200 |
Driver's fifo size expressed as number of samples. | |
const float | TEMP_SENSIBILITY = 64.0f / 32768.0f |
Temperature sensor sensibility. | |
const float | MAG_SENSIBILITY = 0.003 |
Magnetometer fixed sensibility. | |
const uint8_t | CHIPID = 0xD8 |
BMX160 Chip Id. | |
const uint8_t | FIFO_CONFIG_1_DEFAULT = 0x10 |
Default value for FIFO_CONFIG_1. | |
const uint8_t | PMU_STATUS_ALL_MASK = 0x03 | 0x0C | 0x30 |
Mask for PMU_STATUS register (Power Mode Unit). | |
const uint8_t | PMU_STATUS_ALL_NORMAL = 0x01 | 0x04 | 0x10 |
Mask for PMU_STATUS register, normal status for all sensors. | |
const uint8_t | FIFO_STOP_BYTE = 128 |
This value indicates that the data in the FIFO stops prematurely. | |
const uint8_t | FIFO_HEADER_MODE_MASK = 0xC0 |
Mask for fifo header mode. | |
const uint8_t | FIFO_HEADER_PARM_MASK = 0x3C |
Mask for fifo header parm. | |
const uint8_t | FIFO_HEADER_EXT_MASK = 0x03 |
Mask for fifo header ext. | |
Various BMX160 register/enums definitions.
|
strong |
BMX160 Commands.
Definition at line 247 of file BMX160Defs.h.
Values for FIFO_CONFIG_1 register.
Definition at line 75 of file BMX160Defs.h.
Values for FIFO_DOWNS register.
Enumerator | |
---|---|
FIFO_DOWNS_ACC_FILT_DATA | |
FIFO_DOWNS_GYR_FILT_DATA |
Definition at line 86 of file BMX160Defs.h.
Values for fifo header byte.
Definition at line 168 of file BMX160Defs.h.
Values for INT_EN_1 register.
Enumerator | |
---|---|
INT_EN_1_FIFO_WATERMARK | Enables interrupt for FIFO watermark. |
INT_EN_1_FIFO_FULL | Enables interrupt for FIFO full. |
Definition at line 117 of file BMX160Defs.h.
Values for INT_MAP_1 register.
Enumerator | |
---|---|
INT_MAP_1_INT_1_FIFO_WATERMARK | |
INT_MAP_1_INT_1_FIFO_FULL | |
INT_MAP_1_INT_2_FIFO_WATERMARK | |
INT_MAP_1_INT_2_FIFO_FULL |
Definition at line 106 of file BMX160Defs.h.
Values for INT_OUT_CTRL register.
Definition at line 95 of file BMX160Defs.h.
Values for mag CONTROL.
Enumerator | |
---|---|
MAG_CONTROL_SELF_TEST | |
MAG_CONTROL_NORMAL | |
MAG_CONTROL_FORCED | |
MAG_CONTROL_SLEEP |
Definition at line 193 of file BMX160Defs.h.
Values for MAG_IF_0 register.
Definition at line 126 of file BMX160Defs.h.
Values for mag RESET.
Enumerator | |
---|---|
MAG_RESET_POWER_CONTROL |
Definition at line 185 of file BMX160Defs.h.
Internal magnetometer definitions.
Definition at line 353 of file BMX160Defs.h.
|
strong |
BMX160 power modes.
Enumerator | |
---|---|
SUSPEND | |
NORMAL | |
LOW_POWER | |
FAST_START_UP |
Definition at line 263 of file BMX160Defs.h.
Internal register definitions.
Definition at line 274 of file BMX160Defs.h.
Values for SELF_TEST register.
Definition at line 64 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::CHIPID = 0xD8 |
BMX160 Chip Id.
Definition at line 54 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::FIFO_CONFIG_1_DEFAULT = 0x10 |
Default value for FIFO_CONFIG_1.
Definition at line 59 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::FIFO_HEADER_EXT_MASK = 0x03 |
Mask for fifo header ext.
Definition at line 163 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::FIFO_HEADER_MODE_MASK = 0xC0 |
Mask for fifo header mode.
Definition at line 153 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::FIFO_HEADER_PARM_MASK = 0x3C |
Mask for fifo header parm.
Definition at line 158 of file BMX160Defs.h.
const uint16_t Boardcore::BMX160Defs::FIFO_SIZE = 200 |
Driver's fifo size expressed as number of samples.
Definition at line 39 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::FIFO_STOP_BYTE = 128 |
This value indicates that the data in the FIFO stops prematurely.
Definition at line 148 of file BMX160Defs.h.
const float Boardcore::BMX160Defs::MAG_SENSIBILITY = 0.003 |
Magnetometer fixed sensibility.
Definition at line 49 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::PMU_STATUS_ALL_MASK = 0x03 | 0x0C | 0x30 |
Mask for PMU_STATUS register (Power Mode Unit).
Definition at line 138 of file BMX160Defs.h.
const uint8_t Boardcore::BMX160Defs::PMU_STATUS_ALL_NORMAL = 0x01 | 0x04 | 0x10 |
Mask for PMU_STATUS register, normal status for all sensors.
Definition at line 143 of file BMX160Defs.h.
const float Boardcore::BMX160Defs::TEMP_SENSIBILITY = 64.0f / 32768.0f |
Temperature sensor sensibility.
Definition at line 44 of file BMX160Defs.h.