Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 28 of 40

700 Series Color Mobile Computer User's Manual: Section 7 - Programming, pages 230 to 239

Pages 230 to 239 of 346, from 700 Series Color Mobile Computer User's Manual

The original document is the PDF (2.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Intermec Model 720, Intermec Model 740, Intermec Model 741, Intermec Model 751, Intermec Model 760, Intermec Model 710, Intermec Model 730 and Intermec Model 761

Page 230

Programming

SECTION 7

IOCTL_HAL_ITC_READ_PARM Usage: #include “oemioctl.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_ITC_READ_PARM, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf Points to this structure. See “ID Field Values” below. struct PARMS { BYTE id; BYTE ClassId; };

nInBufSize lpOutBuf

Must be set to the size of the PARMS structure. Must point to a buffer large enough to hold the return data of the function. If this field is set to NULL and nOutBufSize is set to zero when the function is called the function will return the number bytes required by the buffer. nOutBufSize The size of lpOutBuf in bytes. lpBytesReturned The number of bytes returned by the function for the data requested. Return Values: Returns TRUE if function succeeds. Returns FALSE if the function fails. GetLastError() may be used to get the error value. Either ERROR_INVALID_PARAMETER or ERROR_INSUFFICIENT_BUFFER may be returned when this function is used to get the error. ID Field Values: The id field of the PARMS structure may be one of the following values: ITC_NVPARM_ETHERNET_ID This IOCTL returns the Ethernet 802.11 MAC Address. Six bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_SERIAL_NUM This IOCTL returns the serial number of the device in BCD format. Six bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_MANF_DATE This IOCTL returns the device date of manufacture in the BCD YYYY/MM/DD format. Four bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_SERVICE_DATE This IOCTL returns the device’s date of last service in BCD YYYY/MM/ DD format. Four bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_DISPLAY_TYPE This IOCTL returns the device’s display type. One byte is returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_EDG_IP This IOCTL returns the device Ethernet debug IP address. Four bytes are returned in the buffer pointed to by the lpOutBuffer parameter. 700 Series Color Mobile Computer User’s Manual

7-21

Page 231

Programming

SECTION 7

ITC_NVPARM_EDBG_SUBNET This IOCTL returns the device Ethernet debug subnet mask. Four bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_ECN This IOCTL returns ECNs applied to the device in a bit array format. Four bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_CONTRAST This IOCTL returns the device default contrast setting. Two bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_MCODE This IOCTL returns the manufacturing configuration code for the device. Sixteen bytes are returned in the buffer pointed to by the lpOutBuffer parameter. ITC_NVPARM_VERSION_NUMBER This IOCTL returns the firmware version for various system components. These values for the ClassId field of the PARMS structure are allowed when ITC_NVPARM_VERSION_NUMBER is used in the id field: VN_CLASS_KBD Returns a five-byte string, including null terminator, that contains an ASCII value which represents the keyboard microprocessor version in the system. The format of the string is x.xx with a terminating null character. VN_CLASS_ASIC Returns a five-byte string, including null terminator, that contains an ASCII value which represents the version of the FPGA firmware in the system. The format of the string is x.xx with a terminating null character. VN_CLASS_BOOTSTRAP Returns a five-byte string, including null terminator, that contains an ASCII value which represents the version of the Bootstrap Loader firmware in the system. The format of the string is x.xx with a terminating null character. ITC_NVPARM_INTERMEC_SOFTWARE_CONTENT This IOCTL reads the manufacturing flag bits from the non-volatile data store that dictates certain software parameters. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer that indicates if Intermec Content is enabled in the XIP regions. TRUE indicates that it is enabled. FALSE indicates that it is not enabled. ITC_NVPARM_ANTENNA_DIVERSITY This IOCTL reads the state of the antenna diversity flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer that indicates if there is a diversity antenna installed. TRUE indicates that it is installed. FALSE indicates that it is not installed. ITC_NVPARM_WAN_RI This IOCTL reads the state of the WAN ring indicator flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer that indicates the polarity of the WAN RI signal. TRUE indicates active high. FALSE indicates active low. 7-22

700 Series Color Mobile Computer User’s Manual

Page 232

SECTION 7

Programming

ITC_NVPARM_RTC_RESTORE This IOCTL reads the state of the real-time clock restore flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the RTC will be restored upon a cold boot. FALSE indicates that the RTC will not be restored. ITC_NVPARM_INTERMEC_DATACOLLECTION_SW This IOCTL reads the state of the data collection software enabled flag. A BOOLEAN DWORD is returned in the buffer pointer to by lpOutBuffer that indicates the data collection software is to be installed at boot time. FALSE indicates the data collection software should not be installed. ITC_NVPARM_INTERMEC_DATACOLLECTION_HW This IOCTL reads the data collection hardware flags. A BYTE is returned in the buffer pointer to by lpOutBuffer that indicates the type of data collection hardware installed. The maximum possible value returned is ITC_DEVID_SCANHW_MAX. ITC_DEVID_SCANHW_NONE No scanner hardware is installed. ITC_DEVID_OEM2D_IMAGER OEM 2D imager is installed. ITC_DEVID_INTERMEC2D_IMAGER Intermec 2D imager is installed. ITC_DEVID_SE900_LASER SE900 laser is installed. ITC_DEVID_SE900HS_LASER SE900HS laser is installed. The high bit indicates whether the S6 scanning engine is installed. The bit mask for this is ITC_DEVID_S6ENGINE_MASK. A non-zero value indicates that the S6 scanning engine is installed. ITC_NVPARM_WAN_INSTALLED This IOCTL reads the state of the WAN radio installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the WAN radio is installed. FALSE indicates that no WAN radio is installed. ITC_NVPARM_WAN_FREQUENCY This IOCTL reads the state of the WAN radio frequency flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the WAN radio frequency is United States. FALSE indicates that the WAN radio frequency is European. ITC_NVPARM_WAN_RADIOTYPE This IOCTL reads the WAN radio ID installed by manufacturing. A BYTE is returned in the buffer pointer to by lpOutBuffer which indicates the type of WAN radio hardware installed. The maximum possible value returned is ITC_DEVID_WANRADIO_MAX. The current definitions are: ITC_DEVID_WANRADIO_NONE No WAN radio installed. ITC_DEVID_WANRADIO_SIERRA_SB555 CDMA Sierra Wireless radio. ITC_DEVID_WANRADIO_XIRCOM_GEM3503 GSM/GPRS Intel (Xircom) radio. ITC_DEVID_WANRADIO_SIEMENS_MC45 GSM/GPRS Siemens radio. 700 Series Color Mobile Computer User’s Manual

7-23

Page 233

Programming

SECTION 7

ITC_NVPARM_80211_INSTALLED This IOCTL reads the state of the 802.11b radio installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the 802.11b radio is installed. FALSE indicates that no 802.11b radio is installed. ITC_NVPARM_80211_RADIOTYPE This IOCTL reads the 802.11b radio ID installed by manufacturing. A BYTE is returned in the buffer pointer to by lpOutBuffer that indicates the type of 802.11b radio hardware installed. The maximum possible value returned is ITC_DEVID_80211RADIO_MAX. The current definitions are: ITC_DEVID_80211RADIO_NONE No 802.11b radio installed. ITC_DEVID_80211RADIO_INTEL_2011B Intel 2011B radio installed. ITC_NVPARM_BLUETOOTH_INSTALLED This IOCTL reads the state of the Bluetooth radio installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the Bluetooth radio is installed. FALSE indicates that no Bluetooth radio is installed. ITC_NVPARM_SERIAL2_INSTALLED This IOCTL reads the state of the serial 2 (COM2) device installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the serial 2 device is installed. FALSE indicates that no serial 2 device is installed. ITC_NVPARM_VIBRATE_INSTALLED This IOCTL reads the state of the vibrate device installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the vibrate device is installed. FALSE indicates that no vibrate device is installed. ITC_NVPARM_LAN9000_INSTALLED This IOCTL reads the state of the Ethernet device installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the Ethernet device is installed. FALSE indicates that no Ethernet device is installed. ITC_NVPARM_SIM_PROTECT_HW_INSTALLED This IOCTL reads the state of the SIM card protection hardware installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the SIM card protection hardware is installed. FALSE indicates that no SIM card protection hardware is installed. ITC_NVPARM_SIM_PROTECT_SW_INSTALLED This IOCTL reads the state of the SIM card protection software installed flag. A BOOLEAN DWORD is returned in the buffer pointed to by lpOutBuffer. TRUE indicates that the SIM card protection software is installed. FALSE indicates that no SIM card protection software is installed.

7-24

700 Series Color Mobile Computer User’s Manual

Page 234

Programming

SECTION 7

IOCTL_HAL_ITC_WRITE_SYSPARM Describes and enables the registry save location. Usage: #include “oemioctl.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_ITC_WRITE_SYSPARM, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf

A single byte that may be one of the id values. See “ID Field Values” below.

nInBufSize

Must be set to the size of the lpInBuf in bytes.

lpOutBuf

Must point to a buffer large enough to hold the data to be written to the non-volatile data store.

nOutBufSize

The size of lpOutBuf in bytes.

lpBytesReturned The number of bytes returned by the function. Return Values: Returns TRUE if function succeeds. Returns FALSE if the function fails. GetLastError() may be used to get the error value. Either ERROR_INVALID_PARAMETER or ERROR_INSUFFICIENT_BUFFER may be returned when this function is used to get the error. ID Field Values: The id field of lpInBuf may be one of the following values: ITC_REGISTRY_LOCATION This IOCTL sets the default location for where to write the registry when RegFlushKey() is called by an application. The registry may be saved to Flash, a CompactFlash storage card or a SecureDigital storage card. lpOutBuf must point to a buffer that contains a byte value of “1” for the CompactFlash card or “2” for the SecureDigital card to specify the location. ITC_REGISTRY_SAVE_ENABLE This function enables or disables the save registry to non-volatile media feature of the RegFlushKey() function. lpOutBuf must be set to zero (FALSE) if the feature is to be disabled or one (TRUE) if the feature is to be enabled. ITC_ DOCK_SWITCH This IOCTL sets a position of the dock switch. The dock switch may be set to either “modem” or “serial“ positions. lpOutBuf must point to a buffer that contains a byte value of either DOCK_MODEM or DOCK_SERIAL as defined in OEMIOCTL.H; the value specifies the position the switch is to be set.

700 Series Color Mobile Computer User’s Manual

7-25

Page 235

Programming

SECTION 7

ITC_ WAKEUP_MASK This IOCTL sets a bit mask that represents the mask for the five programmable wakeup keys. The I/O key is not a programmable wakeup key. By default it is always the system resume key and all other keys are set to disable key wakeup. A zero in a bit position masks the wakeup for that key. A one in a bit position enables wakeup for that key. lpOutBuf must point to a buffer that contains a byte value of a wakeup mask consisting of the OR’ed constants as defined in OEMIOCTL.H. Only the following keys are programmable as wakeup events. #define #define #define #define #define

SCANNER_TRIGGER SCANNER_LEFT SCANNER_RIGHT GOLD_A1 GOLD_A2

1 2 4 8 0x10

ITC_AMBIENT_KEYBOARD This IOCTL sets the threshold for the keyboard ambient sensor. This can be a value from 0 (always off) to 255 (always on). lpOutBuf must point to a buffer that contains a byte value of the desired setting. ITC_AMBIENT_FRONTLIGHT This IOCTL sets the threshold for the frontlight ambient sensor. This can be a value from 0 (always off) to 255. lpOutBuf must point to a buffer that contains a byte value of the desired setting.

7-26

700 Series Color Mobile Computer User’s Manual

Page 236

Programming

SECTION 7

IOCTL_HAL_GET_DEVICEID This IOCTL returns the device ID. There are two types of device IDs supported, which are differentiated based on the size of the output buffer. The UUID is returned if the buffer size is set to sizeof(UNIQUE_DEVICEID), otherwise the oldstyle device ID is returned. Usage: #include “pkfuncs.h” #include “deviceid.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_GET_DEVICEID, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf

Should be set to NULL. STRICT_ID settings are not supported.

lpInBufSize

Should be set to zero.

lpOutBuf

Must point to a UNIQUE_DEVICEID structure as defined by DEVICEID.H if the UUID is to be returned.

nOutBufSize

The size of the UNIQUE_DEVICEID in bytes if the UUID is to be returned. A DEVICE_ID as defined by PKFUNCS.H is returned if the size in bytes is greater than or equal to sizeof(DEVICE_ID).

lpBytesReturned The number of bytes returned by the function. Return Values: Returns TRUE if function succeeds. Returns FALSE if the function fails. GetLastError() may be used to get the extended error value.

700 Series Color Mobile Computer User’s Manual

7-27

Page 237

Programming

SECTION 7

IOCTL_HAL_GET_OAL_VERINFO Returns the HAL version information of the Pocket PC image. Usage: #include “oemioctl.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_GET_OAL_VERINFO, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf

Should be set to NULL.

lpInBufSize

Should be set to zero.

lpOutBuf

Must point to a VERSIONINFO structure as defined by OEMIOCTL.H. The fields should have these values: cboemverinfo sizeof (tagOemVerInfo); verinfover 1 sig; “ITC\0” id; ‘N’ tgtcustomer “” tgtplat SeaRay tgtplatversion Current build version number tgtcputype[8]; “Intel\0” tgtcpu “PXA250\0”; tgtcoreversion “” date Build time time Build date nOutBufSize

The size of VERSIONINFO in bytes.

lpBytesReturned Returns sizeof(PVERSIONINFO). Return Values: Returns TRUE if function succeeds. Returns FALSE if the function fails. GetLastError() may be used to get the extended error value.

7-28

700 Series Color Mobile Computer User’s Manual

Page 238

Programming

SECTION 7

IOCTL_HAL_GET_BOOTLOADER_VERINFO Returns the HAL version information of the Pocket PC image. Usage: #include “oemioctl.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_GET_OAL_VERINFO, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf

Should be set to NULL.

lpInBufSize

Should be set to zero.

lpOutBuf

Must point to a VERSIONINFO structure as defined by OEMIOCTL.H. The fields should have these values: cboemverinfo Sizeof (tagOemVerInfo); verinfover 1 sig; “ITC\0” id; ‘B’ tgtcustomer “” tgtplat SeaRay tgtplatversion Current build version number of the bootstrap loader tgtcputype[8]; “Intel\0”; tgtcpu “PXA250\0” tgtcoreversion “” date Build time time Build date nOutBufSize

The size of VERSIONINFO in bytes.

lpBytesReturned The number of bytes returned to lpOutBuf. Return Values: Returns TRUE if function succeeds. Returns FALSE if the function fails. GetLastError() may be used to get the extended error value.

700 Series Color Mobile Computer User’s Manual

7-29

Page 239

Programming

SECTION 7

IOCTL_HAL_WARMBOOT Causes the system to perform a warm-boot. The object store is retained. Usage: #include “oemioctl.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_WARMBOOT, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf

Should be set to NULL.

lpInBufSize

Should be set to zero.

lpOutBuf

Should be NULL.

nOutBufSize

Should be zero.

Return Values: None.

IOCTL_HAL_COLDBOOT Causes the system to perform a cold-boot. The object store is cleared. Usage: #include “oemioctl.h” Syntax: BOOL KernelIoControl( IOCTL_HAL_COLDBOOT, LPVOID lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned ); Parameters: lpInBuf

Should be set to NULL.

lpInBufSize

Should be set to zero.

lpOutBuf

Should be NULL.

nOutBufSize

Should be zero.

Return Values: None.

7-30

700 Series Color Mobile Computer User’s Manual