19namespace register_mode {
141 return static_cast<uint16_t
>((
static_cast<uint8_t
>(sub) << 6) | (index & 0x3F));
static constexpr uint8_t RAMDEBUG_BLOCK
Block number identifier for RAMDebug operations via SPI interface.
Definition tmc9660_ramDebug.hpp:37
static constexpr uint8_t RAMDEBUG_UART_CMD
UART command number for RAMDebug operations via UART interface.
Definition tmc9660_ramDebug.hpp:44
static uint16_t ramDebugOffset(RamDebugSub sub, uint8_t index=0)
Construct RAMDebug register offset from subcommand and index parameters.
Definition tmc9660_ramDebug.hpp:140
RamDebugSub
RAMDebug subcommands.
Definition tmc9660_ramDebug.hpp:58
@ GetPreTriggerCount
Read the total number of pretrigger samples.
@ TriggerStart
Set trigger type and start measurement.
@ SetSampleCount
Set the total number of samples to collect.
@ SetTriggerChannel
Configure the trigger channel.
@ GetChannelType
Read the configured channel type.
@ SetPrescaler
Set the prescaler (divider = value + 1).
@ GetChannelAddress
Read the configured channel address.
@ SetPreTriggerCount
Set the total number of pretrigger samples.
@ Init
Initialize and reset RAMDebug.
@ SetTriggerMaskShift
Set mask and shift before trigger evaluation.
@ GetState
Read the current RAMDebug state.
@ GetInfo
Read general RAMDebug information.
@ ReadSample
Read a captured sample by index.
@ SetChannel
Configure a capture channel.
TriggerType
Trigger types (for TriggerStart)
Definition tmc9660_ramDebug.hpp:118
@ FallingEdgeU
Trigger on unsigned falling edge.
@ AnyEdgeU
Trigger on any unsigned edge.
@ FallingEdgeS
Trigger on signed falling edge.
@ RisingEdgeU
Trigger on unsigned rising edge.
@ RisingEdgeS
Trigger on signed rising edge.
@ AnyEdgeS
Trigger on any signed edge.
RamDebugState
RAMDebug states (returned by GetState)
Definition tmc9660_ramDebug.hpp:101
@ PreTrigger
Capturing pretrigger samples.
@ Capture
Capturing samples after the trigger.
@ Complete
Capture is complete, samples can be downloaded.
@ Idle
RAMDebug is not running and can be configured.
@ Trigger
Waiting for the trigger event.
InfoSelect
RAMDebug info selections (for subcommand GetInfo)
Definition tmc9660_ramDebug.hpp:84
@ CapturedSamples
Number of samples already captured.
@ PrescalerOnTrigger
Prescaler value at the trigger event.
@ FrequencyHz
RAMDebug frequency in Hz.
@ MaxSamples
Maximum number of samples supported.
@ MaxChannels
Maximum number of channels supported.
Definition bootloader_config.hpp:9