Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
USBEndpoint Class Reference
USBEndpoint class. More...
#include <USBEndpoint.h>
Public Member Functions | |
USBEndpoint (USBDeviceConnected *_dev) | |
Constructor. | |
void | init (ENDPOINT_TYPE _type, ENDPOINT_DIRECTION _dir, uint32_t size, uint8_t ep_number) |
Initialize an endpoint. | |
template<typename T > | |
void | attach (T *tptr, void(T::*mptr)(void)) |
Attach a member function to call when a transfer is finished. | |
void | attach (void(*fptr)(void)) |
Attach a callback called when a transfer is finished. | |
void | call () |
Call the handler associted to the end of a transfer. |
Detailed Description
USBEndpoint class.
Definition at line 27 of file USBEndpoint.h.
Constructor & Destructor Documentation
USBEndpoint | ( | USBDeviceConnected * | _dev ) |
Constructor.
Definition at line 32 of file USBEndpoint.h.
Member Function Documentation
void attach | ( | T * | tptr, |
void(T::*)(void) | mptr | ||
) |
Attach a member function to call when a transfer is finished.
- Parameters:
-
tptr pointer to the object to call the member function on mptr pointer to the member function to be called
Definition at line 67 of file USBEndpoint.h.
void attach | ( | void(*)(void) | fptr ) |
Attach a callback called when a transfer is finished.
- Parameters:
-
fptr function pointer
Definition at line 78 of file USBEndpoint.h.
void call | ( | ) |
Call the handler associted to the end of a transfer.
Definition at line 87 of file USBEndpoint.h.
void init | ( | ENDPOINT_TYPE | _type, |
ENDPOINT_DIRECTION | _dir, | ||
uint32_t | size, | ||
uint8_t | ep_number | ||
) |
Initialize an endpoint.
- Parameters:
-
type endpoint type dir endpoint direction size endpoint size ep_number endpoint number
Definition at line 46 of file USBEndpoint.h.
Generated on Thu Jul 14 2022 09:06:30 by
