NXC
Version 1.2.1 r5
|
#define RunStateField 6 |
Run state field.
Contains one of the run state constants. Read/write. Use this field to specify the running state of an output. Set the RunStateField to OUT_RUNSTATE_RUNNING to enable power to any output. Use OUT_RUNSTATE_RAMPUP to enable automatic ramping to a new PowerField level greater than the current PowerField level. Use OUT_RUNSTATE_RAMPDOWN to enable automatic ramping to a new PowerField level less than the current PowerField level. Both the rampup and rampdown bits must be used in conjunction with appropriate TachoLimitField and PowerField values. In this case the firmware smoothly increases or decreases the actual power to the new PowerField level over the total number of degrees of rotation specified in TachoLimitField.