Skip to content

Commit 59c2998

Browse files
committed
EXRAIL documentation comments only
1 parent 6653767 commit 59c2998

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

EXRAIL2MacroBase.h

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@
3030
*/
3131

3232
#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
3435
///param subaddr DCC sub address
3536

3637

3738
#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
3941

4042
#define AFTER(vpin,timer...)
4143
///brief Wait for sensor activated, then decativated for given time
@@ -48,7 +50,7 @@
4850

4951
#define ALIAS(name,value...)
5052
///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
5254
///param value... if omitted, a large negative value is created automatically
5355

5456
#define AMBER(signal_id)
@@ -57,19 +59,17 @@
5759

5860
#define ANOUT(vpin,value,param1,param2)
5961
///brief Writes to the HAL analog output interface of a device driver.
60-
/// Values and meanings of extra parameters depend on driver.
6162
///param vpin Virtual pin number of device
6263
///param value basic analog value
6364
///param param1 device dependent
6465
///param param2 device dependent
6566

6667
#define AT(vpin)
67-
///brief wait intil a sensor becomes active
68+
///brief Wait until a sensor becomes active
6869
///param vpin Virtual pin of sensor. Use negative value for sensors that are HIGH when activated
6970

7071
#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.
7373
///param address Linear DCC address of device
7474
///param value Aspect value (Device dependent)
7575

@@ -99,7 +99,7 @@
9999
///brief A new task will be created starting from this point at Command Station startup
100100

101101
#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.
103103
///param vpin Pin to blink
104104
///param onDuty Milliseconds with LED ON
105105
///param offDuty Milliseconds with LED off
@@ -167,7 +167,8 @@
167167
///brief Waits for given minutes delay (This is not blocking)
168168

169169
#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
171172
///param maxdelay maximum delay in mS
172173

173174
#define DONE
@@ -353,12 +354,12 @@
353354
///brief Marks current task so that FWD and REV commands are inverted.
354355

355356
#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
357358
///param vpin first vpin number
358359
///param count... Number of consecutine VPINS for which to create JMRI sensor feedbacks. Default 1.
359360

360361
#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
362363
///param vpin first vpin number
363364
///param count... Number of consecutine VPINS for which to create JMRI sensor feedbacks. Default 1.
364365

@@ -519,8 +520,8 @@
519520
///param msg Quoted text
520521

521522
#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 `<>`
524525

525526
#define PICKUP_STASH(stash_id)
526527
///see STASH
@@ -683,13 +684,17 @@
683684
///brief Dedfine a servo based signal with 3 servo positions
684685
///param vpin of servo, acts as signal_id
685686
///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)
687689

688690
#define SERVO_TURNOUT(turnout_id,vpin,activeAngle,inactiveAngle,profile,description...)
689691
///brief Define a servo driven turnout
690692
///param turnout_id used by THROW/CLOSE
691693
///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
693698

694699
#define SET(vpin,count...)
695700
///brief Set pin HIGH
@@ -748,7 +753,7 @@
748753
///param code... c++ code to be defined. This requires intimate understanding of the product acrhitecture.
749754

750755
#define STOP
751-
///brief Same as SPEED(0)///see SPEED
756+
///brief Same as SPEED(0)
752757

753758
#define THROW(turnout_id)
754759
///brief Throws given turnout

0 commit comments

Comments
 (0)