VENDOR/HostDevice.h File Reference
#include "../HostInterface.h"
#include <debug_progmem.h>
#include <bitset>
Include dependency graph for VENDOR/HostDevice.h:

Go to the source code of this file.

Classes

class  USB::VENDOR::HostDevice
 Base class to use for custom devices. More...
 
struct  USB::VENDOR::HostDevice::Config
 Device configuration received during mount procedure. More...
 
struct  USB::VENDOR::HostDevice::Transfer
 Structure passed to 'transferComplete' method. More...
 

Namespaces

 USB
 
 USB::VENDOR
 

Typedefs

using USB::VENDOR::MountCallback = Delegate< HostDevice *(const HostInterface::Instance &inst, const HostDevice::Config &cfg)>
 Application callback to notify connection of a new device. More...
 
using USB::VENDOR::UnmountCallback = Delegate< void(HostDevice &dev)>
 Application callback to notify disconnection of a device. More...
 

Functions

void USB::VENDOR::onMount (MountCallback callback)
 Application should call this method to receive device connection notifications. More...
 
void USB::VENDOR::onUnmount (UnmountCallback callback)
 Application should call this method to receive device disconnection notifications. More...