Commit Graph

340 Commits

Author SHA1 Message Date
Jay
15b1623aa3 add hid stylus pen device.
this works with android, for bypassing that absmouse does not support android.
note that, to hide cursor on android for every touch signal, find cursor option in android settings menu.

references:
1. https://stackoverflow.com/questions/28536602/hid-digitizer-descriptor-doesnt-perform-well-with-landscape-orientation
2. https://github.com/jonathanedgecombe/absmouse/blob/master/src/AbsMouse.cpp
2024-12-23 22:03:37 +09:00
shdeb
3f335df508 Adding HID Usage Table Physical Input Device Page (0x0F) 2024-12-06 11:43:54 +05:30
hathach
9e4b855e53 minor clean up 2024-11-27 11:35:21 +07:00
hathach
d9f3e7dd25 add TUH_EPBUF_DEF for hid host 2024-11-26 16:32:19 +07:00
hathach
090964cd1b apply TUD_EPBUF_DEF for device: bth, dfu, hid, msc 2024-11-22 12:25:37 +07:00
hathach
fa523a5682 make sure usb buffer occupies whole cache line when DCACHE is enabled for msc,cdc,hid
HIL enable device DMA for p4
2024-11-21 10:22:09 +07:00
Hjalmar
b786d6f4e6 Marked the keycode parameter of the keyboard_report functions as const since the functions don't modifies the value 2024-08-09 21:08:32 +02:00
Ha Thach
e9f9d43d67 Merge pull request #2723 from liamfraser/rp2040_tweaks
RP2040 tweaks
2024-07-19 21:33:50 +07:00
graham sanderson
31a979a6cc fix some clang compiler warnings 2024-07-18 11:11:06 +01:00
hathach
0004faca83 minor update hid device 2024-07-17 19:29:21 +07:00
hathach
0ecf15bc61 follow up to #2253
- rename tud_hid_report_fail_cb() to tud_hid_report_failed_cb() and change its signature
- use default implementation for hid callbacks to be compatible with keil compiler
- code format
2024-07-17 14:35:23 +07:00
hathach
969b06d77c minor update 2024-06-14 12:51:50 +07:00
John Toniutti
f09fa22bbc Fix redefinition 2024-05-09 18:45:20 +02:00
John Toniutti
015b57b6ef Add missing key codes
Source: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf from page 57 to page 59
2024-05-09 17:05:14 +02:00
HiFiPhile
70ae07b084 Merge pull request #2252 from rsolorzanomsft/hid-lighting
Add HID Lighting and Illumination functionality
2024-05-08 15:00:08 +02:00
HiFiPhile
24339dbcce Code format. 2024-04-26 18:01:02 +02:00
HiFiPhile
268cc19f44 Merge remote-tracking branch 'remotes/tinyusb/master' into pr/2253 2024-04-26 17:57:53 +02:00
HiFiPhile
4af67dd007 Simplify transfer failure cb. 2024-04-26 17:45:14 +02:00
HiFiPhile
1661acf82f Add missing alignment. 2024-04-26 13:42:20 +02:00
HiFiPhile
7fb8d3341c use separate buffer for ctrl transfer. 2024-04-26 13:40:13 +02:00
HiFiPhile
9ef3755f03 Merge branch 'master' of https://github.com/hathach/tinyusb into pr/2283 2024-04-26 13:12:56 +02:00
Luke A
804a73a454 Adding tuh_hid_get_report(...) to hid_host.h
This allows USB host functionality to call HID_REQ_CONTROL_GET_REPORT on the IN Endpoint, and read the report buffer in the callback.
2024-04-10 15:46:57 +07:00
Ha Thach
42decf28f1 Merge pull request #1835 from MasterQ32/otg_bringup
Implements deinit functions for host/device mode switch
2024-04-08 23:48:52 +07:00
hathach
c3c0648456 add class driver deinit 2024-04-08 22:07:56 +07:00
Ha Thach
d33fe38a62 Merge pull request #1363 from tobozo/master
HID Mouse with absolute positioning
2024-04-08 18:33:40 +07:00
hathach
2012a0d369 fix hid close not clear data 2024-03-31 15:48:26 +07:00
hathach
e84c9f3e22 implement tuh_init()
change usbh driver init() return type from void to bool
2024-03-22 16:12:57 +07:00
hathach
74bd264758 adding deinit() stub for usbh/hcd class driver
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-03-22 11:42:33 +07:00
hathach
4f5d80d397 add tuh_hid_receive_abort() API 2024-03-01 17:40:38 +07:00
hathach
4ed02ae5f9 reformat code hid_host.c
- fix ceedling with ruby 3.1
- allow overwrite CMAKE_C_COMPILER/CMAKE_CXX_COMPILER from command line
2024-03-01 17:34:14 +07:00
IngHK
f600a8a0fc fix tuh_hid_mounted() similar to #2437 2024-01-30 10:33:55 +01:00
hathach
f469250fa3 minor update 2023-11-24 18:35:00 +07:00
Xudong Zheng
2fed722b00 add tuh_hid_set_default_protocol() to set default USB host HID protocol 2023-11-24 18:27:03 +07:00
Shawn Hoffman
f88a5bb03b hid_device: use separate buffer for SET_REPORT instead of epout 2023-10-17 19:26:11 -07:00
Rocky04
81e63ed6d8 Fixing warning 2023-09-13 22:03:44 +00:00
Rocky04
11fba84334 Error handling on transfer 2023-09-13 21:29:04 +00:00
Ryan Solorzano
a3d9eb43f1 Update Lighting Descriptor Template comment 2023-09-12 12:09:39 -07:00
Ryan Solorzano
3e8cf3ec8c Add HID Lighting and Illumination functionality 2023-09-12 11:32:23 -07:00
hathach
1b33a31536 more minor clean up
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
hathach
979bf32266 default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log 2023-08-02 15:34:18 +07:00
hathach
ef49b93532 rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
hathach
1c4f22a54c EHCI: fix xfer failed with disconnected device as stalled
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if
not defined
- change QHD_MAX for EHCI, should be user configurable and more
optimized in the future
2023-05-16 11:09:22 +07:00
hathach
206d63e038 correct EHCI reporting failed xfer (instead of stalled) when device is unplugged 2023-05-16 11:09:21 +07:00
hathach
6db24e0dba implement tuh_hid_receive_ready() and tuh_hid_send_ready() 2023-04-06 11:16:28 +07:00
tobozo
805ebb3924 remove trailing space (satisfy pre-commit flow) 2023-03-30 22:01:36 +02:00
tobozo
a77aaf7f9e Added helpers for abs_mouse_report 2023-03-30 21:57:06 +02:00
tobozo
290f18a1fe Merge branch 'hathach:master' into master 2023-03-30 19:30:24 +00:00
hathach
71fb6469d4 separate CFG_TUSB_MEM_SECTION and CFG_TUSB_MEM_ALIGN to
- CFG_TUD_MEM_SECTION and CFG_TUD_MEM_ALIGN
- CFG_TUH_MEM_SECTION and CFG_TUH_MEM_ALIGN
- fix missing mem section and align for host
2023-03-24 14:05:21 +07:00
hathach
f27486e19a add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new tuh_itf_info_t 2023-03-22 10:00:42 +07:00
hathach
d22fc550c7 change meaning of CFG_TUH_HID to total number of HID interfaces supported.
- previously CFG_TUH_HID is max number of interfaces per device which is
rather limited and consume more resources than needed.
- change hid host instance in API to index
2023-03-21 21:04:06 +07:00