Result Code; Get And Set Property Commands - Magtek 99875320-5 Technical Reference Manual

For swipe readers
Table of Contents

Advertisement

data. The HID specification requires that Reports be fixed in length. Command data may vary
in length. Therefore, the Report should be filled with zeros after the valid data.

RESULT CODE

This one-byte field contains the value of the result code. There are two types of result codes:
generic result codes and command-specific result codes. Generic result codes always have the
most significant bit set to zero. Generic result codes have the same meaning for all commands
and can be used by any command. Command-specific result codes always have the most
significant bit set to one. Command-specific result codes are defined by the command that uses
them. The same code can have different meanings for different commands. Command-specific
result codes are defined in the documentation for the command that uses them. Generic result
codes are defined in the following table.
Value
(Hex)
00
01
02

GET AND SET PROPERTY COMMANDS

The Get Property command gets a property from the device. The Get Property command
number is 0x00.
The Set Property command sets a property in the device. The Set Property command number
is 0x01.
The Get and Set Property command data fields for the requests and responses are structured as
follows:
Get Property Request Data:
Get Property Response Data:
Set Property Request Data:
Set Property Response Data:
None
Result Code
SUCCESS
FAILURE
BAD_PARAMETER
Data Offset
0
Data Offset
0 – n
Data Offset
0
1 – n
Section 4. USB Communications
Description
The command completed successfully.
The command failed.
The command failed due to a bad
parameter or command syntax error.
Value
Property ID
Value
Property Value
Value
Property ID
Property Value
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Usb hid intellihead

Table of Contents