Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
573a27d9
Commit
573a27d9
authored
Sep 24, 2009
by
Dean Camera
Browse files
Fix incorrect names for the HID Host protocol setting routines.
parent
f0fcffd1
Changes
6
Show whitespace changes
Inline
Side-by-side
Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
View file @
573a27d9
...
...
@@ -99,7 +99,7 @@ int main(void)
break
;
}
if
(
USB_
HID_Host_SetBootProtocol
(
&
Keyboard_HID_Interface
)
!=
0
)
if
(
HID_Host_SetBootProtocol
(
&
Keyboard_HID_Interface
)
!=
0
)
{
printf
(
"Could not Set Boot Protocol Mode.
\r\n
"
);
LEDs_SetAllLEDs
(
LEDMASK_USB_ERROR
);
...
...
Demos/Host/ClassDriver/KeyboardHostWithParser/KeyboardHostWithParser.c
View file @
573a27d9
...
...
@@ -104,7 +104,7 @@ int main(void)
break
;
}
if
(
USB_
HID_Host_SetReportProtocol
(
&
Keyboard_HID_Interface
)
!=
0
)
if
(
HID_Host_SetReportProtocol
(
&
Keyboard_HID_Interface
)
!=
0
)
{
printf
(
"Error Setting Report Protocol Mode or Not a Valid Keyboard.
\r\n
"
);
LEDs_SetAllLEDs
(
LEDMASK_USB_ERROR
);
...
...
Demos/Host/ClassDriver/MouseHost/MouseHost.c
View file @
573a27d9
...
...
@@ -99,7 +99,7 @@ int main(void)
break
;
}
if
(
USB_
HID_Host_SetBootProtocol
(
&
Mouse_HID_Interface
)
!=
0
)
if
(
HID_Host_SetBootProtocol
(
&
Mouse_HID_Interface
)
!=
0
)
{
printf
(
"Could not Set Boot Protocol Mode.
\r\n
"
);
LEDs_SetAllLEDs
(
LEDMASK_USB_ERROR
);
...
...
Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c
View file @
573a27d9
...
...
@@ -104,7 +104,7 @@ int main(void)
break
;
}
if
(
USB_
HID_Host_SetReportProtocol
(
&
Mouse_HID_Interface
)
!=
0
)
if
(
HID_Host_SetReportProtocol
(
&
Mouse_HID_Interface
)
!=
0
)
{
printf
(
"Error Setting Report Protocol Mode or Not a Valid Mouse.
\r\n
"
);
LEDs_SetAllLEDs
(
LEDMASK_USB_ERROR
);
...
...
LUFA/Drivers/USB/Class/Host/HID.c
View file @
573a27d9
...
...
@@ -265,7 +265,7 @@ bool HID_Host_IsReportReceived(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo)
return
ReportReceived
;
}
uint8_t
USB_
HID_Host_SetBootProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
uint8_t
HID_Host_SetBootProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
{
if
(
HIDInterfaceInfo
->
State
.
UsingBootProtocol
)
return
HOST_SENDCONTROL_Successful
;
...
...
@@ -295,7 +295,7 @@ uint8_t USB_HID_Host_SetBootProtocol(USB_ClassInfo_HID_Host_t* const HIDInterfac
return
HOST_SENDCONTROL_Successful
;
}
uint8_t
USB_
HID_Host_SetReportProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
uint8_t
HID_Host_SetReportProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
{
uint8_t
ErrorCode
;
...
...
LUFA/Drivers/USB/Class/Host/HID.h
View file @
573a27d9
...
...
@@ -94,7 +94,7 @@
uint16_t
DataOUTPipeSize
;
/**< Size in bytes of the HID interface's OUT data pipe */
bool
SupportsBootProtocol
;
/**< Indicates if the current interface instance supports the HID Boot
* Protocol when enabled via \ref
USB_
HID_Host_SetBootProtocol()
* Protocol when enabled via \ref HID_Host_SetBootProtocol()
*/
bool
DeviceUsesOUTPipe
;
/**< Indicates if the current interface instance uses a seperate OUT data pipe for
* OUT reports, or if OUT reports are sent via the control pipe instead.
...
...
@@ -136,7 +136,7 @@
* machine is in the Addressed state.
*
* \note Once the device pipes are configured, the HID device's reporting protocol <b>must</b> be set via a call
* to either the \ref
USB_
HID_Host_SetBootProtocol() or \ref
USB_
HID_Host_SetReportProtocol() function.
* to either the \ref HID_Host_SetBootProtocol() or \ref HID_Host_SetReportProtocol() function.
*
* \param[in,out] HIDInterfaceInfo Pointer to a structure containing a HID Class host configuration and state
* \param[in] ConfigDescriptorSize Length of the attached device's Configuration Descriptor
...
...
@@ -197,7 +197,7 @@
* \return \ref HID_ERROR_LOGICAL if the device does not support Boot Protocol mode, a value from the
* \ref USB_Host_SendControlErrorCodes_t enum otherwise
*/
uint8_t
USB_
HID_Host_SetBootProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
ATTR_NON_NULL_PTR_ARG
(
1
);
uint8_t
HID_Host_SetBootProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
ATTR_NON_NULL_PTR_ARG
(
1
);
/** Switches the attached HID device's reporting protocol over to the standard Report protocol mode. This also retrieves
* and parses the device's HID report descriptor, so that the size of each report can be determined in advance.
...
...
@@ -212,7 +212,7 @@
* not have a valid \ref HID_ReportInfo_t structure set in its configuration, a mask of \ref HID_ERROR_LOGICAL
* and a value from the \ref HID_Parse_ErrorCodes_t otherwise
*/
uint8_t
USB_
HID_Host_SetReportProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
ATTR_NON_NULL_PTR_ARG
(
1
);
uint8_t
HID_Host_SetReportProtocol
(
USB_ClassInfo_HID_Host_t
*
const
HIDInterfaceInfo
)
ATTR_NON_NULL_PTR_ARG
(
1
);
/* Private Interface - For use in library only: */
#if !defined(__DOXYGEN__)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment