User guide

39
ucSel = 0;
KernelIoControl(IOCTL_HAL_PWR_SEL, &ucSel, 1, NULL, 0, NULL);
4. DTR [Data Terminal Ready]
The DTR signal is sent via a dedicated wire from the transmitting PDA to the transmission device to indicate
that the PDA is ready to receive data.
5. RESET
Reset is controlled by the below KernelIoControl.
1) Reset Set High
ucSel = 0;
KernelIoControl(IOCTL_HAL_PWR_SEL, &ucSel, 1, NULL, 0, NULL);
Sleep (xxx) //this is to control the reset time, so please give the required sleep time between high and low.
2) Reset Set Low
ucSel = 1;
KernelIoControl(IOCTL_HAL_PWR_SEL, &ucSel, 1, NULL, 0, NULL);
6. PDA Idle
It is standby mode and Idle Current is below 200mA.
7. PDA Sleep
It is power saving mode and the Sleep Current is below 10mA.
This is an example code of when the device goes to sleep, system will power down your module (this is with
assumption that you power off your model at device sleep).
* In the case of PDA going to sleep
- Things to do in the External Device Driver
extern "C" _declspec(dllexport)
void XXX_PowerDown(DWORD hDeviceContext)
{
XXX_Power(FALSE);
return;
}
//this is just an example code (XXX represents the model name).
8. PDA Wakeup
This is an example code; you need to send a message to the application that the device is active again.
* In the case of PDA Wakes Up
- Things to do in the External Device Driver
void XXX_PowerUp(DWORD hDeviceContext)