|
TMC9660 Driver 0.1.0
API reference
|
The bootloader's configuration memory (64 bytes, datasheet "Bootloader Configuration") as a typed BootConfig, and the external-memory partition table builder.
More...
#include <array>#include <cstddef>#include <cstdint>#include <span>#include "tmc9660_detail.hpp"#include "tmc9660_frames.hpp"#include "tmc9660_types.hpp"Go to the source code of this file.
Classes | |
| class | tmc9660::BootConfig |
| The 64-byte configuration memory of the bootloader, as 16 little-endian 32-bit words. More... | |
| struct | tmc9660::PartitionEntry |
| One entry of an external-memory partition table. More... | |
Namespaces | |
| namespace | tmc9660 |
The TMC9660 driver: everything it declares lives here; internals in detail. | |
Functions | |
| constexpr Result< std::size_t > | tmc9660::BuildPartitionTable (std::span< const PartitionEntry > entries, uint8_t size_index, uint8_t sector_index, std::span< uint8_t > out) noexcept |
| Build a partition table (datasheet Tables 21 and 22): header, entries, CRC-32 over the bytes from the magic number on. | |
The bootloader's configuration memory (64 bytes, datasheet "Bootloader Configuration") as a typed BootConfig, and the external-memory partition table builder.
The configuration memory is 16 little-endian 32-bit words. Every documented field is a row of kBootFields (byte offset, shift and width as the datasheet prints them), so a field is reached by name, range checked, and the table is the single source of the layout. A field the documents leave unclear (the SPI-encoder chip-select polarity, ambiguity A16) is reachable through the raw SetWord().