USB Libraries Help > USB Device Libraries > USB Device Layer Library > Library Interface > g) Data Types and Constants > USB_DEVICE_TRANSFER_FLAGS Enumeration
MPLAB Harmony USB Stack
USB_DEVICE_TRANSFER_FLAGS Enumeration

USB Device Layer Transfer Flags 

This enumeration defines the possible USB Device Layer Transfer Flags. These flags are specified in USB_DEVICE_EndpointWrite() function to specify the handling of the transfer. Please refer to the description of the USB_DEVICE_EndpointWrite function for examples.

C
typedef enum {
  USB_DEVICE_TRANSFER_FLAGS_DATA_COMPLETE,
  USB_DEVICE_TRANSFER_FLAGS_MORE_DATA_PENDING
} USB_DEVICE_TRANSFER_FLAGS;
Members
Members 
Description 
USB_DEVICE_TRANSFER_FLAGS_DATA_COMPLETE 
This flag indicates there is no further data to be sent in this transfer and that the transfer should end. If the size of the transfer is a multiple of the maximum packet size for related endpoint configuration, the device layer will send a zero length packet to indicate end of the transfer to the host. 
USB_DEVICE_TRANSFER_FLAGS_MORE_DATA_PENDING 
This flag indicates there is more data to be sent in this transfer. If the size of the transfer is a multiple of the maximum packet size for the related endpoint configuration, the device layer will not send a zero length packet. This flags should not be specified if the size of the transfer is is not a multiple of the maximum packet size or if the transfer is less than maximum packet size. 
Remarks

None.