Added new Pipe_IsFrozen() macro to determine if the currently selected pipe is frozen.
Added new USB_GetHIDReportSize() function to the HID report parser to retrieve the size of a given report by its ID. More additions to the unfinished HID Host Class Driver.
This commit is contained in:
parent
cd0adb7574
commit
51566d1a81
18 changed files with 265 additions and 31 deletions
|
@ -292,6 +292,12 @@
|
|||
/** Freezes the selected pipe, preventing it from communicating with an attached device. */
|
||||
static inline void Pipe_Freeze(void);
|
||||
|
||||
/** Determines if the currently selected pipe is frozen, and not able to accept data.
|
||||
*
|
||||
* \return Boolean true if the currently selected pipe is frozen, false otherwise
|
||||
*/
|
||||
static inline bool Pipe_IsFrozen(void);
|
||||
|
||||
/** Clears the master pipe error flag. */
|
||||
static inline void Pipe_ClearError(void);
|
||||
|
||||
|
@ -445,6 +451,8 @@
|
|||
#define Pipe_Unfreeze() MACROS{ UPCONX &= ~(1 << PFREEZE); }MACROE
|
||||
|
||||
#define Pipe_Freeze() MACROS{ UPCONX |= (1 << PFREEZE); }MACROE
|
||||
|
||||
#define Pipe_IsFrozen() ((UPCONX & (1 << PFREEZE)) ? true : false)
|
||||
|
||||
#define Pipe_ClearError() MACROS{ UPINTX &= ~(1 << PERRI); }MACROE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue