8 #include <IOKit/IOKitLib.h> 9 #include <IOKit/IOTypes.h> 10 #include <CoreFoundation/CFRunLoop.h> 13 #include "libusb-1.0/libusb.h" 41 libusb_context *context;
45 CFRunLoopRef gRunLoop;
46 static void DeviceAdded(
void *refCon, io_iterator_t iterator);
47 static void DeviceRemoved(
void *refCon, io_service_t service, natural_t messageType,
void *messageArgument);
48 static std::mutex boardCollectionMutex;
49 static std::condition_variable boardCollectionCondition;
50 static std::thread deviceListenerThread;
51 static IONotificationPortRef gNotifyPort;
vector< TreehopperUsb > boards
Gets the collection of TreehopperUsb boards connected to the computer.
Definition: ConnectionService.h:36
Provides TreehopperUsb discovery and factory duties.
Definition: ConnectionService.h:20
The core class for communicating with Treehopper USB boards.
Definition: TreehopperUsb.h:59
static ConnectionService & instance()
Gets the ConnectionService instance to use for TreehopperUsb discovery.
Definition: ConnectionService.h:27
#define TREEHOPPER_API
Definition: Treehopper.h:17