Prusa MINI Firmware overview
L6470_Marlin Class Reference

#include <L6470_Marlin.h>

Collaboration diagram for L6470_Marlin:

Public Member Functions

 L6470_Marlin ()
 

Static Public Member Functions

static uint16_t get_status (const uint8_t axis)
 
static uint32_t get_param (uint8_t axis, uint8_t param)
 
static void set_param (uint8_t axis, uint8_t param, uint32_t value)
 
static bool get_user_input (uint8_t &driver_count, uint8_t axis_index[3], char axis_mon[3][3], float &position_max, float &position_min, float &final_feedrate, uint8_t &kval_hold, bool over_current_flag, uint8_t &OCD_TH_val, uint8_t &STALL_TH_val, uint16_t &over_current_threshold)
 
static void error_status_decode (const uint16_t status, const uint8_t axis)
 
static void monitor_driver ()
 
static void init ()
 
static void init_to_defaults ()
 
static void say_axis (const uint8_t axis, const bool label=true)
 

Static Public Attributes

static bool index_to_dir [MAX_L6470]
 
static uint8_t axis_xref [MAX_L6470]
 
static char index_to_axis [MAX_L6470][3]
 
static uint8_t dir_commands [MAX_L6470]
 
static volatile bool spi_abort
 
static bool spi_active
 

Constructor & Destructor Documentation

◆ L6470_Marlin()

L6470_Marlin::L6470_Marlin ( )
47 {}

Member Function Documentation

◆ get_status()

static uint16_t L6470_Marlin::get_status ( const uint8_t  axis)
static

◆ get_param()

static uint32_t L6470_Marlin::get_param ( uint8_t  axis,
uint8_t  param 
)
static

◆ set_param()

static void L6470_Marlin::set_param ( uint8_t  axis,
uint8_t  param,
uint32_t  value 
)
static

◆ get_user_input()

static bool L6470_Marlin::get_user_input ( uint8_t driver_count,
uint8_t  axis_index[3],
char  axis_mon[3][3],
float &  position_max,
float &  position_min,
float &  final_feedrate,
uint8_t kval_hold,
bool  over_current_flag,
uint8_t OCD_TH_val,
uint8_t STALL_TH_val,
uint16_t &  over_current_threshold 
)
static

◆ error_status_decode()

static void L6470_Marlin::error_status_decode ( const uint16_t  status,
const uint8_t  axis 
)
static

◆ monitor_driver()

static void L6470_Marlin::monitor_driver ( )
static
Here is the caller graph for this function:

◆ init()

static void L6470_Marlin::init ( )
static
Here is the caller graph for this function:

◆ init_to_defaults()

static void L6470_Marlin::init_to_defaults ( )
static
Here is the caller graph for this function:

◆ say_axis()

static void L6470_Marlin::say_axis ( const uint8_t  axis,
const bool  label = true 
)
static

Member Data Documentation

◆ index_to_dir

bool L6470_Marlin::index_to_dir[MAX_L6470]
static

◆ axis_xref

uint8_t L6470_Marlin::axis_xref[MAX_L6470]
static

◆ index_to_axis

char L6470_Marlin::index_to_axis[MAX_L6470][3]
static

◆ dir_commands

uint8_t L6470_Marlin::dir_commands[MAX_L6470]
static

◆ spi_abort

volatile bool L6470_Marlin::spi_abort
static

◆ spi_active

bool L6470_Marlin::spi_active
static