summaryrefslogtreecommitdiff
path: root/common/usbx_device_classes/src
AgeCommit message (Collapse)Author
2026-06-04Added optional device HID protocol change callback and host HID protocol ↵MAY
get/set API (#244) This pull request adds host-side HID API functions to get and set the HID protocol (boot vs. report mode), and introduces an optional device-sidecallback invoked when the protocol changes. New features - Added host-side APIs ux_host_class_hid_protocol_set() and ux_host_class_hid_protocol_get() with error-checking wrappers (_uxe_ variants). - Added optional device-side callback ux_device_class_hid_set_protocol_callback, invoked when the host changes the active protocol. - Added a comprehensive test to verify the new protocol callback functionality. Bug fixes (host-side protocol get/set) 1. DMA buffer safety (protocol_get): The received byte is now written into a cache-safe allocated buffer instead of the caller's USHORT* directly. Stack memory is not DMA-safe on cache-incoherent embedded targets, and writing 1 byte into a USHORT* yields incorrect results on big-endianplatforms. Follows the same pattern as ux_host_class_hid_idle_get. 2. Missing device protection semaphore (both functions): In RTOS mode, ux_device_protection_semaphore is now acquired before submitting the transfer, in addition to the HID instance semaphore. All other HID control transfer functions (idle_get, idle_set) take both semaphores; omitting it allowed concurrent callers to corrupt the shared transfer_request fields. 3. Missing standalone locking (both functions): Added proper UX_HOST_STANDALONE support using UX_DISABLE/UX_RESTORE to atomically check and setUX_HOST_CLASS_HID_FLAG_LOCK and UX_DEVICE_FLAG_LOCK, and set UX_TRANSFER_FLAG_AUTO_DEVICE_UNLOCK + UX_TRANSFER_STATE_RESET on the transfer request before initiating. Follows the idle_get inline standalone pattern. Co-authored-by: Frédéric Desbiens <[email protected]> Co-authored-by: Copilot <[email protected]>
2026-03-05Merge branch 'dev' into cdc_acm_device_break_reqMAY
2026-03-05Updated copyright headers and removed trailing whitespaceFrédéric Desbiens
2026-03-03Merge pull request #228 from ayedm1/refer_to_ux_internal_definesv6.5.0.202601_preFrédéric Desbiens
Improved code to leverage the ux internal macros instead of using direct tx struct fields
2026-03-03Merge pull request #246 from ayedm1/device_storage_load_eject_mediaFrédéric Desbiens
Added START STOP (load/eject) request support to Device MSC
2026-02-26Fix RNDIS linux enumerationMAY
2026-02-10device cdc acm support break requestMAY
- Implements handling of UX_SLAVE_CLASS_CDC_ACM_SEND_BREAK in the CDC ACM control request path. - Ensures break state is cleared on class deactivation to avoid carrying state across disconnect/reset cycles. - Minor comment/whitespace cleanups in touched headers/sources. - Testing: Build-only / compilation sanity/send break request. (no new automated tests added).
2026-02-09Device MSC: add START STOP (load/eject) request supportMAY
- Add mass-storage “removable media” support by tracking per-LUN prevent/allow medium removal and loaded/ejected status. - Introduce an optional per-LUN callback to handle SCSI START STOP UNIT (including load/eject and power-condition fields). - Extend storage constants (media types, sense keys/codes, power conditions, prevent flags) to support the new behavior and improve readability (explicit hex values). - Initialize new per-LUN state on activation (default: medium removal allowed, medium loaded) and wire the new callback through storage initialization. - Includes minor formatting/comment cleanups and version banner updates to 6.4.6. SCSI Block Commands – 4 (SBC-4)
2026-01-20Refer to ux internal marco instead of using direct txMAY
2025-12-21Cleanup hid device class filesMAY
2025-11-27Merge pull request #219 from ayedm1/add_check_hid_out_ep_abortFrédéric Desbiens
Add check for optional device hid out endpoint
2025-11-27Add check for optional device hid out endpointMAY
2025-11-26fix typo ALIGNMENT -> ALIGNMENTMAY
2025-09-29Merge pull request #178 from Nictrla/terminate-hid-endpointFrédéric Desbiens
Terminate the hid interrupt out endpoint on deactivate
2025-06-10Reversed change to _ux_system_slave_class_storage_vendor_idFrédéric Desbiens
The _ux_system_slave_class_storage_vendor_id in ux_device_class_storage_initialize.c had been changed to a value too large to fit given the constant's type. This commit reverts to a vendor_id with the appropriate length.
2025-06-10Merge pull request #196 from ↵Frédéric Desbiens
Christer-Ekholm/Pima_some_functions_returns_error_when_action_was_success Some PIMA functions returns != UX_SUCCESS even when success
2025-06-10Merge pull request #202 from ayedm1/add-check-length-for-inquiry-page-codeFrédéric Desbiens
Add check length for inquiry page code
2025-06-05Update ux_device_class_storage_initialize.cFrédéric Desbiens
Tweaked the proposed new vendor id.
2025-06-05update vendor id from "AzureRTO" to "Eclipse "MAY
2025-06-05Add check length for inquiry page codeMAY
2025-04-16_ux_device_class_pima_object_references_set and ↵Christer Ekholm
_ux_device_class_pima_object_info_send will return failure even if success because UX_DEVICE_CLASS_PIMA_RC_OK was handeled as error and reported to app
2025-04-16Fix copy paste errorsChrister Ekholm
2025-02-04Terminate the hid interrupt out endpoint on deactivateNicola Jaggi
2024-03-23add missing free allocated memory for device classes, fix typoMohamed AYED
add missing free allocated memory for device classes (pima/dfu/rndis). remove extra spaces. add hid instance sanity check in ux_device_class_hid_uninitializ before freed hid instance memory.
2024-01-29Update copyright.Bo Chen (from Dev Box)
2023-12-28Update for release 6.4.0. (#131)v6.4.0_relCQ Xiao
2023-12-01Fixed standalone device HID issue and enable all tests by default. (#129)CQ Xiao
* Fixed device hid receiver save position issue. * Enable all tests by default.
2023-10-23Update on 23 Oct 2023. Expand to see details.v6.3.0_relChaoqiong Xiao
52c60057 Update headers and readme for 6.3.0 release. 5360ad52 Host H264 frame support. 4b097e80 Add javascript to codeql detection 70278ae3 Fixed use after free issues. 5560620e Improved standalone enum transfer flow. Turn off ASIX in standalone build. Im... 39a01206 Improved host HID clients (mouse/keyboard/remote control) deactivation sequence. be2c7fd5 Improved standalone host CDC ACM control and data instance link management (MSRC 81489,81570) c2368eb2 Improved AC AS management and error handing. b9c23b38 PIMA Host/device optional interrupt endpoint support and host unused semaphore removal. 34ca3af9 Removed interface link in class linked to device. 5d3c9dd0 Improved endpoints get error handling (host CDC-ECM/ACM, storage). Moved stor... 71b08ad1 Improved host audio descriptors validation 4717e3f1 Enable weekly pipeline build to avoid CodeQL expiration ca408b54 Checked XML tag nesting depth in Pictbridge object parsing c300a00c Limited pictbridge array element to hexa output array size. 0e644aaa Reject fake CDC-ECM data interface not located next to its control interface. 911007a9 Improved host HID usage handling. d0576877 Enable dummy check of python for CodeQL 2761e105 Fixed some split transfer issue. db0dbeda Added packet length validation for received nx packet. f5007249 Fix PIMA issues on data set extraction 3ec66399 Fixing device RNDIS bugs with zero copy 1ec77d6b Fix device HID issue when adding class memory man and zero copy. d52e55c0 Add zero copy support in device printer a5cb883f Added zero copy support in device CDC_ECM and RNDIS 1f967ae2 Enable codeql in onebranch pipeline de265dbc Enable zero copy for device audio and video 53aee275 Refined memory management to reduce overhead.
2023-06-30Update on 30 Jun 2023. Expand to see details.Chaoqiong Xiao
92c60270 Added device HID flexible event queue and zero copy support. a15f80ab Added device CDC ACM zero copy support 9fcd26f7 Improve device request handling with print GET_DEVICE_ID support. bea6252c Add new device side endpoint buffer management mode.
2023-04-19Update on 19 Apr 2023. Expand to see details.Chaoqiong Xiao
f6854286 USBX host video error checking support. 909e7523 Onboard to Central Feed Services 863cc0c9 Add optional error check for host storage (no FileX). 0e88a565 Added new test case for HID descriptor get. 03944f4e Add error checking to device/host stack and system. 5bec9ee8 Device PIMA error check improvement. Fixing pictbridge issues (client callbacks initialize, host device info buffer length increase). f8c89ae9 Added host printer error checking.
2023-03-31Update on 31 Mar 2023. Expand to see details.Chaoqiong Xiao
35e477cd Fixed error checking issues on device printer class. 7bc1a9b5 USBX device video error checking support. fb766837 Moved build option check to runtime (device HID, storage). 3af71cf8 Add optional error checking to host HIDs e6d938ad generate usbx cmsis-pack 62c0c282 Add error checking to host serial classes (CDC ACM, GSER, PROLIFIC and SWAR) 89b8890b USBX device DFU error checking support. 4c3c3922 USBX device CCID error checking support. 1411aab4 Add error checks for device HID and RNDIS. 2f83bd01 Added host audio error checking. 18973298 USBX device CDC ACM error checking support.
2023-03-08Release 6.2.1 on 08 Mar 2023. Expand to see details.v6.2.1_relChaoqiong Xiao
e180182e Update owners a6785db8 Update for release. bc77918b Improve host audio sampling set and check (fixed a memory issue). 97d66e5d Add optimization options to ux_user.h eea2c732 USBX device printer error checking support. 1760cc8c USBX device audio error checking support a39f2f26 Fixed a macro name issue in device audio 1.0 83278dd8 Supported multiple report IDs in host HID. c548fe33 Fixed host CDC-ACM capability get. b64f8cdb Fix vendor request handling.
2022-12-16Update on 16 Dec 2022. Expand to see details.Chaoqiong Xiao
8ff89b56 Fixed build issue with UX_MAX_DEVICES=1 in host hub standalone e39131fc Set IPV6 Address before CDC-ECM enumerated. 0b35db7c Fixed build issue with NETX. b4205710 Added CCID standalone support.
2022-10-26Release 6.2.0v6.2.0_relTiejun Zhou
2022-07-26Release 6.1.12v6.1.12_relYuxin Zhou
2022-04-20Release 6.1.11v6.1.11_relYuxin Zhou
2022-01-26Release 6.1.10v6.1.10_relYuxin Zhou
2021-10-13Release 6.1.9v6.1.9_relYuxin Zhou
2021-07-28Release 6.1.8v6.1.8_relYuxin Zhou
2021-06-02Release 6.1.7Bo Chen
2021-04-03Release 6.1.6v6.1.6_relYuxin Zhou
2021-02-28Release 6.1.5v6.1.5_relYuxin Zhou
2021-02-02Release 6.1.4v6.1.4_relYuxin Zhou
2021-01-07update to v6.1.3v6.1.3_relScott Larson
2020-11-10patch release 6.1.2Scott Larson
2020-10-096.1 Releasev6.1_relScott Larson
2020-08-14apply 6.0.2 patch and add additional architectures and toolchain supportv6.0.2_relScott Larson
2020-05-15Updated code for RC5PProvost
2020-05-11Initial commitPProvost