Command Double Feature
Command Double Feature Pseudo-Code
void ACTION(double arg)
- The Feature takes one double argument.
- The Feature do not return anything.
- The ACTION is performed on target.
Description: |
Macro |
Identifier |
Displayed Name |
Function Identifier |
Group* |
Unit* |
Range Min* |
Range Max* |
|
Example using all options: |
define_double_command( |
cmdSetBacklightVoltage, |
"Set Backlight Voltage", |
SetBacklightVoltage, |
0, |
"V", |
0.0, |
3.3 |
); |
Example without options: |
define_double_command( |
cmdSetPercentage, |
"Set Percentage", |
SetPercentage, |
, |
, |
, |
); |
*optional argument. If Group is omitted the Group-Number will default to 0.
The unique message id is derived from the row number, in source file where the macro is used.
Description |
XML |
Feature Root: Start |
<F> |
Command Double: Start |
<Cd> |
ID |
<I>BYTE</I> |
SUB ID |
<Is>BYTE</Is> |
GROUP |
<Gr>BYTE</Gr> |
NAME |
<N>STRING</N> |
UNIT (optional) |
<U>STRING</U> |
Range MIN (optional) |
<Mn>DECIMAL</Mn> |
Range MAX (optional) |
<Mx>DECIMAL</Mx> |
Command Double: End |
</Cd> |
Feature Root: End |
</F> |
IEEE 754 double-precision binary floating-point format: binary64
The value is represented by 8 bytes in the message, starting with the Least Significant Byte (Big-Endian).
Byte# |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
Name |
START |
ID |
SUB ID |
DOUBLE VALUE |
CRC MSB |
CRC LSB |
END |
|||||||
Value |
0xAA |
[0..255] |
[0..255] |
LSB |
MSB |
CRC16-CITT |
0xBB |