|
HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
|
Subsystem for reading various telemetry and status information from the driver. More...
#include <tmc9660.hpp>
Public Member Functions | |
| bool | getGeneralStatusFlags (uint32_t &flags) noexcept |
| Read the GENERAL_STATUS_FLAGS register. | |
| float | getSupplyVoltage () noexcept |
| Read the current supply (bus) voltage. | |
| float | getChipTemperature () noexcept |
| Read the internal chip temperature. | |
| int16_t | getMotorCurrent () noexcept |
| Read the current motor current (torque current). | |
| int32_t | getActualVelocity () noexcept |
| Read the measured actual velocity of the motor. | |
| int32_t | getActualPosition () noexcept |
| Read the measured actual position of the motor. | |
| bool | getGeneralErrorFlags (uint32_t &flags) noexcept |
| Read the GENERAL_ERROR_FLAGS register. | |
| bool | getGateDriverErrorFlags (uint32_t &flags) noexcept |
| Read the GDRV_ERROR_FLAGS register. | |
| bool | clearGeneralErrorFlags (uint32_t mask) noexcept |
| Clear bits in the GENERAL_ERROR_FLAGS register. | |
| bool | clearGateDriverErrorFlags (uint32_t mask) noexcept |
| Clear bits in the GDRV_ERROR_FLAGS register. | |
| bool | getADCStatusFlags (uint32_t &flags) noexcept |
| Read the ADC_STATUS_FLAGS register (clipped ADC channels). | |
| bool | clearADCStatusFlags (uint32_t mask) noexcept |
| Clear bits in the ADC_STATUS_FLAGS register (write-1-to-clear). | |
| uint16_t | getExternalTemperature () noexcept |
| Read the external temperature sensor raw value. | |
Private Member Functions | |
| Telemetry (TMC9660 &parent) noexcept | |
Private Attributes | |
| TMC9660 & | driver |
Friends | |
| class | TMC9660 |
Subsystem for reading various telemetry and status information from the driver.
|
explicitprivatenoexcept |
|
noexcept |
Clear bits in the ADC_STATUS_FLAGS register (write-1-to-clear).
| mask | Bit mask of clipping flags to clear. |
|
noexcept |
Clear bits in the GDRV_ERROR_FLAGS register.
| mask | Bit mask of flags to clear (write-1-to-clear). |
|
noexcept |
Clear bits in the GENERAL_ERROR_FLAGS register.
| mask | Bit mask of flags to clear (write-1-to-clear). |
|
noexcept |
Read the measured actual position of the motor.
|
noexcept |
Read the measured actual velocity of the motor.
|
noexcept |
Read the ADC_STATUS_FLAGS register (clipped ADC channels).
| [out] | flags | Bit mask of clipping status. |
|
noexcept |
Read the internal chip temperature.
|
noexcept |
Read the external temperature sensor raw value.
|
noexcept |
Read the GDRV_ERROR_FLAGS register.
| [out] | flags | Bit mask of current gate driver error flags. |
|
noexcept |
Read the GENERAL_ERROR_FLAGS register.
| [out] | flags | Bit mask of current error flags. |
|
noexcept |
Read the GENERAL_STATUS_FLAGS register.
| [out] | flags | Bit mask of current status flags. |
|
noexcept |
Read the current motor current (torque current).
|
noexcept |
Read the current supply (bus) voltage.
|
private |