2018.07.26
Dependencies: FATFileSystem3 mbed-rtos
Fork of USBHost by
Diff: USBHost/USBDeviceConnected.h
- Revision:
- 2:5e8fdc541b98
- Parent:
- 0:a554658735bf
- Child:
- 4:b320d68e98e7
--- a/USBHost/USBDeviceConnected.h Wed Mar 06 17:10:32 2013 +0000 +++ b/USBHost/USBDeviceConnected.h Wed Mar 06 17:44:00 2013 +0000 @@ -57,7 +57,7 @@ * * @param intf_nb the interface on which to lookup the USBEndpoint * @param type type of the USBEndpoint looked for - * @param direction of the USBEndpoint looked for + * @param dir direction of the USBEndpoint looked for * @param index the index of the USBEndpoint whitin the interface * @returns pointer on the USBEndpoint if found, NULL otherwise */ @@ -77,7 +77,7 @@ * @param intf_nb interface number * @param intf_class interface class * @param intf_subclass interface subclass - * @param intf_ptotocol interface protocol + * @param intf_protocol interface protocol * @returns true if successful, false otherwise */ bool addInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol); @@ -102,6 +102,7 @@ /** * Attach a member function to call when a the device has been disconnected * + * @param intf_nb interface number * @param tptr pointer to the object to call the member function on * @param mptr pointer to the member function to be called */ @@ -115,7 +116,8 @@ /** * Attach a callback called when the device has been disconnected * - * @param fptr function pointer + * @param intf_nb interface number + * @param fn function pointer */ inline void onDisconnect(uint8_t intf_nb, void (*fn)(void)) { if (fn != NULL) {