bool endpoint_stall(const uint8_t ep_num)
Stall an endpoint.
bool endpoint_configure(const struct ep_config_t *config)
Initialise the USB endpoint described by config.
Bulk endpoint.
Definition: endpoint.h:36
IN endpoint, for data from device to host.
Definition: endpoint.h:44
enum ep_direction_t dir
Endpoint data flow direction.
Definition: endpoint.h:69
ep_type_t
List of endpoint types.
Definition: endpoint.h:34
void endpoint_init_default(const uint8_t ep_num)
Default endpoint initialisation function.
uint16_t size
Endpoint buffer size.
Definition: endpoint.h:71
enum ep_type_t type
Endpoint type.
Definition: endpoint.h:67
Control endpoint.
Definition: endpoint.h:35
void(* init)()
Endpoint reset callback.
Definition: endpoint.h:73
OUT endpoint, for data from host to device.
Definition: endpoint.h:43
Bidirectional endpoint.
Definition: endpoint.h:45
void endpoint_deconfigure(const uint8_t ep_num)
Releases hardware and memory associated with the endpoint memory.
bool endpoint_clear_stall(const uint8_t ep_num)
Clear an endpoint stall.
Interrupt endoint.
Definition: endpoint.h:37
ep_direction_t
Endpoint directions.
Definition: endpoint.h:42
bool endpoint_is_stalled(const uint8_t ep_num)
Get endpoint stall status.
void endpoint_reset_data_toggle(const uint8_t ep_num)
Reset the DATAx toggle to DATA0.
uint16_t endpoint_get_size(const uint8_t ep_num)
Return the maximum endpoint packet size.
uint8_t num
Endpoint number.
Definition: endpoint.h:65
Isochronous endpoint.
Definition: endpoint.h:38
Endpoint configuration struct.
Definition: endpoint.h:63