Changeset 1affef2f in mainline for uspace/lib/usbhost/include/usb/host


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.

Location:
uspace/lib/usbhost/include/usb/host
Files:
2 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.
  • uspace/lib/usbhost/include/usb/host/usb_endpoint_manager.h

    ra6a9910 r1affef2f  
    7676    size_t available_bandwidth, bw_count_func_t bw_count);
    7777
    78 void usb_endpoint_manager_reset_eps_if_need(usb_endpoint_manager_t *instance,
    79     usb_target_t target, const uint8_t data[8]);
    80 
    8178int usb_endpoint_manager_register_ep(
    8279    usb_endpoint_manager_t *instance, endpoint_t *ep, size_t data_size);
     80
    8381int usb_endpoint_manager_unregister_ep(
    8482    usb_endpoint_manager_t *instance, endpoint_t *ep);
Note: See TracChangeset for help on using the changeset viewer.