TMCStepper
IHOLD_IRUN.cpp
Go to the documentation of this file.
1
#include "
TMCStepper.h
"
2
#include "
TMC_MACROS.h
"
3
4
#define SET_REG(SETTING) IHOLD_IRUN_register.SETTING = B; write(IHOLD_IRUN_register.address, IHOLD_IRUN_register.sr);
5
#define GET_REG(SETTING) return IHOLD_IRUN_register.SETTING;
6
7
// IHOLD_IRUN
8
uint32_t
TMCStepper::IHOLD_IRUN
() {
return
IHOLD_IRUN_register.sr; }
9
void
TMCStepper::IHOLD_IRUN
(uint32_t input) {
10
IHOLD_IRUN_register.sr = input;
11
write
(IHOLD_IRUN_register.address, IHOLD_IRUN_register.sr);
12
}
13
14
void
TMCStepper::ihold
(uint8_t B) {
SET_REG
(
ihold
); }
15
void
TMCStepper::irun
(uint8_t B) {
SET_REG
(
irun
); }
16
void
TMCStepper::iholddelay
(uint8_t B) {
SET_REG
(
iholddelay
); }
17
18
uint8_t
TMCStepper::ihold
() {
GET_REG
(
ihold
); }
19
uint8_t
TMCStepper::irun
() {
GET_REG
(
irun
); }
20
uint8_t
TMCStepper::iholddelay
() {
GET_REG
(
iholddelay
); }
TMCStepper.h
TMCStepper::iholddelay
uint8_t iholddelay()
Definition:
IHOLD_IRUN.cpp:20
TMCStepper::write
virtual void write(uint8_t, uint32_t)=0
TMC_MACROS.h
TMCStepper::irun
uint8_t irun()
Definition:
IHOLD_IRUN.cpp:19
GET_REG
#define GET_REG(SETTING)
Definition:
IHOLD_IRUN.cpp:5
SET_REG
#define SET_REG(SETTING)
Definition:
IHOLD_IRUN.cpp:4
TMCStepper::IHOLD_IRUN
uint32_t IHOLD_IRUN()
Definition:
IHOLD_IRUN.cpp:8
TMCStepper::ihold
uint8_t ihold()
Definition:
IHOLD_IRUN.cpp:18
src
source
IHOLD_IRUN.cpp
Generated by
1.8.17