![]() |
AMS Advanced Air Mobility Sensors UG
|
The class implements the BMM150 Driver. The driver adjusts the sensor BMM150. More...
Classes | |
| struct | STrimRegData |
| Structure of BMM150 compensation trim parameters. More... | |
Public Types | |
| enum class | EBmmIds : uint8_t { eInvalid = 0 , eBmm1 , eBmm2 } |
| BMM150 chips supported by the driver. More... | |
Public Member Functions | |
| void | Init () override |
| bool | IsInitialized () override |
| Check BMM150 sensor is initialized. | |
| void | Bmm150ReadMagData (void) |
| Read Magnetic data from BMM150 Sensor. | |
Public Member Functions inherited from CSoftwareComponent< CBmm150Driver, 2U > | |
| CSoftwareComponent (CSoftwareComponent &)=delete | |
| CSoftwareComponent (CSoftwareComponent &&)=delete | |
| CSoftwareComponent & | operator= (const CSoftwareComponent &orOther)=delete |
| CSoftwareComponent & | operator= (CSoftwareComponent &&orOther)=delete |
| virtual void | Init ()=0 |
| virtual bool | IsInitialized ()=0 |
Static Public Attributes | |
| static constexpr int16_t | skiOvrflwAdcValXYaxisFlip_ { -4096 } |
| static constexpr int16_t | skiOvrflwAdcValZaxisHall_ { -16384 } |
| static constexpr int16_t | skiNegSaturationZaxis_ { -32767 } |
| static constexpr int16_t | skiPosSaturationZaxis_ { 32767 } |
| static constexpr int32_t | skiOvrflwOutput_ { -32768 } |
Static Public Attributes inherited from CSoftwareComponent< CBmm150Driver, 2U > | |
| static constexpr unsigned | skuInstanceCount_ |
Private Member Functions | |
| CBmm150Driver (CBmm150Driver &)=delete | |
| CBmm150Driver (CBmm150Driver &&)=delete | |
| CBmm150Driver & | operator= (const CBmm150Driver &orOther)=delete |
| CBmm150Driver & | operator= (CBmm150Driver &&orOther)=delete |
| CBmm150Driver ()=delete | |
| CBmm150Driver (EBmmIds eBmmId) | |
| Creates a driver instance for the specified BMM150 chip. | |
| ~CBmm150Driver ()=default | |
| bool | readFromAddr (uint8_t uRegAddr, uint8_t *upRegData, uint8_t uSize) |
| Read BMM150 sensor registers. | |
| bool | writeRegister (uint8_t uRegAddr, uint8_t *upRegData) |
| write to BMM150 sensor registers | |
| bool | setNormalOperationMode (void) |
| Set BMM150 sensor Normal operating mode. | |
| bool | setPresetConfig (uint8_t uXYRep, uint8_t uZRep, uint8_t uODR) |
| Set BMM150 sensor preset configuration. | |
| bool | readTrimRegisters (void) |
| Read the trim registers of the sensor. | |
| int16_t | compensateX (int16_t iMagDataX, uint16_t uDataRHall) |
| compensate magnetic data of x axis | |
| int16_t | compensateY (int16_t iMagDataY, uint16_t uDataRHall) |
| compensate magnetic data of y axis | |
| int16_t | compensateZ (int16_t iMagDataZ, uint16_t uDataRHall) |
| compensate magnetic data of z axis | |
Static Private Member Functions | |
| static CBmm150Driver & | getInstanceImpl (unsigned uInstanceIndex) |
Private Attributes | |
| STrimRegData | oTrimRegData_ |
| compensation trim parameters | |
| uint8_t | uSensorStatus_ = 0 |
| Sensor status after initialization. | |
| const EBmmIds | keSensorId_ |
| ID of the sensor corresponding to the driver instance. | |
Friends | |
| class | CSoftwareComponent< CBmm150Driver, 2U > |
Additional Inherited Members | |
Static Public Member Functions inherited from CSoftwareComponent< CBmm150Driver, 2U > | |
| static CBmm150Driver & | GetInstance (unsigned uInstanceIndex=0U) |
Protected Member Functions inherited from CSoftwareComponent< CBmm150Driver, 2U > | |
| CSoftwareComponent ()=default | |
| ~CSoftwareComponent ()=default | |
The class implements the BMM150 Driver. The driver adjusts the sensor BMM150.
|
strong |
|
privatedelete |
|
privatedelete |
|
privatedelete |
|
private |
Creates a driver instance for the specified BMM150 chip.
| eBmmId |
|
privatedefault |
| void CBmm150Driver::Bmm150ReadMagData | ( | void | ) |
Read Magnetic data from BMM150 Sensor.
|
private |
compensate magnetic data of x axis
|
private |
compensate magnetic data of y axis
|
private |
compensate magnetic data of z axis
|
staticprivate |
|
overridevirtual |
Initialize the software component.
Implements CSoftwareComponent< CBmm150Driver, 2U >.
|
overridevirtual |
Check BMM150 sensor is initialized.
Implements CSoftwareComponent< CBmm150Driver, 2U >.
|
privatedelete |
|
privatedelete |
|
private |
Read BMM150 sensor registers.
| uRegAddr | - Address of Sensor register |
| upRegData | - Array of data from sensor register |
| uSize | - Number of register data bytes to be read |
|
private |
Read the trim registers of the sensor.
|
private |
Set BMM150 sensor Normal operating mode.
|
private |
Set BMM150 sensor preset configuration.
| uXYRep | - set xy repetitions |
| uZRep | - set z repetitions |
| uODR | - set operating data rate |
|
private |
write to BMM150 sensor registers
| uRegAddr | - Address of Sensor register |
| upRegData | - Array of data to be written to sensor registers |
|
friend |
|
private |
ID of the sensor corresponding to the driver instance.
|
private |
compensation trim parameters
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
private |
Sensor status after initialization.