Changeset f567bcf in mainline for uspace/lib/usb/src/host/endpoint.c


Ignore:
Timestamp:
2011-04-06T22:02:17Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ca18ae
Parents:
8dc762e0
Message:

Switch to new endpoint toggle control.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/host/endpoint.c

    r8dc762e0 rf567bcf  
    3535
    3636#include <errno.h>
    37 
    3837#include <usb/host/endpoint.h>
    3938
     
    5756}
    5857/*----------------------------------------------------------------------------*/
     58int endpoint_toggle_get(endpoint_t *instance)
     59{
     60        assert(instance);
     61        return (int)instance->toggle;
     62}
     63/*----------------------------------------------------------------------------*/
     64void endpoint_toggle_set(endpoint_t *instance, int toggle)
     65{
     66        assert(instance);
     67        assert(toggle == 0 || toggle == 1);
     68        instance->toggle = toggle;
     69}
     70/*----------------------------------------------------------------------------*/
    5971void endpoint_toggle_reset(link_t *ep)
    6072{
Note: See TracChangeset for help on using the changeset viewer.