File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ int HID_::getDescriptor(USBSetup& setup)
47
47
if (setup.wIndex != pluggedInterface) { return 0 ; }
48
48
49
49
int total = 0 ;
50
- HIDDescriptorListNode * node;
50
+ HIDSubDescriptor * node;
51
51
for (node = rootNode; node; node = node->next ) {
52
52
int res = USB_SendControl (TRANSFER_PGM, node->data , node->length );
53
53
if (res == -1 )
@@ -57,12 +57,12 @@ int HID_::getDescriptor(USBSetup& setup)
57
57
return total;
58
58
}
59
59
60
- void HID_::AppendDescriptor (HIDDescriptorListNode *node)
60
+ void HID_::AppendDescriptor (HIDSubDescriptor *node)
61
61
{
62
62
if (!rootNode) {
63
63
rootNode = node;
64
64
} else {
65
- HIDDescriptorListNode *current = rootNode;
65
+ HIDSubDescriptor *current = rootNode;
66
66
while (current->next ) {
67
67
current = current->next ;
68
68
}
Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ typedef struct
74
74
EndpointDescriptor in;
75
75
} HIDDescriptor;
76
76
77
- class HIDDescriptorListNode {
77
+ class HIDSubDescriptor {
78
78
public:
79
- HIDDescriptorListNode *next = NULL ;
80
- HIDDescriptorListNode (const void *d, const uint16_t l) : data(d), length(l) { }
79
+ HIDSubDescriptor *next = NULL ;
80
+ HIDSubDescriptor (const void *d, const uint16_t l) : data(d), length(l) { }
81
81
82
82
const void * data;
83
83
const uint16_t length;
@@ -89,7 +89,7 @@ class HID_ : public PluggableUSBModule
89
89
HID_ (void );
90
90
int begin (void );
91
91
void SendReport (uint8_t id, const void * data, int len);
92
- void AppendDescriptor (HIDDescriptorListNode * node);
92
+ void AppendDescriptor (HIDSubDescriptor * node);
93
93
94
94
protected:
95
95
// Implementation of the PluggableUSBModule
@@ -100,7 +100,7 @@ class HID_ : public PluggableUSBModule
100
100
private:
101
101
uint8_t epType[1 ];
102
102
103
- HIDDescriptorListNode * rootNode;
103
+ HIDSubDescriptor * rootNode;
104
104
uint16_t descriptorSize;
105
105
106
106
uint8_t protocol;
You can’t perform that action at this time.
0 commit comments