EasyManua.ls Logo

Motorola MC9190 User Manual

Motorola MC9190
10 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
Page 7 of 10
3. Design
3.1 Software Design
The new External power driver (EXP1) directly access the H/W and controls external power pin. The
existing Serial Driver also accesses this pin but its activity can be controlled via system registry.
Here we have blocked COM1 controlling external power pin using the below registry entry.
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial\DevPower]
"PwrControlType"=dword:00000000
Then we load External power driver as a built in driver using below registry entry so that user
application can open it using EXP1.
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\ExtPwrPin]
"FriendlyName"="External Power Pin Driver"
"Prefix"="EXP"
"Dll"="ExtPwrPin.dll"
"Index"=dword:00000001
"Order"=dword:00000005
"IClass"=MultiSZ: {A32942B7-920C-486b-B0E6-92A702A99B35}
We have below Device IO control exposed out for the application developer to use.
IOCTL_ENABLE_EXTPWRPIN
3.1.1 Sample code to enable external power
#include <winIoctl.h>
#define FILE_DEVICE_EXTERNALPOWERPIN_TOGGLER 0x00007000
#define IOCTL_ENABLE_EXTPWRPIN \
CTL_CODE(FILE_DEVICE_EXTERNALPOWERPIN_TOGGLER, 0x801, \
METHOD_BUFFERED, FILE_WRITE_ACCESS)
HANDLE g_hPwrPort=INVALID_HANDLE_VALUE;
BOOL bVal=TRUE; //Set True for Power ON
//open External power driver
g_hPwrPort = CreateFile (L"EXP1:", GENERIC_READ,FILE_SHARE_READ, \
0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
//If we have a valid handle, call DeviceIoControl
if(INVALID_HANDLE_VALUE != g_hPwrPort)
DeviceIoControl(g_hPwrPort,IOCTL_ENABLE_EXTPWRPIN, \
(LPVOID)&bVal,sizeof(BOOL),NULL,NULL,NULL,NULL);
Above code sample can be used to open the EXP1 and to set power pin to ON.
Question and Answer IconNeed help?

Do you have a question about the Motorola MC9190 and is the answer not in the manual?

Motorola MC9190 Specifications

General IconGeneral
RAM256 MB
Flash Memory1 GB
Scanner1D laser scanner or 2D imager
SealingIP64
Operating Temperature-4° F to 122° F/-20° C to 50° C
ProcessorMarvell PXA320 @ 806 MHz
Display3.7 inch VGA color display
Connectivity802.11a/b/g, Bluetooth
Battery2200 mAh Lithium-ion
Drop Spec6 ft./1.8 m drop to concrete across operating temperature range
Weightwith battery
Keypad28-key numeric, 43-key alphanumeric, 53-key alphanumeric

Summary

Introduction

Purpose

Describes the software design of MC919x External power pin control and its role in a custom accessory project.

MC9190 External Power Pin

Background

Explains the MC9190's bottom connector and how the external power pin was historically controlled.

Theory of Operation

Details the mobile computer pin-outs and the function of the external power pin.

Design

Software Design

Details how the External Power Driver (EXP1) controls H/W and external power pin via registry entries.

Sample Code to Enable External Power

Provides sample C code demonstrating how to open EXP1 and set the external power pin to ON.

State at EXP Open and Close

Explains registry entries for controlling the power pin state upon EXP1 open and close events.

Boot Up State

Details the registry entry that controls the external power pin state after a system boot.

Suspend and Resume Behavior

Describes how the external power pin behaves during system suspend and resume operations.

Test Application Overview

Introduces a test application provided for the EXP1 power driver.

Test Application Controls

Explains COM and Power block buttons, and error display in the test application.

Notes

Related product manuals