TMCStepper
SHORT_CONF.cpp
Go to the documentation of this file.
1
#include "
TMCStepper.h
"
2
#include "
TMC_MACROS.h
"
3
4
#define SET_REG(SETTING) SHORT_CONF_register.SETTING = B; write(SHORT_CONF_register.address, SHORT_CONF_register.sr)
5
#define GET_REG(SETTING) return SHORT_CONF_register.SETTING
6
7
uint32_t
TMC2160Stepper::SHORT_CONF
() {
return
SHORT_CONF_register.sr; }
8
void
TMC2160Stepper::SHORT_CONF
(uint32_t input) {
9
SHORT_CONF_register.sr = input;
10
write
(SHORT_CONF_register.address, SHORT_CONF_register.sr);
11
}
12
13
void
TMC2160Stepper::s2vs_level
(uint8_t B) {
SET_REG
(
s2vs_level
); }
14
void
TMC2160Stepper::s2g_level
(uint8_t B) {
SET_REG
(
s2g_level
); }
15
void
TMC2160Stepper::shortfilter
(uint8_t B) {
SET_REG
(
shortfilter
); }
16
void
TMC2160Stepper::shortdelay
(
bool
B) {
SET_REG
(
shortdelay
); }
17
uint8_t
TMC2160Stepper::s2vs_level
() {
GET_REG
(
s2vs_level
); }
18
uint8_t
TMC2160Stepper::s2g_level
() {
GET_REG
(
s2g_level
); }
19
uint8_t
TMC2160Stepper::shortfilter
() {
GET_REG
(
shortfilter
); }
20
bool
TMC2160Stepper::shortdelay
() {
GET_REG
(
shortdelay
); }
TMC2160Stepper::SHORT_CONF
uint32_t SHORT_CONF()
Definition:
SHORT_CONF.cpp:7
TMCStepper.h
TMC2160Stepper::shortdelay
bool shortdelay()
Definition:
SHORT_CONF.cpp:20
SET_REG
#define SET_REG(SETTING)
Definition:
SHORT_CONF.cpp:4
TMC_MACROS.h
TMC2160Stepper::s2g_level
uint8_t s2g_level()
Definition:
SHORT_CONF.cpp:18
GET_REG
#define GET_REG(SETTING)
Definition:
SHORT_CONF.cpp:5
TMC2160Stepper::shortfilter
uint8_t shortfilter()
Definition:
SHORT_CONF.cpp:19
TMC2130Stepper::write
void write(uint8_t addressByte, uint32_t config)
Definition:
TMC2130Stepper.cpp:148
TMC2160Stepper::s2vs_level
uint8_t s2vs_level()
Definition:
SHORT_CONF.cpp:17
src
source
SHORT_CONF.cpp
Generated by
1.8.17