PIP 5.6.1
Platform-Independent Primitives
Public Types | Public Member Functions | Public Attributes | List of all members
PIUSB::Endpoint Struct Reference

Parsed USB endpoint descriptor. More...

#include <piusb.h>

Public Types

enum  Direction
 Transfer direction encoded in endpoint address.
 
enum  TransferType
 USB transfer type encoded in endpoint attributes.
 
enum  SynchronisationType
 Synchronisation mode for isochronous endpoints.
 
enum  UsageType
 Usage mode for isochronous endpoints.
 

Public Member Functions

 Endpoint (uchar a=0, uchar at=0, ushort mps=0)
 Constructs endpoint descriptor and parses cached properties.
 
void parse ()
 Parses direction and transfer information from address and attributes.
 
bool isNull () const
 Returns true if the endpoint is not selected.
 

Public Attributes

uchar address
 Raw USB endpoint address.
 
uchar attributes
 Raw USB endpoint attributes.
 
ushort max_packet_size
 Maximum packet size in bytes.
 
Direction direction
 Parsed transfer direction.
 
TransferType transfer_type
 Parsed transfer type.
 
SynchronisationType synchronisation_type = NoSynchonisation
 Parsed synchronisation type for isochronous transfers.
 
UsageType usage_type = DataEndpoint
 Parsed usage type for isochronous transfers.
 

Detailed Description

Parsed USB endpoint descriptor.