parent
52e529cc47
commit
e43f12c85e
17 changed files with 17 additions and 17 deletions
|
|
@ -65,7 +65,7 @@ static const uint8_t _hidMultiReportDescriptorAbsoluteMouse[] PROGMEM = {
|
||||||
|
|
||||||
AbsoluteMouse_::AbsoluteMouse_(void)
|
AbsoluteMouse_::AbsoluteMouse_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorAbsoluteMouse, sizeof(_hidMultiReportDescriptorAbsoluteMouse));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorAbsoluteMouse, sizeof(_hidMultiReportDescriptorAbsoluteMouse));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ static const uint8_t _hidMultiReportDescriptorConsumer[] PROGMEM = {
|
||||||
|
|
||||||
Consumer_::Consumer_(void)
|
Consumer_::Consumer_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorConsumer, sizeof(_hidMultiReportDescriptorConsumer));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorConsumer, sizeof(_hidMultiReportDescriptorConsumer));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ static const uint8_t _hidMultiReportDescriptorGamepad[] PROGMEM = {
|
||||||
|
|
||||||
Gamepad_::Gamepad_(void)
|
Gamepad_::Gamepad_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorGamepad, sizeof(_hidMultiReportDescriptorGamepad));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorGamepad, sizeof(_hidMultiReportDescriptorGamepad));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ static const uint8_t _hidMultiReportDescriptorKeyboard[] PROGMEM = {
|
||||||
|
|
||||||
Keyboard_::Keyboard_(void)
|
Keyboard_::Keyboard_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorKeyboard, sizeof(_hidMultiReportDescriptorKeyboard));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorKeyboard, sizeof(_hidMultiReportDescriptorKeyboard));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ static const uint8_t _hidMultiReportDescriptorMouse[] PROGMEM = {
|
||||||
|
|
||||||
Mouse_::Mouse_(void)
|
Mouse_::Mouse_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorMouse, sizeof(_hidMultiReportDescriptorMouse));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorMouse, sizeof(_hidMultiReportDescriptorMouse));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ static const uint8_t _hidMultiReportDescriptorNKROKeyboard[] PROGMEM = {
|
||||||
|
|
||||||
NKROKeyboard_::NKROKeyboard_(void)
|
NKROKeyboard_::NKROKeyboard_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorNKROKeyboard, sizeof(_hidMultiReportDescriptorNKROKeyboard));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorNKROKeyboard, sizeof(_hidMultiReportDescriptorNKROKeyboard));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ static const uint8_t _hidMultiReportDescriptorSystem[] PROGMEM = {
|
||||||
|
|
||||||
System_::System_(void)
|
System_::System_(void)
|
||||||
{
|
{
|
||||||
static HIDDescriptorListNode node(_hidMultiReportDescriptorSystem, sizeof(_hidMultiReportDescriptorSystem));
|
static HIDSubDescriptor node(_hidMultiReportDescriptorSystem, sizeof(_hidMultiReportDescriptorSystem));
|
||||||
HID().AppendDescriptor(&node);
|
HID().AppendDescriptor(&node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ static const uint8_t _hidReportDescriptorKeyboard[] PROGMEM = {
|
||||||
0xc0 /* END_COLLECTION */
|
0xc0 /* END_COLLECTION */
|
||||||
};
|
};
|
||||||
|
|
||||||
BootKeyboard_::BootKeyboard_(void) : PUSBListNode(1, 1, epType), protocol(1), idle(1), leds(0)
|
BootKeyboard_::BootKeyboard_(void) : PluggableUSBModule(1, 1, epType), protocol(1), idle(1), leds(0)
|
||||||
{
|
{
|
||||||
epType[0] = EP_TYPE_INTERRUPT_IN;
|
epType[0] = EP_TYPE_INTERRUPT_IN;
|
||||||
PluggableUSB().plug(this);
|
PluggableUSB().plug(this);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
||||||
#include "../HID-APIs/KeyboardAPI.h"
|
#include "../HID-APIs/KeyboardAPI.h"
|
||||||
|
|
||||||
|
|
||||||
class BootKeyboard_ : public PUSBListNode, public KeyboardAPI
|
class BootKeyboard_ : public PluggableUSBModule, public KeyboardAPI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BootKeyboard_(void);
|
BootKeyboard_(void);
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ static const uint8_t _hidReportDescriptorMouse[] PROGMEM = {
|
||||||
0xc0 /* END_COLLECTION */
|
0xc0 /* END_COLLECTION */
|
||||||
};
|
};
|
||||||
|
|
||||||
BootMouse_::BootMouse_(void) : PUSBListNode(1, 1, epType), protocol(1), idle(1)
|
BootMouse_::BootMouse_(void) : PluggableUSBModule(1, 1, epType), protocol(1), idle(1)
|
||||||
{
|
{
|
||||||
epType[0] = EP_TYPE_INTERRUPT_IN;
|
epType[0] = EP_TYPE_INTERRUPT_IN;
|
||||||
PluggableUSB().plug(this);
|
PluggableUSB().plug(this);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
||||||
#include "../HID-APIs/MouseAPI.h"
|
#include "../HID-APIs/MouseAPI.h"
|
||||||
|
|
||||||
|
|
||||||
class BootMouse_ : public PUSBListNode, public MouseAPI
|
class BootMouse_ : public PluggableUSBModule, public MouseAPI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BootMouse_(void);
|
BootMouse_(void);
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ static const uint8_t _hidReportDescriptorRawHID[] PROGMEM = {
|
||||||
0xC0 /* end collection */
|
0xC0 /* end collection */
|
||||||
};
|
};
|
||||||
|
|
||||||
RawHID_::RawHID_(void) : PUSBListNode(1, 1, epType), protocol(1), idle(1), dataLength(0)
|
RawHID_::RawHID_(void) : PluggableUSBModule(1, 1, epType), protocol(1), idle(1), dataLength(0)
|
||||||
{
|
{
|
||||||
epType[0] = EP_TYPE_INTERRUPT_IN;
|
epType[0] = EP_TYPE_INTERRUPT_IN;
|
||||||
PluggableUSB().plug(this);
|
PluggableUSB().plug(this);
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ typedef union{
|
||||||
uint8_t buff[RAWHID_RX_SIZE];
|
uint8_t buff[RAWHID_RX_SIZE];
|
||||||
} HID_RawKeyboardRXReport_Data_t;
|
} HID_RawKeyboardRXReport_Data_t;
|
||||||
|
|
||||||
class RawHID_ : public PUSBListNode, public Stream
|
class RawHID_ : public PluggableUSBModule, public Stream
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RawHID_(void);
|
RawHID_(void);
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ static const uint8_t _hidReportDescriptorGamepad[] PROGMEM = {
|
||||||
0xc0 /* END_COLLECTION */
|
0xc0 /* END_COLLECTION */
|
||||||
};
|
};
|
||||||
|
|
||||||
SingleGamepad_::SingleGamepad_(void) : PUSBListNode(1, 1, epType), protocol(1), idle(1)
|
SingleGamepad_::SingleGamepad_(void) : PluggableUSBModule(1, 1, epType), protocol(1), idle(1)
|
||||||
{
|
{
|
||||||
epType[0] = EP_TYPE_INTERRUPT_IN;
|
epType[0] = EP_TYPE_INTERRUPT_IN;
|
||||||
PluggableUSB().plug(this);
|
PluggableUSB().plug(this);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
||||||
#include "../HID-APIs/GamepadAPI.h"
|
#include "../HID-APIs/GamepadAPI.h"
|
||||||
|
|
||||||
|
|
||||||
class SingleGamepad_ : public PUSBListNode, public GamepadAPI
|
class SingleGamepad_ : public PluggableUSBModule, public GamepadAPI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SingleGamepad_(void);
|
SingleGamepad_(void);
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ static const uint8_t _hidReportDescriptorNKRO[] PROGMEM = {
|
||||||
0xC0 /* End Collection */
|
0xC0 /* End Collection */
|
||||||
};
|
};
|
||||||
|
|
||||||
SingleNKROKeyboard_::SingleNKROKeyboard_(void) : PUSBListNode(1, 1, epType), protocol(1), idle(1), leds(0)
|
SingleNKROKeyboard_::SingleNKROKeyboard_(void) : PluggableUSBModule(1, 1, epType), protocol(1), idle(1), leds(0)
|
||||||
{
|
{
|
||||||
epType[0] = EP_TYPE_INTERRUPT_IN;
|
epType[0] = EP_TYPE_INTERRUPT_IN;
|
||||||
PluggableUSB().plug(this);
|
PluggableUSB().plug(this);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
||||||
#include "../HID-APIs/NKROKeyboardAPI.h"
|
#include "../HID-APIs/NKROKeyboardAPI.h"
|
||||||
|
|
||||||
|
|
||||||
class SingleNKROKeyboard_ : public PUSBListNode, public NKROKeyboardAPI
|
class SingleNKROKeyboard_ : public PluggableUSBModule, public NKROKeyboardAPI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SingleNKROKeyboard_(void);
|
SingleNKROKeyboard_(void);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue