User guide

38
GENERIC_READ | GENERIC_WRITE,
0, //must be opened with exclusive-access
NULL, //no security attributes
OPEN_EXISTING, //must use OPEN_EXISTING
0,
NULL; //hTemplate must be NULL for comm devices
if (!hPWR)
{
return;
}
}
else return;
//this is just an example code (XXX represents the module name).
1. MBATT
Supply the power of Min 3.6V ~ Max 4.2V from PDA main battery.
2. TX/RX [TTL Level 232]
PDA COM Port to use is COM8 and it is 3.3V in TTL Level.
Note: It is difficult to use 230K or 460K baud rate because there is no hardware flow control. Hence, 115.2K
is recommended.
3. PWR_EN [Power Enable]
It can be controlled in the user's application to control the power of external module (refer to the source
code).
* In the case of powering up the External Device
- Things to do in the External Device Driver
1) Please define as below
#define IOCTL_HAL_PWR_SEL CTL_CODE (FILE_DEVICE_HAL, 2118, METHOD_BUFFERED,
FILE_ANY_ACCESS)
2) Power Set Low (To confirm that it is low)
ucSel = 0;
KernelIoControl(IOCTL_HAL_PWR_SEL, &ucSel, 1, NULL, 0, NULL);
Sleep(100);
3) Power Set High
ucSel = 1;
KernelIoControl(IOCTL_HAL_PWR_SEL, &ucSel, 1, NULL, 0, NULL);
Sleep(250);
* In the case of powering down the External Device
1) Power Set Low