Chapter 4: Software
API Enumerations
58
Psion Teklogix Omnii HDK User Manual
The fields of the Hdk7545_Eeprom structure are described below:
•
m_Size
– must be set to the size of the Hdk7545_Eeprom structure
[sizeof(Hdk7545Eeprom)].
•
m_Version
– must be set to the structure version [HDK7545_EEPROM_VERSION]. The
EEPROM version is defined in the
Hdk7545Consts.h
header file.
•
m_EepromID
– this field can be ignored. It is set by the
Hdk7545_ReadEepromHeader
and
Hdk7545_WriteEepromHeader
functions.
•
m_MfgTestRegion
– this field can be ignored. It is only used by the manufacturer for manu-
facturing test purposes.
•
m_PartNumber
– this field stores the device part number.
•
m_SerialNumber
– this field stores the device serial number.
•
m_Manufacturer
– this field stores the device manufacturer.
•
m_Model
– this field stores the device model.
•
m_HardwareRevision
– this field stores the device hardware revision.
•
m_EepromSize
– this field stores the EEPROM size in bytes (default value is 128). The field
size (if modified) is rounded down to the nearest multiple of 128 before being stored in the
EEPROM. The maximum value allowed is 32640 (255*128) bytes, or the actual size of the
EEPROM, whichever is less.
•
m_ExtendedSize
– this field stores the amount of extended data available to developers. This
is a read-only field, derived from the total EEPROM size less the EEPROM header size, typi-
cally 38 bytes (128 - 90). It can be accessed with the
Hdk7545_ReadEepromExtendedData
and
Hdk7545_WriteEepromExtendedData
functions.
For more information on the use of this structure and the reading and writing of EEPROMs, see
Section 8.3: “EEPROM Data Specification”.
4.7.6
API Enumerations
The following enumerations are declared in the file Hdk7545Consts.h:
4.7.6.1 Hdk7545_PowerMode
The Hdk7545_PowerMode enumeration is defined as follows:
4.7.6.2 Hdk7545_Connector
The Hdk7545_Connector enumeration is defined as follows:
Note: The above five null-terminated ASCII char fields have an extra character in order to
allow the use of string functions. the HDK will strip the terminating null character if
the character data completely fills the EEPROM field.
typedef enum {
Hdk7545_PowerMode_Auto = 1,
Hdk7545_PowerMode_Manual = 2,
Hdk7545_PowerMode_Invalid = 0xffffffff
} Hdk7545_PowerMode;
typedef enum {
Hdk7545_Connector_Expansion1 = 0,
Hdk7545_Connector_Expansion2 = 1,
Hdk7545_Connector_Expansion3 = 2,
Hdk7545_Connector_Invalid = 0xffffffff
} Hdk7545_Connector;
Summary of Contents for OMNii HDK XT10
Page 4: ......
Page 10: ......
Page 12: ......
Page 18: ......
Page 20: ......
Page 24: ......
Page 26: ......
Page 32: ......
Page 72: ......
Page 90: ......
Page 92: ......
Page 116: ......
Page 124: ......
Page 126: ......
Page 130: ......
Page 132: ......
Page 154: ......
Page 168: ......
Page 170: ......
Page 182: ......
Page 184: ......
Page 188: ......