![]() |
MatrixMiniR4 1.1.9
Matrix Mini R4 Arduino Library API Documentation
|
A class for MATRIX Laser V2 ToF sensor. More...
#include <MiniR4_MXLaserV2.h>
Public Member Functions | |
| void | setAddress (uint8_t new_addr) |
| uint8_t | getAddress () |
| bool | begin (bool io_2v8=true) |
| Initializes the MATRIX Laser V2 ToF sensor. | |
| uint16_t | getDistance () |
| Gets the distance measured by the MATRIX Laser V2 ToF sensor. | |
| void | writeReg (uint8_t reg, uint8_t value) |
| void | writeReg16Bit (uint8_t reg, uint16_t value) |
| void | writeReg32Bit (uint8_t reg, uint32_t value) |
| uint8_t | readReg (uint8_t reg) |
| uint16_t | readReg16Bit (uint8_t reg) |
| uint32_t | readReg32Bit (uint8_t reg) |
| void | writeMulti (uint8_t reg, uint8_t const *src, uint8_t count) |
| void | readMulti (uint8_t reg, uint8_t *dst, uint8_t count) |
| bool | setSignalRateLimit (float limit_Mcps) |
| float | getSignalRateLimit () |
| bool | setMeasurementTimingBudget (uint32_t budget_us) |
| uint32_t | getMeasurementTimingBudget () |
| bool | setVcselPulsePeriod (vcselPeriodType type, uint8_t period_pclks) |
| uint8_t | getVcselPulsePeriod (vcselPeriodType type) |
| void | startContinuous (uint32_t period_ms=0) |
| void | stopContinuous () |
| uint16_t | readRangeContinuousMillimeters () |
| uint16_t | readRangeSingleMillimeters () |
| void | setTimeout (uint16_t timeout) |
| uint16_t | getTimeout () |
| bool | timeoutOccurred () |
Public Attributes | |
| uint8_t | _ch = 0 |
| TwoWire * | _pWire |
| uint8_t | last_status |
A class for MATRIX Laser V2 ToF sensor.
This class allows reading distance data from the MXLaserV2 sensor.
Definition at line 56 of file MiniR4_MXLaserV2.h.
Definition at line 101 of file MiniR4_MXLaserV2.h.
| Enumerator | |
|---|---|
| VcselPeriodPreRange | |
| VcselPeriodFinalRange | |
Definition at line 186 of file MiniR4_MXLaserV2.h.
| bool MatrixLaserV2::begin | ( | bool | io_2v8 = true | ) |
Initializes the MATRIX Laser V2 ToF sensor.
Definition at line 32 of file MiniR4_MXLaserV2.cpp.
|
inline |
Definition at line 194 of file MiniR4_MXLaserV2.h.
| uint16_t MatrixLaserV2::getDistance | ( | ) |
Gets the distance measured by the MATRIX Laser V2 ToF sensor.
Definition at line 1026 of file MiniR4_MXLaserV2.cpp.
| uint32_t MatrixLaserV2::getMeasurementTimingBudget | ( | ) |
Definition at line 500 of file MiniR4_MXLaserV2.cpp.
| float MatrixLaserV2::getSignalRateLimit | ( | ) |
Definition at line 403 of file MiniR4_MXLaserV2.cpp.
|
inline |
Definition at line 235 of file MiniR4_MXLaserV2.h.
| uint8_t MatrixLaserV2::getVcselPulsePeriod | ( | vcselPeriodType | type | ) |
Definition at line 731 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::readMulti | ( | uint8_t | reg, |
| uint8_t * | dst, | ||
| uint8_t | count ) |
Definition at line 370 of file MiniR4_MXLaserV2.cpp.
| uint16_t MatrixLaserV2::readRangeContinuousMillimeters | ( | ) |
Definition at line 802 of file MiniR4_MXLaserV2.cpp.
| uint16_t MatrixLaserV2::readRangeSingleMillimeters | ( | ) |
Definition at line 826 of file MiniR4_MXLaserV2.cpp.
| uint8_t MatrixLaserV2::readReg | ( | uint8_t | reg | ) |
Definition at line 301 of file MiniR4_MXLaserV2.cpp.
| uint16_t MatrixLaserV2::readReg16Bit | ( | uint8_t | reg | ) |
Definition at line 317 of file MiniR4_MXLaserV2.cpp.
| uint32_t MatrixLaserV2::readReg32Bit | ( | uint8_t | reg | ) |
Definition at line 334 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::setAddress | ( | uint8_t | new_addr | ) |
Definition at line 18 of file MiniR4_MXLaserV2.cpp.
| bool MatrixLaserV2::setMeasurementTimingBudget | ( | uint32_t | budget_us | ) |
Definition at line 415 of file MiniR4_MXLaserV2.cpp.
| bool MatrixLaserV2::setSignalRateLimit | ( | float | limit_Mcps | ) |
Definition at line 393 of file MiniR4_MXLaserV2.cpp.
|
inline |
Definition at line 234 of file MiniR4_MXLaserV2.h.
| bool MatrixLaserV2::setVcselPulsePeriod | ( | vcselPeriodType | type, |
| uint8_t | period_pclks ) |
Definition at line 554 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::startContinuous | ( | uint32_t | period_ms = 0 | ) |
Definition at line 750 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::stopContinuous | ( | ) |
Definition at line 788 of file MiniR4_MXLaserV2.cpp.
| bool MatrixLaserV2::timeoutOccurred | ( | ) |
Definition at line 854 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::writeMulti | ( | uint8_t | reg, |
| uint8_t const * | src, | ||
| uint8_t | count ) |
Definition at line 354 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::writeReg | ( | uint8_t | reg, |
| uint8_t | value ) |
Definition at line 267 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::writeReg16Bit | ( | uint8_t | reg, |
| uint16_t | value ) |
Definition at line 277 of file MiniR4_MXLaserV2.cpp.
| void MatrixLaserV2::writeReg32Bit | ( | uint8_t | reg, |
| uint32_t | value ) |
Definition at line 288 of file MiniR4_MXLaserV2.cpp.
| uint8_t MatrixLaserV2::_ch = 0 |
Definition at line 97 of file MiniR4_MXLaserV2.h.
| TwoWire* MatrixLaserV2::_pWire |
Definition at line 98 of file MiniR4_MXLaserV2.h.
| uint8_t MatrixLaserV2::last_status |
Definition at line 188 of file MiniR4_MXLaserV2.h.