APPENDIX A, BINARY OPERATION PACKET TYPE
A.1
Operation Packet Type
The Operation packet is used by the host system to execute operations (such as Bright-
ness, Contrast, Image Position, etc) in the target system. The Operation packet payload
size is 11 bytes.
The source code definition of the Operation packet data structure is:
typedef struct
{
eOPERATION_TYPE eOpType;
WORD
eOperation;
WORD
bIsAvail;
DWORD
dwTarget;
DWORD
dwValue;
LONG
lwMin;
LONG
lwMax;
LONG
lwInc;
} OPERATION_MESSAGE;
This lets the user directly perform logical operations such as "Set Contrast = 80".
If the user performs an OPERATION_GET, the returned packet will include operation
and target along with the value.
A.
// Operation type.
// Operation
// Operation validation.
// Operation target.
// Operation value.
// Lower limit.
// Upper limit.
// Increment.
Table 2: Packet Payload format
Operation Packet Payload Format
Field
Byte
Field Name
Value
1-7
1-7
8
Operation Type
1
2
3
4
5
7
9-10
Operation Number
11
Operation Validation
12
13-16
17-18
Operation Value
19-20
Operation Value
21-24
Lower Limit
25-28
Upper Limit
29-32
Increment
Description
Header, which consists of:
Byte 1-5: 0xBE 0xEF 0x03 0x19 0x00
Byte 6-7: CRC (not in use)
(see appendix C for an example of a
complete packet)
OPERATION_SET
OPERATION_GET
OPERATION_INCREMENT
OPERATION_DECREMENT
OPERATION_EXECUTE
OPERATION_DESCRIPTOR
Operation ID.
Operation is valid, return only.
n/a (not available for use).
n/a (not available for use).
Value to SET or the value of the GET on
a return.
Not in use
Lower Parameter limit.
Upper Parameter limit
Increment steps within limits.
3