HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
|
Convenience wrapper around the bootloader TMCL commands. More...
#include <TMC9660Bootloader.hpp>
Public Member Functions | |
TMC9660Bootloader (TMC9660CommInterface &comm, uint8_t address=0) noexcept | |
bool | setBank (uint8_t bank) noexcept |
Select the target register bank. | |
bool | setAddress (uint32_t addr) noexcept |
Set the address within the current bank. | |
bool | write8 (uint8_t v) noexcept |
Write a single byte to the previously selected address. | |
bool | write16 (uint16_t v) noexcept |
Write a 16 bit word. | |
bool | write32 (uint32_t v) noexcept |
Write a 32 bit word. | |
bool | write32Inc (const uint32_t *values, size_t count) noexcept |
Write multiple 32 bit words starting at the current address. | |
bool | otpBurn (uint8_t page) noexcept |
Permanently burn the given OTP page. | |
bool | applyConfiguration (const BootloaderConfig &cfg) noexcept |
Apply all fields of a ::BootloaderConfig. | |
Private Member Functions | |
bool | sendCommand (uint8_t op, uint16_t type, uint8_t bank, uint32_t value, uint32_t *reply=nullptr) noexcept |
Private Attributes | |
TMC9660CommInterface & | comm_ |
uint8_t | address_ |
Convenience wrapper around the bootloader TMCL commands.
The bootloader uses a small command set for writing configuration words into an internal RAM. This class provides helpers to build these commands and write a complete ::BootloaderConfig structure.
|
explicitnoexcept |
|
noexcept |
Apply all fields of a ::BootloaderConfig.
|
noexcept |
Permanently burn the given OTP page.
|
privatenoexcept |
|
noexcept |
Set the address within the current bank.
|
noexcept |
Select the target register bank.
|
noexcept |
Write a 16 bit word.
|
noexcept |
Write a 32 bit word.
|
noexcept |
Write multiple 32 bit words starting at the current address.
|
noexcept |
Write a single byte to the previously selected address.
|
private |
|
private |