feat: add IOKit-based USB transport
Replace the stub probe with a real IOKit/IOUSBFamily transport: discovery by VID/PID, device and interface connections, vendor control requests on EP0, bulk writes to EP 0x04 OUT, and an async read pump (EP 0x05 IN / EP 0x04 IN) on a dedicated CFRunLoop thread with disconnect notification. Add the test_usb suite, link IOKit/CoreFoundation into xone_usb, and update the README investigation checklist. Co-Authored-By: qwen3.8-27b@q2_k_xl: implemented USB transport layer
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
set(TEST_TARGETS "")
|
||||
|
||||
add_executable(test_usb test_usb.cpp)
|
||||
target_include_directories(test_usb PRIVATE "${CMAKE_SOURCE_DIR}/include")
|
||||
target_link_libraries(test_usb PRIVATE xone_usb Unity::Unity)
|
||||
target_compile_features(test_usb PRIVATE cxx_std_23)
|
||||
add_test(NAME test_usb COMMAND test_usb)
|
||||
list(APPEND TEST_TARGETS test_usb)
|
||||
|
||||
add_executable(test_version test_version.cpp)
|
||||
target_include_directories(test_version PRIVATE "${CMAKE_SOURCE_DIR}/include")
|
||||
target_link_libraries(test_version PRIVATE xone_api Unity::Unity)
|
||||
|
||||
Reference in New Issue
Block a user