Ignore:
Timestamp:
2012-12-22T23:20:45Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c4663e
Parents:
a6a9910
Message:

libusbhost: Use callback wrapper for toggle handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    ra6a9910 r1affef2f  
    8282}
    8383
    84 /** Check registered endpoints and reset toggle bit if necessary.
    85  * @param hcd hcd_t structure, non-null.
    86  * @param target Control communication target.
    87  * @param setup_data Setup packet of the control communication.
    88  */
    89 static inline void reset_ep_if_need(hcd_t *hcd, usb_target_t target,
    90     const char setup_data[8])
    91 {
    92         assert(hcd);
    93         usb_endpoint_manager_reset_eps_if_need(
    94             &hcd->ep_manager, target, (const uint8_t *)setup_data);
    95 }
    96 
    9784int hcd_send_batch(
    9885    hcd_t *hcd, ddf_fun_t *fun, usb_target_t target, usb_direction_t direction,
     
    10087    usbhc_iface_transfer_in_callback_t in,
    10188    usbhc_iface_transfer_out_callback_t out, void *arg, const char* name);
    102 
    10389
    10490/** Data retrieve wrapper.
Note: See TracChangeset for help on using the changeset viewer.