test public
Dependencies: HttpServer_snapshot_mbed-os
USBEndpoint Class Reference
USBEndpoint class. More...
#include <USBEndpoint.h>
Public Member Functions | |
USBEndpoint () | |
Constructor. | |
void | init (HCED *hced, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir, uint32_t size, uint8_t ep_number, HCTD *td_list[2]) |
Initialize an endpoint. | |
void | setNextToken (uint32_t token) |
Set next token. | |
void | queueEndpoint (USBEndpoint *endpoint) |
Queue an endpoint. | |
USB_TYPE | queueTransfer () |
Queue a transfer on the endpoint. | |
void | unqueueTransfer (volatile HCTD *td) |
Unqueue a transfer from the endpoint. | |
void | attach (Callback< void()> func) |
Attach a function to call whenever a serial interrupt is generated. | |
template<typename T > | |
void | attach (T *obj, void(T::*method)()) |
Attach a function to call when touch panel int. | |
void | call () |
Call the handler associted to the end of a transfer. |
Detailed Description
USBEndpoint class.
Definition at line 29 of file USBEndpoint.h.
Constructor & Destructor Documentation
USBEndpoint | ( | ) |
Constructor.
Definition at line 35 of file USBEndpoint.h.
Member Function Documentation
void attach | ( | Callback< void()> | func ) |
Attach a function to call whenever a serial interrupt is generated.
- Parameters:
-
func A pointer to a void function, or 0 to set as none
Definition at line 84 of file USBEndpoint.h.
void attach | ( | T * | obj, |
void(T::*)() | method | ||
) |
Attach a function to call when touch panel int.
- Parameters:
-
obj pointer to the object to call the member function on method pointer to the member function to be called
Definition at line 94 of file USBEndpoint.h.
void call | ( | ) |
Call the handler associted to the end of a transfer.
Definition at line 102 of file USBEndpoint.h.
void init | ( | HCED * | hced, |
ENDPOINT_TYPE | type, | ||
ENDPOINT_DIRECTION | dir, | ||
uint32_t | size, | ||
uint8_t | ep_number, | ||
HCTD * | td_list[2] | ||
) |
Initialize an endpoint.
- Parameters:
-
hced hced associated to the endpoint type endpoint type dir endpoint direction size endpoint size ep_number endpoint number td_list array of two allocated transfer descriptors
Definition at line 21 of file USBEndpoint.cpp.
void queueEndpoint | ( | USBEndpoint * | endpoint ) |
Queue an endpoint.
- Parameters:
-
endpoint endpoint which will be queued in the linked list
Definition at line 158 of file USBEndpoint.cpp.
USB_TYPE queueTransfer | ( | ) |
Queue a transfer on the endpoint.
Definition at line 134 of file USBEndpoint.cpp.
void setNextToken | ( | uint32_t | token ) |
Set next token.
Warning: only useful for the control endpoint
- Parameters:
-
token IN, OUT or SETUP token
Definition at line 82 of file USBEndpoint.cpp.
void unqueueTransfer | ( | volatile HCTD * | td ) |
Unqueue a transfer from the endpoint.
- Parameters:
-
td hctd which will be unqueued
Definition at line 147 of file USBEndpoint.cpp.
Generated on Wed Jul 13 2022 05:33:38 by 1.7.2