Prusa MINI Firmware overview
trinamic.h File Reference
#include <TMCStepper.h>
#include "../../inc/MarlinConfig.h"
#include "../../feature/tmc_util.h"

Go to the source code of this file.

Classes

struct  chopper_timing_t
 

Macros

#define ____TMC_CLASS(MODEL, A, I, E)   TMCMarlin<TMC##MODEL##Stepper, A, I, E>
 
#define ___TMC_CLASS(MODEL, A, I, E)   ____TMC_CLASS(MODEL, A, I, E)
 
#define __TMC_CLASS(MODEL, A, I, E)   ___TMC_CLASS(_##MODEL, A, I, E)
 
#define _TMC_CLASS(MODEL, L, E)   __TMC_CLASS(MODEL, L, E)
 
#define TMC_CLASS(ST, A)   _TMC_CLASS(ST##_DRIVER_TYPE, TMC_##ST##_LABEL, A##_AXIS)
 
#define TMC_CLASS_E(I)   TMC_CLASS(E##I, E)
 
#define AXIS_HAS_SQUARE_WAVE(A)   (AXIS_IS_TMC(A) && ENABLED(SQUARE_WAVE_STEPPING))
 

Functions

void restore_trinamic_drivers ()
 
void reset_trinamic_drivers ()
 

Variables

static constexpr chopper_timing_t chopper_timing = CHOPPER_TIMING
 

Macro Definition Documentation

◆ ____TMC_CLASS

#define ____TMC_CLASS (   MODEL,
  A,
  I,
 
)    TMCMarlin<TMC##MODEL##Stepper, A, I, E>

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. stepper/trinamic.h Stepper driver indirection for Trinamic

◆ ___TMC_CLASS

#define ___TMC_CLASS (   MODEL,
  A,
  I,
 
)    ____TMC_CLASS(MODEL, A, I, E)

◆ __TMC_CLASS

#define __TMC_CLASS (   MODEL,
  A,
  I,
 
)    ___TMC_CLASS(_##MODEL, A, I, E)

◆ _TMC_CLASS

#define _TMC_CLASS (   MODEL,
  L,
 
)    __TMC_CLASS(MODEL, L, E)

◆ TMC_CLASS

#define TMC_CLASS (   ST,
  A 
)    _TMC_CLASS(ST##_DRIVER_TYPE, TMC_##ST##_LABEL, A##_AXIS)

◆ TMC_CLASS_E

#define TMC_CLASS_E (   I)    TMC_CLASS(E##I, E)

◆ AXIS_HAS_SQUARE_WAVE

#define AXIS_HAS_SQUARE_WAVE (   A)    (AXIS_IS_TMC(A) && ENABLED(SQUARE_WAVE_STEPPING))

Function Documentation

◆ restore_trinamic_drivers()

void restore_trinamic_drivers ( )
Here is the caller graph for this function:

◆ reset_trinamic_drivers()

void reset_trinamic_drivers ( )
Here is the caller graph for this function:

Variable Documentation

◆ chopper_timing

constexpr chopper_timing_t chopper_timing = CHOPPER_TIMING
staticconstexpr