|
|
@ -128,7 +128,7 @@ const u8 _hidReportDescriptor[] = {
|
|
|
|
0xC0 // end collection
|
|
|
|
0xC0 // end collection
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
|
|
|
|
0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
|
|
|
|
0x09, 0x01, // USAGE (Consumer Control)
|
|
|
|
0x09, 0x01, // USAGE (Consumer Control)
|
|
|
|
0xa1, 0x01, // COLLECTION (Application)
|
|
|
|
0xa1, 0x01, // COLLECTION (Application)
|
|
|
|
0x85, 0x04, // REPORT_ID (4)
|
|
|
|
0x85, 0x04, // REPORT_ID (4)
|
|
|
@ -154,7 +154,7 @@ const u8 _hidReportDescriptor[] = {
|
|
|
|
0x0a, 0x24, 0x02, // USAGE (www back) 0x10
|
|
|
|
0x0a, 0x24, 0x02, // USAGE (www back) 0x10
|
|
|
|
0x81, 0x62, // INPUT (Data,Var,Abs,NPrf,Null)
|
|
|
|
0x81, 0x62, // INPUT (Data,Var,Abs,NPrf,Null)
|
|
|
|
0xc0,
|
|
|
|
0xc0,
|
|
|
|
// System Control Descriptor
|
|
|
|
// System Control Descriptor
|
|
|
|
0x05, 0x01, /* Usage Page (Generic Desktop) */
|
|
|
|
0x05, 0x01, /* Usage Page (Generic Desktop) */
|
|
|
|
0x09, 0x80, /* Usage (System Control) */
|
|
|
|
0x09, 0x80, /* Usage (System Control) */
|
|
|
|
0xA1, 0x01, /* Collection (Application) */
|
|
|
|
0xA1, 0x01, /* Collection (Application) */
|
|
|
@ -323,35 +323,65 @@ void ConsumerControl_::mute (void){
|
|
|
|
sendReport(0x01, 0);
|
|
|
|
sendReport(0x01, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void ConsumerControl_::volumeUp (void)
|
|
|
|
void ConsumerControl_::volumeUp (void)
|
|
|
|
{ sendReport(0x02, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x02, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::volumeDown (void)
|
|
|
|
void ConsumerControl_::volumeDown (void)
|
|
|
|
{ sendReport(0x03, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x03, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::playPause (void)
|
|
|
|
void ConsumerControl_::playPause (void)
|
|
|
|
{ sendReport(0x04, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x04, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::stop (void)
|
|
|
|
void ConsumerControl_::stop (void)
|
|
|
|
{ sendReport(0x05, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x05, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::previousTrack (void)
|
|
|
|
void ConsumerControl_::previousTrack (void)
|
|
|
|
{ sendReport(0x06, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x06, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::nextTrack (void)
|
|
|
|
void ConsumerControl_::nextTrack (void)
|
|
|
|
{ sendReport(0x07, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x07, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::mail (void)
|
|
|
|
void ConsumerControl_::mail (void)
|
|
|
|
{ sendReport(0x08, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x08, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::calculator (void)
|
|
|
|
void ConsumerControl_::calculator (void)
|
|
|
|
{ sendReport(0x09, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x09, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwSearch (void)
|
|
|
|
void ConsumerControl_::wwwSearch (void)
|
|
|
|
{ sendReport(0x0a, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x0a, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwHome (void)
|
|
|
|
void ConsumerControl_::wwwHome (void)
|
|
|
|
{ sendReport(0x0b, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x0b, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwFavorites (void)
|
|
|
|
void ConsumerControl_::wwwFavorites (void)
|
|
|
|
{ sendReport(0x0c, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x0c, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwRefresh (void)
|
|
|
|
void ConsumerControl_::wwwRefresh (void)
|
|
|
|
{ sendReport(0x0d, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x0d, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwStop (void)
|
|
|
|
void ConsumerControl_::wwwStop (void)
|
|
|
|
{ sendReport(0x0e, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x0e, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwForward (void)
|
|
|
|
void ConsumerControl_::wwwForward (void)
|
|
|
|
{ sendReport(0x0f, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x0f, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
void ConsumerControl_::wwwBack (void)
|
|
|
|
void ConsumerControl_::wwwBack (void)
|
|
|
|
{ sendReport(0x10, 0); }
|
|
|
|
{
|
|
|
|
|
|
|
|
sendReport(0x10, 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//================================================================================
|
|
|
|
//================================================================================
|
|
|
|
//================================================================================
|
|
|
|
//================================================================================
|
|
|
|