Ignore:
Timestamp:
2013-01-27T19:16:53Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c86c7c
Parents:
11e9e613
Message:

usb: Remove old endpoint management code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/usb_device_connection.h

    r11e9e613 r48fa501  
    7373}
    7474
    75 /** Register endpoint on the device.
    76  * @param instance device connection structure to use.
    77  * @param ep USB endpoint number.
    78  * @param type Communication type of the endpoint.
    79  * @param direction Communication direction.
    80  * @param packet_size Maximum packet size for the endpoint.
    81  * @param interval Preferrred interval between communication.
    82  * @return Error code.
    83  */
    84 static inline int usb_device_register_endpoint(
    85     usb_device_connection_t *instance, usb_endpoint_t ep,
    86     usb_transfer_type_t type, usb_direction_t direction,
    87     size_t packet_size, unsigned interval)
    88 {
    89         assert(instance);
    90         return usb_hc_register_endpoint(instance->hc_connection,
    91             instance->address, ep, type, direction, packet_size, interval);
    92 }
    93 
    94 /** Unregister endpoint on the device.
    95  * @param instance device connection structure
    96  * @param ep Endpoint number.
    97  * @param dir Communication direction.
    98  * @return Error code.
    99  */
    100 static inline int usb_device_unregister_endpoint(
    101     usb_device_connection_t *instance, usb_endpoint_t ep, usb_direction_t dir)
    102 {
    103         assert(instance);
    104         return usb_hc_unregister_endpoint(instance->hc_connection,
    105             instance->address, ep, dir);
    106 }
    10775
    10876/** Get data from the device.
Note: See TracChangeset for help on using the changeset viewer.