TMC9660 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions | Variables
tmc9660_globals.hpp File Reference

The global parameters of parameter mode (SGP, GGP): banks 0, 2 and 3 (Tables 61 to 63). More...

#include <array>
#include <cstddef>
#include <cstdint>
#include "tmc9660_params.hpp"

Go to the source code of this file.

Classes

struct  tmc9660::GlobalInfo
 One global parameter: its bank, number, access and range. More...
 

Namespaces

namespace  tmc9660
 The TMC9660 driver: everything it declares lives here; internals in detail.
 
namespace  tmc9660::global0
 Bank 0 numbers.
 

Enumerations

enum class  tmc9660::GlobalBank : uint8_t { tmc9660::System = 0 , tmc9660::UserVars = 2 , tmc9660::Interrupts = 3 }
 Banks of global parameters. More...
 

Functions

constexpr const GlobalInfo * tmc9660::FindGlobal (uint8_t bank, uint32_t number) noexcept
 The row of a global parameter.
 

Variables

constexpr uint16_t tmc9660::global0::SERIAL_ADDRESS = 1
 Module address, odd values only.
 
constexpr uint16_t tmc9660::global0::SERIAL_HOST_ADDRESS = 2
 Host address.
 
constexpr uint16_t tmc9660::global0::HEARTBEAT_MONITORING_CONFIG = 3
 0 off, 1 UART, 2 SPI, 3 both.
 
constexpr uint16_t tmc9660::global0::HEARTBEAT_MONITORING_TIMEOUT = 4
 Timeout in ms.
 
constexpr uint16_t tmc9660::global0::IO_DIRECTION_MASK = 5
 GPIO direction mask.
 
constexpr uint16_t tmc9660::global0::IO_INPUT_PULLUP_PULLDOWN_ENABLE_MASK = 6
 Pull resistor enable mask.
 
constexpr uint16_t tmc9660::global0::IO_INPUT_PULLUP_PULLDOWN_DIRECTION_MASK = 7
 Pull direction mask.
 
constexpr uint16_t tmc9660::global0::WAKE_PIN_CONTROL_ENABLE = 10
 Enable the WAKE pin function.
 
constexpr uint16_t tmc9660::global0::GO_TO_TIMEOUT_POWER_DOWN_STATE
 Write only: power down for 250 ms to 32 s.
 
constexpr uint16_t tmc9660::global0::MAIN_LOOPS = 12
 Read only: main loops per second.
 
constexpr uint16_t tmc9660::global0::TORQUE_LOOPS = 13
 Read only: torque loops per second.
 
constexpr uint16_t tmc9660::global0::VELOCITY_LOOPS = 14
 Read only: velocity loops per second.
 
constexpr uint16_t tmc9660::global0::AUTO_START_ENABLE = 77
 Start the script after power-up.
 
constexpr uint16_t tmc9660::global0::CLEAR_USER_VARIABLES = 85
 Clear the user variables at start-up.
 
constexpr std::array< GlobalInfo, 55 > tmc9660::kGlobals = detail::MakeGlobals()
 Tables 61 to 63, sorted by bank and number.
 

Detailed Description

The global parameters of parameter mode (SGP, GGP): banks 0, 2 and 3 (Tables 61 to 63).