Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
c15cc6e8
Commit
c15cc6e8
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Add CDC/ACM notification structure.
parent
57c966c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/nuttx/usb/cdc.h
+16
-0
16 additions, 0 deletions
include/nuttx/usb/cdc.h
include/nuttx/usb/cdcacm.h
+2
-1
2 additions, 1 deletion
include/nuttx/usb/cdcacm.h
with
18 additions
and
1 deletion
include/nuttx/usb/cdc.h
+
16
−
0
View file @
c15cc6e8
...
...
@@ -857,6 +857,22 @@ struct cdc_linestatus_s
uint32_t
call
[
1
];
/* dwCallStateN, Defines current state of call N on the line */
};
/* Messages are formatted as a standardized 8-byte header, followed by a variable-length
* data field. The header identifies the kind of notification, and the interface associated
* with the notification; it also indicates the length of the variable length portion of
* the message
*/
struct
cdc_notification_s
{
uint8_t
type
;
/* bmRequestType */
uint8_t
notification
;
/* bNotification */
uint8_t
value
[
2
];
/* wValue */
uint8_t
index
[
2
];
/* wIndex - interface */
uint8_t
len
[
2
];
/* wLength - length of variable data */
uint8_t
data
[
1
];
/* Variable length data begins here */
};
/* Table 60: Unit Parameter Structure */
struct
cdc_unitparm_s
...
...
This diff is collapsed.
Click to expand it.
include/nuttx/usb/cdcacm.h
+
2
−
1
View file @
c15cc6e8
...
...
@@ -275,7 +275,8 @@
#undef EXTERN
#if defined(__cplusplus)
# define EXTERN extern "C"
extern
"C"
{
extern
"C"
{
#else
# define EXTERN extern
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment