4 WirelessUSB-NL Development Kit Guide, Doc. # 001-76173 Rev. *D
Contents
5.2.1.2 Slave (Mouse/Keyboard).................................................................28
5.2.2 Requirements.................................................................................................29
5.2.2.1 Header Files ....................................................................................29
5.2.2.2 Software Interface .............. ... ... .... ... ................ ... ... .... ... ................ ...29
5.2.3 Type Declarations and Definitions .................................................................29
5.2.3.1 BACK_CHANNEL_SUPPORT ........................................................29
5.2.4 Protocol High Level Functions.......................................................................29
5.2.4.1 MasterProtocolInit............................................................................29
5.2.4.2 MasterProtocolDataMode................................................................30
5.2.4.3 MasterProtocolButtonBindMode......................................................30
5.2.4.4 CheckUsbIdle..................................................................................31
5.2.4.5 CheckUsbSuspend..........................................................................31
5.2.4.6 SlaveProtocolInit..............................................................................32
5.2.4.7 SlaveProtocolSendPacket...............................................................32
5.2.4.8 SlaveProtocolGetTxPkt ...................................................................32
5.2.4.9 SlaveProtocolButtonBind.................................................................32
5.2.4.10 RadioSendPacket............................................................................33
5.2.4.11 RadioReceivePacket .......................................................................33
5.3 Application Packet Format.........................................................................................33
5.3.1 Mouse Application Packet Header Format ....................................................33
5.3.2 Keyboard Application Packet Header Format................................................33
5.3.2.1 Standard 101 Keys Report..............................................................34
5.3.2.2 Multimedia Keys ..............................................................................34
5.3.2.3 Power Keys .....................................................................................34
5.3.2.4 Battery Voltage Level and Version Report ......... ... .... ... ... ................34
5.3.2.5 Bridge Application Header Format ..................................................34
6. Example Proje cts 35
6.1 Theory of Operation.. .... ... ... ... ... .... ... ... ... ................. ... ... ... ... .... ................ ... ... ... .... ... ...35
6.1.1 Keyboard .......................................................................................................35
6.1.1.1 Firmware Block Diagram .................................................................35
6.1.1.2 Top Level Program Flow . ... ... ... .... ... ... ... ... .... ... ... ................ ... .... ... ...36
6.1.1.3 Code Details....................................................................................37
6.1.1.4 Keyboard Firmware Implementation................................................37
6.1.2 Mouse............................................................................................................39
6.1.2.1 Firmware Block Diagram .................................................................39
6.1.2.2 Top Level Program Flow . ... ... ... .... ... ... ... ... .... ... ... ................ ... .... ... ...40
6.1.2.3 Code Details....................................................................................41
6.1.2.4 Mouse Firmware Implementation ....................................................41
6.1.3 Bridge ............................................................................................................46
6.1.3.1 Firmware Block Diagram .................................................................46
6.1.3.2 Top Level Program Flow . ... ... ... .... ... ... ... ... .... ... ... ................ ... .... ... ...47
6.1.3.3 Code Details....................................................................................47
6.1.3.4 Bridge Firmware Implementation..... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ...48
6.2 Setting up and Exercising Example Projects.............................................................49
6.2.1 Setting up WirelessUSB Keyboard......................... .... ... ... ... .... ................ ... ...49
6.2.2 Setting up WirelessUSB Bridge.....................................................................50
6.2.3 Exercising WirelessUSB Keyboard Example Project.....................................51
6.2.4 Setting up the WirelessUSB Mouse...............................................................52
6.2.5 Exercising WirelessUSB Mouse Example Project.........................................53
7. Troubleshooting 55