Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
IHOLD_IRUN.cpp
00001 #include "TMCStepper.h" 00002 #include "TMC_MACROS.h" 00003 00004 #define SET_REG(SETTING) IHOLD_IRUN_register.SETTING = B; write(IHOLD_IRUN_register.address, IHOLD_IRUN_register.sr); 00005 #define GET_REG(SETTING) return IHOLD_IRUN_register.SETTING; 00006 00007 // IHOLD_IRUN 00008 uint32_t TMCStepper::IHOLD_IRUN() { return IHOLD_IRUN_register.sr; } 00009 void TMCStepper::IHOLD_IRUN(uint32_t input) { 00010 IHOLD_IRUN_register.sr = input; 00011 write(IHOLD_IRUN_register.address, IHOLD_IRUN_register.sr); 00012 } 00013 00014 void TMCStepper::ihold(uint8_t B) { SET_REG(ihold); } 00015 void TMCStepper::irun(uint8_t B) { SET_REG(irun); } 00016 void TMCStepper::iholddelay(uint8_t B) { SET_REG(iholddelay); } 00017 00018 uint8_t TMCStepper::ihold() { GET_REG(ihold); } 00019 uint8_t TMCStepper::irun() { GET_REG(irun); } 00020 uint8_t TMCStepper::iholddelay() { GET_REG(iholddelay); }
Generated on Wed Jul 13 2022 22:52:51 by
1.7.2