Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768

Dependencies:   FATFileSystem

Dependents:   F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld

Fork of KL46Z-USBHost by Norimasa Okamoto

Embed: (wiki syntax)

« Back to documentation index

USBEndpoint Class Reference

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

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:
tptrpointer to the object to call the member function on
mptrpointer 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:
fptrfunction 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:
typeendpoint type
direndpoint direction
sizeendpoint size
ep_numberendpoint number

Definition at line 46 of file USBEndpoint.h.