18#ifndef ENDPOINT_RESOLVER_H
19#define ENDPOINT_RESOLVER_H
88 usb_ep_t index_to_endpoint(
int index);
89 int next_index(usb_ep_type_t type,
bool in_not_out);
Utility class for resolving endpoints.
usb_ep_t endpoint_in(usb_ep_type_t type, uint32_t size)
Return a free IN endpoint of the given size.
bool valid()
Check if the endpoint configuration created so far is valid.
void endpoint_ctrl(uint32_t size)
Add control endpoint size.
usb_ep_t endpoint_out(usb_ep_type_t type, uint32_t size)
Return a free OUT endpoint of the given size.
usb_ep_t next_free_endpoint(bool in_not_out, usb_ep_type_t type, uint32_t size)
Get next free endpoint.
void reset()
Reset this class's state to when it was constructed.