mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
Still don't work :(
This commit is contained in:
@@ -46,6 +46,8 @@ int fn_canstat(uint32_t _U_ hash, char _U_ *args) WAL; // "canstat" (237384179)
|
||||
|
||||
int fn_diagn(uint32_t _U_ hash, char _U_ *args) WAL; // "diagn" (2334137736)
|
||||
|
||||
int fn_drvtype(uint32_t _U_ hash, char _U_ *args) WAL; // "drvtype" (3930242451)
|
||||
|
||||
int fn_dumpcmd(uint32_t _U_ hash, char _U_ *args) WAL; // "dumpcmd" (1223955823)
|
||||
|
||||
int fn_dumpconf(uint32_t _U_ hash, char _U_ *args) WAL; // "dumpconf" (3271513185)
|
||||
@@ -84,10 +86,14 @@ int fn_microsteps(uint32_t _U_ hash, char _U_ *args) WAL; // "microsteps" (39743
|
||||
|
||||
int fn_minspeed(uint32_t _U_ hash, char _U_ *args) WAL; // "minspeed" (3234848090)
|
||||
|
||||
int fn_motcurrent(uint32_t _U_ hash, char _U_ *args) WAL; // "motcurrent" (1926997848)
|
||||
|
||||
int fn_motflags(uint32_t _U_ hash, char _U_ *args) WAL; // "motflags" (2153634658)
|
||||
|
||||
int fn_motmul(uint32_t _U_ hash, char _U_ *args) WAL; // "motmul" (1543400099)
|
||||
|
||||
int fn_motno(uint32_t _U_ hash, char _U_ *args) WAL; // "motno" (544673586)
|
||||
|
||||
int fn_motreinit(uint32_t _U_ hash, char _U_ *args) WAL; // "motreinit" (199682784)
|
||||
|
||||
int fn_pdn(uint32_t _U_ hash, char _U_ *args) WAL; // "pdn" (2963275719)
|
||||
@@ -197,6 +203,9 @@ int parsecmd(const char *str){
|
||||
case CMD_DIAGN:
|
||||
return fn_diagn(h, args);
|
||||
break;
|
||||
case CMD_DRVTYPE:
|
||||
return fn_drvtype(h, args);
|
||||
break;
|
||||
case CMD_DUMPCMD:
|
||||
return fn_dumpcmd(h, args);
|
||||
break;
|
||||
@@ -254,12 +263,18 @@ int parsecmd(const char *str){
|
||||
case CMD_MINSPEED:
|
||||
return fn_minspeed(h, args);
|
||||
break;
|
||||
case CMD_MOTCURRENT:
|
||||
return fn_motcurrent(h, args);
|
||||
break;
|
||||
case CMD_MOTFLAGS:
|
||||
return fn_motflags(h, args);
|
||||
break;
|
||||
case CMD_MOTMUL:
|
||||
return fn_motmul(h, args);
|
||||
break;
|
||||
case CMD_MOTNO:
|
||||
return fn_motno(h, args);
|
||||
break;
|
||||
case CMD_MOTREINIT:
|
||||
return fn_motreinit(h, args);
|
||||
break;
|
||||
|
||||
@@ -31,6 +31,7 @@ int parsecmd(const char *cmdwargs);
|
||||
#define CMD_CANSPEED (549265992)
|
||||
#define CMD_CANSTAT (237384179)
|
||||
#define CMD_DIAGN (2334137736)
|
||||
#define CMD_DRVTYPE (3930242451)
|
||||
#define CMD_DUMPCMD (1223955823)
|
||||
#define CMD_DUMPCONF (3271513185)
|
||||
#define CMD_DUMPERR (1223989764)
|
||||
@@ -50,8 +51,10 @@ int parsecmd(const char *cmdwargs);
|
||||
#define CMD_MCUVDD (2517587080)
|
||||
#define CMD_MICROSTEPS (3974395854)
|
||||
#define CMD_MINSPEED (3234848090)
|
||||
#define CMD_MOTCURRENT (1926997848)
|
||||
#define CMD_MOTFLAGS (2153634658)
|
||||
#define CMD_MOTMUL (1543400099)
|
||||
#define CMD_MOTNO (544673586)
|
||||
#define CMD_MOTREINIT (199682784)
|
||||
#define CMD_PDN (2963275719)
|
||||
#define CMD_PING (10561715)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
"canspeed - GS CAN speed (reinit if setter)\n"
|
||||
"canstat - G CAN status\n"
|
||||
"diagn[N]* - G DIAG state of motor N (or all)\n"
|
||||
"drvtypeN - GS driver type (0 - only step/dir, 1 - UART, 2 - SPI, 3 - reserved)\n"
|
||||
"dumperr - dump error codes\n"
|
||||
"dumpcmd - dump command codes\n"
|
||||
"dumpconf - dump current configuration\n"
|
||||
@@ -35,8 +36,10 @@
|
||||
"mcuvdd - G MCU Vdd\n"
|
||||
"microstepsN - GS microsteps settings (2^0..2^9)\n"
|
||||
"minspeedN - min speed (steps per sec)\n"
|
||||
"motcurrentN - GS motor current (1..32 for 1/32..32/32 of max current)\n"
|
||||
"motflagsN - motorN flags\n"
|
||||
"motmul* - GS external multiplexer status (<0 - disable, 0..7 - enable and set address)\n"
|
||||
"motno - GS motor number for next `pdn` commands\n"
|
||||
"motreinit - re-init motors after configuration changed\n"
|
||||
"pdnN - GS read/write TMC2209 registers over uart @ motor0\n"
|
||||
"ping - echo given command back\n"
|
||||
|
||||
@@ -16,6 +16,7 @@ cansend
|
||||
canspeed
|
||||
canstat
|
||||
diagn
|
||||
drvtype
|
||||
dumperr
|
||||
dumpcmd
|
||||
dumpconf
|
||||
@@ -35,8 +36,10 @@ mcut
|
||||
mcuvdd
|
||||
microsteps
|
||||
minspeed
|
||||
motcurrent
|
||||
motflags
|
||||
motmul
|
||||
motno
|
||||
motreinit
|
||||
pdn
|
||||
ping
|
||||
|
||||
Reference in New Issue
Block a user