HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
tmc9660_ramDebug.hpp File Reference
#include <cstdint>
Include dependency graph for tmc9660_ramDebug.hpp:

Go to the source code of this file.

Namespaces

namespace  TMC9660
 
namespace  TMC9660::RAMDebug
 

Enumerations

enum class  TMC9660::RAMDebug::RamDebugSub : uint8_t {
  TMC9660::RAMDebug::Init = 0 , TMC9660::RAMDebug::SetSampleCount = 1 , TMC9660::RAMDebug::SetPrescaler = 3 , TMC9660::RAMDebug::SetChannel = 4 ,
  TMC9660::RAMDebug::SetTriggerChannel = 5 , TMC9660::RAMDebug::SetTriggerMaskShift = 6 , TMC9660::RAMDebug::TriggerStart = 7 , TMC9660::RAMDebug::GetState = 8 ,
  TMC9660::RAMDebug::ReadSample = 9 , TMC9660::RAMDebug::GetInfo = 10 , TMC9660::RAMDebug::GetChannelType = 11 , TMC9660::RAMDebug::GetChannelAddress = 12 ,
  TMC9660::RAMDebug::SetPreTriggerCount = 13 , TMC9660::RAMDebug::GetPreTriggerCount = 14
}
 RAMDebug subcommands. More...
 
enum class  TMC9660::RAMDebug::InfoSelect : uint8_t {
  TMC9660::RAMDebug::MaxChannels = 0 , TMC9660::RAMDebug::MaxSamples = 1 , TMC9660::RAMDebug::FrequencyHz = 2 , TMC9660::RAMDebug::CapturedSamples = 3 ,
  TMC9660::RAMDebug::PrescalerOnTrigger = 4
}
 RAMDebug info selections (for subcommand GetInfo) More...
 
enum class  TMC9660::RAMDebug::RamDebugState : uint8_t {
  TMC9660::RAMDebug::Idle = 0 , TMC9660::RAMDebug::Trigger = 1 , TMC9660::RAMDebug::Capture = 2 , TMC9660::RAMDebug::Complete = 3 ,
  TMC9660::RAMDebug::PreTrigger = 4
}
 RAMDebug states (returned by GetState) More...
 
enum class  TMC9660::RAMDebug::TriggerType : uint8_t {
  TMC9660::RAMDebug::NoTrigger = 0 , TMC9660::RAMDebug::RisingEdgeS = 1 , TMC9660::RAMDebug::FallingEdgeS = 2 , TMC9660::RAMDebug::AnyEdgeS = 3 ,
  TMC9660::RAMDebug::RisingEdgeU = 4 , TMC9660::RAMDebug::FallingEdgeU = 5 , TMC9660::RAMDebug::AnyEdgeU = 6
}
 Trigger types (for TriggerStart) More...
 

Functions

static uint16_t TMC9660::RAMDebug::ramDebugOffset (RamDebugSub sub, uint8_t index=0)
 Construct the RAMDebug register offset for a given subcommand and index.
 

Variables

static constexpr uint8_t TMC9660::RAMDebug::RAMDEBUG_BLOCK = 31
 Block number for RAMDebug (SPI interface)
 
static constexpr uint8_t TMC9660::RAMDebug::RAMDEBUG_UART_CMD = 142
 UART command number for RAMDebug.