|
30 | 30 | */ |
31 | 31 |
|
32 | 32 | #define ACTIVATE(addr,subaddr) |
33 | | -///brief Send DCC Accessory Activate packet (gate on then off)///param addr DCC short address of accessory |
| 33 | +///brief Send DCC Accessory Activate packet (gate on then off) |
| 34 | +///param addr DCC short address of accessory |
34 | 35 | ///param subaddr DCC sub address |
35 | 36 |
|
36 | 37 |
|
37 | 38 | #define ACTIVATEL(linearaddr) |
38 | | -///brief Send DCC Accessory Activate packet (gate on then off)///param linearaddr DCC linear address of accessory |
| 39 | +///brief Send DCC Accessory Activate packet (gate on then off) |
| 40 | +///param linearaddr DCC linear address of accessory |
39 | 41 |
|
40 | 42 | #define AFTER(vpin,timer...) |
41 | 43 | ///brief Wait for sensor activated, then decativated for given time |
|
48 | 50 |
|
49 | 51 | #define ALIAS(name,value...) |
50 | 52 | ///brief defines a named numeric value. |
51 | | -///param name c++ variable name that can be used throighout the script |
| 53 | +///param name c++ variable name that can be used throughout the script |
52 | 54 | ///param value... if omitted, a large negative value is created automatically |
53 | 55 |
|
54 | 56 | #define AMBER(signal_id) |
|
57 | 59 |
|
58 | 60 | #define ANOUT(vpin,value,param1,param2) |
59 | 61 | ///brief Writes to the HAL analog output interface of a device driver. |
60 | | -/// Values and meanings of extra parameters depend on driver. |
61 | 62 | ///param vpin Virtual pin number of device |
62 | 63 | ///param value basic analog value |
63 | 64 | ///param param1 device dependent |
64 | 65 | ///param param2 device dependent |
65 | 66 |
|
66 | 67 | #define AT(vpin) |
67 | | -///brief wait intil a sensor becomes active |
| 68 | +///brief Wait until a sensor becomes active |
68 | 69 | ///param vpin Virtual pin of sensor. Use negative value for sensors that are HIGH when activated |
69 | 70 |
|
70 | 71 | #define ASPECT(address,value) |
71 | | -///brief Sends a DCC aspect value to an accessory address. |
72 | | -/// May also change status of a signal defined using this aspect. |
| 72 | +///brief Sends a DCC aspect value to an accessory address. May also change status of a signal defined using this aspect. |
73 | 73 | ///param address Linear DCC address of device |
74 | 74 | ///param value Aspect value (Device dependent) |
75 | 75 |
|
|
99 | 99 | ///brief A new task will be created starting from this point at Command Station startup |
100 | 100 |
|
101 | 101 | #define BLINK(vpin,onDuty,offDuty) |
102 | | -///brief Starts a blinking process for a vpin (typically a LED)/// Stop blink with SET or RESET. |
| 102 | +///brief Starts a blinking process for a vpin (typically a LED). Stop blink with SET or RESET. |
103 | 103 | ///param vpin Pin to blink |
104 | 104 | ///param onDuty Milliseconds with LED ON |
105 | 105 | ///param offDuty Milliseconds with LED off |
|
167 | 167 | ///brief Waits for given minutes delay (This is not blocking) |
168 | 168 |
|
169 | 169 | #define DELAYRANDOM(mindelay,maxdelay) |
170 | | -///brief Waits for random delay between min and max milliseconds (This is not blocking)///param mindelay minumum delay in mS |
| 170 | +///brief Waits for random delay between min and max milliseconds (This is not blocking) |
| 171 | +///param mindelay minumum delay in mS |
171 | 172 | ///param maxdelay maximum delay in mS |
172 | 173 |
|
173 | 174 | #define DONE |
|
353 | 354 | ///brief Marks current task so that FWD and REV commands are inverted. |
354 | 355 |
|
355 | 356 | #define JMRI_SENSOR(vpin,count...) |
356 | | -///brief Defines multiple JMRI <s> type sensor feedback definitions each with id matching vpin and INPUT_PULLUP |
| 357 | +///brief Defines multiple JMRI `<s>` type sensor feedback definitions each with id matching vpin and INPUT_PULLUP |
357 | 358 | ///param vpin first vpin number |
358 | 359 | ///param count... Number of consecutine VPINS for which to create JMRI sensor feedbacks. Default 1. |
359 | 360 |
|
360 | 361 | #define JMRI_SENSOR_NOPULLUP(vpin,count...) |
361 | | -///brief Defines multiple JMRI <s> type sensor feedback definitions each with id matching vpin |
| 362 | +///brief Defines multiple JMRI `<s>` type sensor feedback definitions each with id matching vpin |
362 | 363 | ///param vpin first vpin number |
363 | 364 | ///param count... Number of consecutine VPINS for which to create JMRI sensor feedbacks. Default 1. |
364 | 365 |
|
|
519 | 520 | ///param msg Quoted text |
520 | 521 |
|
521 | 522 | #define PARSE(msg) |
522 | | -///brief Executes <> command as if entered from serial |
523 | | -///param msg Quoted text, preferably including <> |
| 523 | +///brief Executes `<>` command as if entered from serial |
| 524 | +///param msg Quoted text, preferably including `<>` |
524 | 525 |
|
525 | 526 | #define PICKUP_STASH(stash_id) |
526 | 527 | ///see STASH |
|
683 | 684 | ///brief Dedfine a servo based signal with 3 servo positions |
684 | 685 | ///param vpin of servo, acts as signal_id |
685 | 686 | ///param redpos servo position (values are hardware dependent) |
686 | | -///param amberpos servo position (values are hardware dependent)///param greenpos servo position (values are hardware dependent) |
| 687 | +///param amberpos servo position (values are hardware dependent) |
| 688 | +///param greenpos servo position (values are hardware dependent) |
687 | 689 |
|
688 | 690 | #define SERVO_TURNOUT(turnout_id,vpin,activeAngle,inactiveAngle,profile,description...) |
689 | 691 | ///brief Define a servo driven turnout |
690 | 692 | ///param turnout_id used by THROW/CLOSE |
691 | 693 | ///param vpin for servo |
692 | | -///param activeAngle servo position (values are hardware dependent)///param inactiveAngle servo position (values are hardware dependent)///param profile movement profile (Instant, Fast, Medium, Slow, Bounce)///param description... Quoted text shown to throttles or HIDDEN keyword to hide turnout button |
| 694 | +///param activeAngle servo position (values are hardware dependent) |
| 695 | +///param inactiveAngle servo position (values are hardware dependent) |
| 696 | +///param profile movement profile (Instant, Fast, Medium, Slow, Bounce) |
| 697 | +///param description... Quoted text shown to throttles or HIDDEN keyword to hide turnout button |
693 | 698 |
|
694 | 699 | #define SET(vpin,count...) |
695 | 700 | ///brief Set pin HIGH |
|
748 | 753 | ///param code... c++ code to be defined. This requires intimate understanding of the product acrhitecture. |
749 | 754 |
|
750 | 755 | #define STOP |
751 | | -///brief Same as SPEED(0)///see SPEED |
| 756 | +///brief Same as SPEED(0) |
752 | 757 |
|
753 | 758 | #define THROW(turnout_id) |
754 | 759 | ///brief Throws given turnout |
|
0 commit comments