Skip to content

Commit b1846ce

Browse files
committed
Modify quick register names
1 parent c079bcc commit b1846ce

1 file changed

Lines changed: 71 additions & 102 deletions

File tree

device.yml

Lines changed: 71 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ whoAmI: 1130
66
firmwareVersion: "0.7"
77
hardwareTargets: "1.0"
88
registers:
9-
10-
11-
##################################
12-
# Enable and disable
13-
##################################
9+
##################################
10+
# Enable and disable
11+
##################################
1412
EnableDriver:
1513
address: 32
1614
type: U8
@@ -48,9 +46,9 @@ registers:
4846
maskType: DigitalInputs
4947
description: Specifies a set of digital inputs to disable in the device.
5048

51-
##################################
52-
# Configuration
53-
##################################
49+
##################################
50+
# Configuration
51+
##################################
5452
Motor0OperationMode: &opmode
5553
address: 38
5654
type: U8
@@ -74,7 +72,7 @@ registers:
7472
type: U8
7573
access: Write
7674
maskType: MicrostepResolution
77-
description: Configures the microstep resolution for motor 0.
75+
description: Configures the microstep resolution for motor 0.
7876
Motor1MicrostepResolution:
7977
<<: *microstep_resolution
8078
address: 43
@@ -108,7 +106,7 @@ registers:
108106
<<: *maxcurrent
109107
address: 49
110108
description: Configures the maximum run RMS current per phase for motor 3.
111-
109+
112110
Motor0HoldCurrentReduction: &currentreduction
113111
address: 50
114112
type: U8
@@ -236,11 +234,10 @@ registers:
236234
access: Write
237235
maskType: AccumulatedStepsSamplingRateConfig
238236
description: Configures the dispatch rate of the accumulated steps event.
239-
240237

241-
##################################
242-
# Events
243-
##################################
238+
##################################
239+
# Events
240+
##################################
244241
MotorStopped:
245242
address: 74
246243
type: U8
@@ -291,9 +288,9 @@ registers:
291288
maskType: DeviceStateMode
292289
description: Contains the state of the device.
293290

294-
##################################
295-
# Movement control
296-
##################################
291+
##################################
292+
# Movement control
293+
##################################
297294

298295
MoveRelative:
299296
address: 80
@@ -319,7 +316,7 @@ registers:
319316
address: 81
320317
type: S32
321318
access: Write
322-
description: Moves motor 0 by the number of steps written in this register and set the direction according to the value's signal.
319+
description: Moves motor 0 by the number of steps written in this register and set the direction according to the value's signal.
323320
Motor1MoveRelative:
324321
<<: *motorsteps
325322
address: 82
@@ -407,8 +404,8 @@ registers:
407404
Mortor3AccumulatedSteps:
408405
<<: *motorsaccumulatedsteps
409406
address: 94
410-
description: Contains the accumulated number of steps of motor 3. Write a value to set the current number of accumulated steps.
411-
407+
description: Contains the accumulated number of steps of motor 3. Write a value to set the current number of accumulated steps.
408+
412409
MaxPosition:
413410
address: 95
414411
type: S32
@@ -523,9 +520,9 @@ registers:
523520
address: 109
524521
description: Starts the movement of motor 3 with the step interval defined by this register, disregarding the acceleration protocol. The sign of the value specifies the direction.
525522

526-
##################################
527-
# Actions
528-
##################################
523+
##################################
524+
# Actions
525+
##################################
529526
StopMotors:
530527
address: 110
531528
type: U8
@@ -539,17 +536,16 @@ registers:
539536
visibility: private
540537
maskType: StepperMotors
541538
description: Resets the internal motor driver which also clears any eventual error (not implemented).
542-
543539
ResetEncoders:
544540
address: 112
545541
type: U8
546542
access: Write
547543
maskType: QuadratureEncoders
548544
description: Resets the encoder.
549545

550-
##################################
551-
# Reserved
552-
##################################
546+
##################################
547+
# Reserved
548+
##################################
553549
Reserved0: &reserved
554550
address: 113
555551
type: U8
@@ -568,7 +564,6 @@ registers:
568564
<<: *reserved
569565
address: 116
570566
description: Contains the CFG configuration pins of the TMC2210 driver that controls motor 3.
571-
572567
Reserved4:
573568
<<: *reserved
574569
address: 117
@@ -590,115 +585,94 @@ registers:
590585
visibility: private
591586
description: Contains the raw data of the digital potentiometer that controls current limit of motor 3.
592587

593-
##################################
594-
# Quick movement
595-
##################################
596-
Reserved8:
597-
<<: *reserved
588+
##################################
589+
# Reserved block
590+
##################################
591+
Reserved8: &reserved_unused
598592
address: 121
599593
visibility: private
600-
description: Reserved register. Do not write.
594+
type: U8
595+
access: Read
596+
description: Reserved register.
601597
Reserved9:
602-
<<: *reserved
603-
address: 122
604-
visibility: private
605-
description: Reserved register. Do not write.
598+
<<: *reserved_unused
599+
address: 122
606600
Reserved10:
607-
<<: *reserved
601+
<<: *reserved_unused
608602
address: 123
609-
visibility: private
610-
description: Reserved register. Do not write.
611603
Reserved11:
612-
<<: *reserved
613-
address: 124
614-
visibility: private
615-
description: Reserved register. Do not write.
604+
<<: *reserved_unused
605+
address: 124
616606
Reserved12:
617-
<<: *reserved
607+
<<: *reserved_unused
618608
address: 125
619-
visibility: private
620-
description: Reserved register. Do not write.
621609
Reserved13:
622-
<<: *reserved
623-
address: 126
624-
visibility: private
625-
description: Reserved register. Do not write.
610+
<<: *reserved_unused
611+
address: 126
626612
Reserved14:
627-
<<: *reserved
613+
<<: *reserved_unused
628614
address: 127
629-
visibility: private
630-
description: Reserved register. Do not write.
631615
Reserved15:
632-
<<: *reserved
633-
address: 128
634-
visibility: private
635-
description: Reserved register. Do not write.
616+
<<: *reserved_unused
617+
address: 128
636618
Reserved16:
637-
<<: *reserved
619+
<<: *reserved_unused
638620
address: 129
639-
visibility: private
640-
description: Reserved register. Do not write.
641621

642-
##################################
643-
# Quick movement
644-
##################################
622+
##################################
623+
# Quick movement
624+
##################################
645625
TriggerQuickMovement:
646626
address: 130
647627
type: U8
648628
access: Write
649629
maskType: StepperMotors
650-
description: Triggers the quick movement in the correspondent motor.
651-
652-
Motor1PulseDistance:
630+
description: Triggers the quick movement in the correspondent motor with the currently configured settings.
631+
Motor1QuickMovementPulseDistance: &quickmovement_pulsedistance
653632
address: 131
654633
type: Float
655634
access: Write
656-
description: Sets the single pulse distance in millimeters for the Motor 1.
657-
Motor2PulseDistance:
635+
description: Sets the single pulse distance for a quick movement, in millimeters, for the Motor 1.
636+
Motor2QuickMovementPulseDistance:
637+
<<: *quickmovement_pulsedistance
658638
address: 132
659-
type: Float
660-
access: Write
661-
description: Sets the single pulse distance in millimeters for the Motor 2.
662-
Motor1NominalSpeed:
639+
description: Sets the single pulse distance for a quick movement, in millimeters, for the Motor 2.
640+
Motor1QuickMovementNominalSpeed: &quickmovement_nominalspeed
663641
address: 133
664642
type: Float
665643
access: Write
666-
description: Sets the target speed in millimeters per second for the Motor 1.
667-
Motor2NominalSpeed:
644+
description: Sets the target speed for a quick movement, in millimeters per second, for the Motor 1.
645+
Motor2QuickMovementNominalSpeed:
646+
<<: *quickmovement_nominalspeed
668647
address: 134
669-
type: Float
670-
access: Write
671-
description: Sets the target speed in millimeters per second for the Motor 2.
672-
Motor1InitialSpeed:
648+
description: Sets the target speed for a quick movement, in millimeters per second, for the Motor 2.
649+
Motor1QuickMovementInitialSpeed: &quickmovement_initialspeed
673650
address: 135
674651
type: Float
675652
access: Write
676-
description: Sets the start speed in millimeters per second for the Motor 1.
677-
Motor2InitialSpeed:
653+
description: Sets the initial speed for a quick movement, in millimeters per second, for the Motor 1.
654+
Motor2QuickMovementInitialSpeed:
655+
<<: *quickmovement_initialspeed
678656
address: 136
679-
type: Float
680-
access: Write
681-
description: Sets the start speed in millimeters per second for the Motor 2.
682-
Motor1Acceleration:
657+
description: Sets the initial speed for a quick movement, in millimeters per second, for the Motor 2.
658+
Motor1QuickMovementAcceleration: &quickmovement_acceleration
683659
address: 137
684660
type: Float
685661
access: Write
686-
description: Sets the acceleration in millimeters per second^2 for the Motor 1.
687-
Motor2Acceleration:
662+
description: Sets the acceleration for a quick movement, in millimeters per second^2, for the Motor 1.
663+
Motor2QuickMovementAcceleration:
664+
<<: *quickmovement_acceleration
688665
address: 138
689-
type: Float
690-
access: Write
691-
description: Sets the acceleration in millimeters per second^2 for the Motor 2.
692-
Motor1Distance:
666+
description: Sets the acceleration for a quick movement, in millimeters per second^2, for the Motor 2.
667+
Motor1QuickMovementDistance: &quickmovement_distance
693668
address: 139
694669
type: Float
695670
access: Write
696-
description: Sets the travel distance in millimeters for the Motor 1.
697-
Motor2Distance:
671+
description: Sets the travel distance of a quick movement, in millimeters, for the Motor 1.
672+
Motor2QuickMovementDistance:
673+
<<: *quickmovement_distance
698674
address: 140
699-
type: Float
700-
access: Write
701-
description: Sets the travel distance in millimeters for the Motor 2.
675+
description: Sets the travel distance of a quick movement, in millimeters, for the Motor 1.
702676

703677
##################################
704678
# Bit masks
@@ -815,8 +789,3 @@ groupMasks:
815789
values:
816790
Disabled: 0
817791
Enabled: 1
818-
ArmQuickMovementsConfig:
819-
description: Specifies the quick movement configuration.
820-
values:
821-
Default: 0
822-
Arm: 1

0 commit comments

Comments
 (0)