TMCStepper
DRV_CONF.cpp
Go to the documentation of this file.
1
#include "
TMCStepper.h
"
2
#include "
TMC_MACROS.h
"
3
4
#define SET_REG(SETTING) DRV_CONF_register.SETTING = B; write(DRV_CONF_register.address, DRV_CONF_register.sr);
5
#define GET_REG(SETTING) return DRV_CONF_register.SETTING;
6
7
// W: DRV_CONF
8
uint32_t
TMC2160Stepper::DRV_CONF
() {
return
DRV_CONF_register.sr; }
9
void
TMC2160Stepper::DRV_CONF
(uint32_t input) {
10
DRV_CONF_register.sr = input;
11
write
(DRV_CONF_register.address, DRV_CONF_register.sr);
12
}
13
14
void
TMC2160Stepper::bbmtime
(uint8_t B) {
SET_REG
(
bbmtime
); }
15
void
TMC2160Stepper::bbmclks
(uint8_t B) {
SET_REG
(
bbmclks
); }
16
void
TMC2160Stepper::otselect
(uint8_t B) {
SET_REG
(
otselect
); }
17
void
TMC2160Stepper::drvstrength
(uint8_t B) {
SET_REG
(
drvstrength
); }
18
void
TMC2160Stepper::filt_isense
(uint8_t B) {
SET_REG
(
filt_isense
); }
19
uint8_t
TMC2160Stepper::bbmtime
() {
GET_REG
(
bbmtime
); }
20
uint8_t
TMC2160Stepper::bbmclks
() {
GET_REG
(
bbmclks
); }
21
uint8_t
TMC2160Stepper::otselect
() {
GET_REG
(
otselect
); }
22
uint8_t
TMC2160Stepper::drvstrength
() {
GET_REG
(
drvstrength
); }
23
uint8_t
TMC2160Stepper::filt_isense
() {
GET_REG
(
filt_isense
); }
TMC2160Stepper::bbmtime
uint8_t bbmtime()
Definition:
DRV_CONF.cpp:19
TMC2160Stepper::DRV_CONF
uint32_t DRV_CONF()
Definition:
DRV_CONF.cpp:8
TMCStepper.h
TMC2160Stepper::otselect
uint8_t otselect()
Definition:
DRV_CONF.cpp:21
TMC_MACROS.h
GET_REG
#define GET_REG(SETTING)
Definition:
DRV_CONF.cpp:5
SET_REG
#define SET_REG(SETTING)
Definition:
DRV_CONF.cpp:4
TMC2160Stepper::bbmclks
uint8_t bbmclks()
Definition:
DRV_CONF.cpp:20
TMC2160Stepper::drvstrength
uint8_t drvstrength()
Definition:
DRV_CONF.cpp:22
TMC2130Stepper::write
void write(uint8_t addressByte, uint32_t config)
Definition:
TMC2130Stepper.cpp:148
TMC2160Stepper::filt_isense
uint8_t filt_isense()
Definition:
DRV_CONF.cpp:23
src
source
DRV_CONF.cpp
Generated by
1.8.17