User Manual BDS4621
Operation Packet Type
The Operation packet is used by the host system to execute operations (such as Brightness, Contrast, Image Position, etc) in the target system. The Operation packet payload size is 25 bytes.
Byte | Field Name | Field Value |
| Description |
|
0 | Operation Type | 1 |
| OPERATION_SET | |
|
| 2 |
| OPERATION_GET | |
|
| 3 | OPERATION_INCREMENT | ||
|
| 4 | OPERATION_DECREMENT | ||
|
| 5 | OPERATION_EXECUTE | ||
Operation |
| Operation ID as defined in Configurator | |||
Is Avail |
| Operation is available | |||
Operation Target |
| Used for Operation with Targets. | |||
|
|
| These Targets are defined in configurator. | ||
|
|
| For instance, op_BRIGHTNESS has a | ||
|
|
| Target of either MAIN or PIP window. | ||
Operation Value |
| Value of the Set on a set or the Value of the | |||
|
|
|
| Get on a Return. | |
Operation Value |
| The Minimum Value of the set | |||
| of minimum |
| for operation command. | ||
Operation Value |
| The Maximum Value of the set | |||
| of maximum |
| for operation command. | ||
Operation Value |
| The Increment Value of the set | |||
| of Increment |
| for operation command. | ||
|
|
| Table 8: Operation Packet Payload Format | ||
|
|
| The source code definition of the Operation | ||
|
|
| packet data structure is: |
| |
|
|
| typedef struct |
| |
|
|
| { |
|
|
|
|
| eOPERATION_TYPE | eOpType; | |
|
|
| WORD | eOperation; | |
|
|
| WORD | bisAvail; | |
|
|
| DWORD | dwTarget; | |
|
|
| DWORD | dwValue; | |
|
|
| DWORD | lmMin; |
|
|
|
| DWORD | lmMax; |
|
|
|
| DWORD | lmInc; |
|
|
|
| } OPERATION_MESSAGE; |
|
This lets the user directly perform logical operations such as "Set Contrast = 80".
52