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;
Содержание OMNii HDK XT10
Страница 4: ......
Страница 10: ......
Страница 12: ......
Страница 18: ......
Страница 20: ......
Страница 24: ......
Страница 26: ......
Страница 32: ......
Страница 72: ......
Страница 90: ......
Страница 92: ......
Страница 116: ......
Страница 124: ......
Страница 126: ......
Страница 130: ......
Страница 132: ......
Страница 154: ......
Страница 168: ......
Страница 170: ......
Страница 182: ......
Страница 184: ......
Страница 188: ......