Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768
Dependents: F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld
Fork of KL46Z-USBHost by
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 Wed Jul 13 2022 05:41:27 by 1.7.2