122
CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
CWirelessUSBStatusPropertySheet Class Methods.
The CWirelessUSBStatusPropertySheet
class is the Visual C++ generated file that implements the WirelessUSB Status Property Sheet,
which generates a unique WirelessUSB Device Status Property Page for each WirelessUSB device
enumerated.
CHidTrayDevice Class Methods.
The CHidTrayDevice class is derived from the CHidDevice class
and is the class used to interface with WirelessUSB devices.
CHidTrayManager Class Methods.
The CHidTrayManager class is derived from the CHidManager
class and is used to manage WirelessUSB devices.
Table A-16. CWirelessUSBStatusPropertySheet Methods
Method
Type
Description
OnInitDialog()
Public
This method initializes the wireless status property sheet and adds a prop-
erty page for each HID device in the list
OnBnClickedClose()
Public
This method ends the dialog box if the user selects the Close button
Table A-17. CHidTrayDevice Methods
Method
Type
Description
RequestNewUsageValues() Public
This method sets up and issues a Set Feature request to the HID
device, which now simply requests the wireless device to provide an
update of its battery level the next time it communicates with the USB
bridge
UpdateUsageValues()
Public
This method retrieves the latest usage values from the USB bridge,
which includes wireless channel, wireless PN code, last reported bat-
tery level, and signal strength
UpdateDeviceInfo()
Public
This method makes a call to update the HID device usage values and
displays a warning message (if enabled)
GetUsageIDValue()
Public
This method extracts the value of the provided Usage ID from the fea-
ture data
VerifyHidDevice()
Public
This method is called to verify that the HID device is one that should be
added to the list; right now this is done by making sure the usage page
reported is WIRELESSUSB_USAGEPAGE and the usage reported is
either WIRELESSUSB_USAGE_KEYBOARD or
WIRELESSUSB_USAGE_MOUSE
Table A-18. CHidTrayManager Methods
Method
Type
Description
NewHidDevice()
Protected
This method creates a new HID device, initializes it, and adds it to the list of
existing HID devices
DeleteHidDevice()
Protected
This method removes the HID device from the list and deletes the HID
device