libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Functions
endpoint.h File Reference

USB-as-device endpoint. More...

#include <libtransistor/types.h>
#include <libtransistor/ipc.h>
Include dependency graph for endpoint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usb_ds_endpoint_t
 
struct  usb_ds_report_entry_t
 
struct  usb_ds_report_t
 

Functions

result_t usb_ds_post_buffer_async (usb_ds_endpoint_t *endp, void *buffer, size_t size, uint32_t *urb_id)
 Submits the buffer for transfer over the endpoint.
 
result_t usb_ds_get_completion_event (usb_ds_endpoint_t *endp, revent_h *event)
 Gets an event that is signalled when a transaction completes.
 
result_t usb_ds_get_report_data (usb_ds_endpoint_t *endp, usb_ds_report_t *report)
 Gets report data.
 
result_t usb_ds_close_endpoint (usb_ds_endpoint_t *endp)
 Close and destroy the given endpoint.
 
result_t usb_ds_stall (usb_ds_endpoint_t *endp)
 Halts an in-progress data transfer.
 

Detailed Description

USB-as-device endpoint.