|
| enum class | EMeasurementMode {
eSkip = 0x00
, e1Hz = 0x01
, e10Hz = 0x02
, e20Hz = 0x03
,
e50Hz = 0x04
, e100Hz = 0x05
, e200Hz = 0x06
, e1000Hz = 0x07
} |
| | An enum of measurement mode. More...
|
| |
| enum class | EBandwidth { e100Hz = 0x00
, e200Hz = 0x01
, e400Hz = 0x02
, e800Hz = 0x03
} |
| | An enum of bandwidth filter. More...
|
| |
◆ EBandwidth
An enum of bandwidth filter.
| Enumerator |
|---|
| e100Hz | Filter bandwidth 100 Hz.
|
| e200Hz | Filter bandwidth 200 Hz.
|
| e400Hz | Filter bandwidth 400 Hz.
|
| e800Hz | Filter bandwidth 800 Hz.
|
◆ EMeasurementMode
An enum of measurement mode.
| Enumerator |
|---|
| eSkip | No continuous measurement mode.
|
| e1Hz | Frequency 1 Hz.
|
| e10Hz | Frequency 10 Hz.
|
| e20Hz | Frequency 20 Hz.
|
| e50Hz | Frequency 50 Hz.
|
| e100Hz | Frequency 100 Hz.
|
| e200Hz | Frequency 200 Hz.
|
| e1000Hz | Frequency 1000 Hz.
|
◆ CMmc5983Driver() [1/3]
◆ CMmc5983Driver() [2/3]
◆ CMmc5983Driver() [3/3]
| CMmc5983Driver::CMmc5983Driver |
( |
| ) |
|
|
privatedefault |
◆ ~CMmc5983Driver()
| CMmc5983Driver::~CMmc5983Driver |
( |
| ) |
|
|
privatedefault |
◆ getInstanceImpl()
| CMmc5983Driver & CMmc5983Driver::getInstanceImpl |
( |
unsigned |
uInstanceIndex | ) |
|
|
staticprivate |
◆ getMeasurementXYZ()
| void CMmc5983Driver::getMeasurementXYZ |
( |
float & |
frValueX, |
|
|
float & |
frValueY, |
|
|
float & |
frValueZ |
|
) |
| |
|
private |
Get measured magnetic field vector.
- Parameters
-
| frValueX | reference to the value X variable |
| frValueY | reference to the value Y variable |
| frValueZ | reference to the value Z variable |
◆ getProductID()
| uint8_t CMmc5983Driver::getProductID |
( |
| ) |
|
|
private |
Get the Product ID value.
- Returns
- ProductID value
◆ getStatusRegValue()
| uint8_t CMmc5983Driver::getStatusRegValue |
( |
| ) |
|
|
private |
Is the data ready to be read.
- Returns
- uint8_t Bit mask
◆ getTemperature()
| float CMmc5983Driver::getTemperature |
( |
| ) |
|
|
private |
Get the Temperature value.
- Returns
- temperature value
- Note
- : Temperature and magnetic cannot be measured simultaneously
◆ Init()
| void CMmc5983Driver::Init |
( |
| ) |
|
|
overridevirtual |
◆ IsInitialized()
| bool CMmc5983Driver::IsInitialized |
( |
| ) |
|
|
overridevirtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ PollSensor() [1/2]
| void CMmc5983Driver::PollSensor |
( |
| ) |
|
A function overload that generates a timestamp without a data-ready interrupt.
◆ PollSensor() [2/2]
| void CMmc5983Driver::PollSensor |
( |
uint64_t |
uTimestamp | ) |
|
Poll the MMC5983 sensor.
- Parameters
-
| uTimestamp | Timestamp of the measurement generated by data-ready interrupt handler. |
◆ readFromAddress()
| void CMmc5983Driver::readFromAddress |
( |
uint8_t * |
upBuffer, |
|
|
uint8_t |
uReadAddr, |
|
|
uint16_t |
uNumByteToRead |
|
) |
| |
|
private |
Read from address via SPI.
- Parameters
-
| upBuffer | Buffer for record |
| uReadAddr | Register address |
| uNumByteToRead | Number of bytes to read |
◆ setAutoSetReset()
| void CMmc5983Driver::setAutoSetReset |
( |
| ) |
|
|
private |
Enable auto Set/Reset mode.
◆ setBitReset()
| void CMmc5983Driver::setBitReset |
( |
| ) |
|
|
private |
Request RESET function inductor coil integrated into chip See sensor datasheet for more information.
◆ setBitSet()
| void CMmc5983Driver::setBitSet |
( |
| ) |
|
|
private |
Request SET function inductor coil integrated into chip See sensor datasheet for more information.
◆ setContinuousModeFrequency()
| void CMmc5983Driver::setContinuousModeFrequency |
( |
EMeasurementMode |
eMeasurementMode | ) |
|
|
private |
Set the Measurement Mode value and enable continuous mode.
- Parameters
-
| eMeasurementMode | Mode value |
◆ setCsOff()
| void CMmc5983Driver::setCsOff |
( |
| ) |
|
|
private |
Set the chip select pin is Off.
◆ setCsOn()
| void CMmc5983Driver::setCsOn |
( |
| ) |
|
|
private |
Set the chip select pin is On.
◆ setFilterBandwidth()
| void CMmc5983Driver::setFilterBandwidth |
( |
EBandwidth |
eBandwidth | ) |
|
|
private |
Set the Filter Bandwidth value.
- Parameters
-
◆ setSoftReset()
| void CMmc5983Driver::setSoftReset |
( |
| ) |
|
|
private |
◆ spiWriteRead()
| uint8_t CMmc5983Driver::spiWriteRead |
( |
uint8_t |
uByte | ) |
|
|
private |
Read/Write via SPI.
- Parameters
-
| uByte | Register add or dummy byte |
- Returns
- The read value via SPI
◆ writeToAddress()
| void CMmc5983Driver::writeToAddress |
( |
uint8_t |
uWriteAddr, |
|
|
uint8_t |
uVal |
|
) |
| |
|
private |
Write to address via SPI.
- Parameters
-
| uWriteAddr | Register address |
| uVal | The resulting value |
◆ CSoftwareComponent< CMmc5983Driver, 1U >
◆ skuReadWriteTimeoutI2c_
| constexpr uint32_t CMmc5983Driver::skuReadWriteTimeoutI2c_ {3U} |
|
staticconstexprprivate |
◆ skuReadWriteTimeoutSpi_
| constexpr uint32_t CMmc5983Driver::skuReadWriteTimeoutSpi_ {2U} |
|
staticconstexprprivate |
◆ uSensorStatus_
| uint8_t CMmc5983Driver::uSensorStatus_ = 0 |
|
private |
Sensor status after initialization.
The documentation for this class was generated from the following files: