Skip to content

Commit

Permalink
USBH: Add user pointers to class structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Apr 19, 2021
1 parent 0f47ee2 commit 80417c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions inc/usbh_cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ typedef struct cdc_dev_t
uint8_t rx_busy; /* Bulk in transfer is on going */
struct cdc_dev_t *next;
void *client;
void *user_data; /*!< Pointer to an optional user struct */
} CDC_DEV_T;

/*@}*/ /* end of group USBH_EXPORTED_STRUCTURES */
Expand Down
1 change: 1 addition & 0 deletions inc/usbh_uac.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ typedef struct uac_dev_t
uint32_t uid; /*!< The unique ID to identify an UAC device. */
UAC_STATE_E state;
struct uac_dev_t *next; /*!< point to the UAC device */
void *user_data; /*!< Pointer to an optional user struct */
} UAC_DEV_T; /*! audio class device structure */


Expand Down
13 changes: 7 additions & 6 deletions inc/usbh_uvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,15 @@ typedef struct __attribute__((__packed__)) desc_vc_pu_t
/* D16: Analog Video Standard */
/* D17: Analog Video Lock Status */
/* D18: Contrast, Auto */
/* D19 ¡V D23: Reserved. Set to zero. */
/* D19 V D23: Reserved. Set to zero. */
uint8_t iProcessing; /* Index of a string descriptor */
uint8_t bmVideoStandards; /* A bitmap of all analog video standards supported by the Processing Unit. */
/* D0: None */
/* D1: NTSC ¡V 525/60 */
/* D2: PAL ¡V 625/50 */
/* D3: SECAM ¡V 625/50 */
/* D4: NTSC ¡V 625/50 */
/* D5: PAL ¡V 525/60 */
/* D1: NTSC V 525/60 */
/* D2: PAL V 625/50 */
/* D3: SECAM V 625/50 */
/* D4: NTSC V 625/50 */
/* D5: PAL V 525/60 */
/* D6: White Balance Temperature */
/* D6-D7: Reserved. Set to zero. */
} DESC_VC_PU_T;
Expand Down Expand Up @@ -629,6 +629,7 @@ typedef struct uvc_dev_t
int img_size; /* Size of the image data stored in img_buff */
UVC_CB_FUNC *func_rx; /* user callback function for receiving images */
struct uvc_dev_t *next;
void *user_data; /*!< Pointer to an optional user struct */
} UVC_DEV_T;
/*@}*/ /* end of group N9H30_USBH_EXPORTED_STRUCTURES */
/*@}*/ /* end of group N9H30_USBH_Library */
Expand Down

0 comments on commit 80417c3

Please sign in to comment.