Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package amlib.hw

This package provides APIs to communication with hardware.

See:
Description

Class Summary
HardwareInterface |

Enum Summary
HWType |

## Package amlib.hw Description

This package provides APIs to communication with hardware.
Create HardwareInterface object
Before initialing the Reader, you should enumerating the hardware and assigning it to HardwareInterface object.
Enumerating the hardware is not implement in this package, please see USB Host

     UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
     UsbDevice device;
     HardwareInterface myDev;
     boolean result;

...to abtain the correct UsbDevice.

     mMyDev = new HardwareInterface(HWType.eUSB);
     try{
          result = myDev.Init(mManager, mUsbDev);
     }
     catch(Exception e){
          e.printStackTrace();
     }

To setup log configurations

     mMyDev.setLog(mContext, false, 0x3);

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES