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
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
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
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
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
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
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
tobozo
a77aaf7f9e
Added helpers for abs_mouse_report
2023-03-30 21:57:06 +02:00
Ha Thach
65ac519715
Merge pull request #1852 from silvergasp/mem_s
...
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27 10:22:53 +07:00
hathach
e34aeb5cf6
minor clean up
2023-02-27 09:11:35 +07:00
hathach
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
Ha Thach
557bf82336
Merge pull request #1867 from silvergasp/thread_local_globals
...
fix: Change all static variables to thread when fuzzing
2023-02-22 12:54:32 +07:00
hathach
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
hathach
3422e05684
change length in tud_hid_report_complete_cb() from uint8 to uint16
2023-02-04 11:43:23 +07:00
Nathaniel Brough
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08:00
Nathaniel Brough
2e47210c1a
fix: Replace device calls to memcpy with tu_memcpy_s
...
Introduces a new function tu_memcpy_s, which is effectively
a backport of memcpy_s. The change also refactors calls
to memcpy over to the more secure tu_memcpy_s.
2023-01-13 15:20:32 -08:00
hathach
b495d6f8ec
temporarily revert len back to uint8_t in tud_hid_report_complete_cb() for up coming release
2022-07-17 22:56:07 +07:00
hathach
1a1f633922
Merge branch 'master' into add-more-warnings
2022-06-27 12:50:50 +07:00
hathach
556b5d5044
change report len in hid API from uint8_t to uint16_t
...
since HS interrupt endpoint can be up to 1024, 8-bit is not enough.
affected APIs are:
- tud_hid_n_report() / tud_hid_report()
- tud_hid_report_complete_cb()
2022-06-27 12:22:36 +07:00
hathach
b9dc9dbd78
fix most warnings with rp2040 -wconversion
2022-06-27 11:50:17 +07:00
hathach
8b9cf152a0
rhport argument in usbd_ API() is not used (always use the initialized port)
...
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
hathach
0b249618b0
fix -Wcast-qual
2021-10-15 23:54:31 +07:00
szymonh
2d6407e7a5
Enforced buffer boundaries for hid devices
2021-09-13 22:56:25 +02:00
hathach
a6d18c400d
fix keyboard report reserved is always 0
2021-08-17 13:29:26 +07:00
hathach
2b3d547b7b
clean up
2021-07-01 23:05:21 +07:00
hathach
ca98996e1f
better support for hid device set/get protocol
...
add caplock detection for hid_composite
2021-07-01 22:46:39 +07:00
hathach
2c0947ebb6
update gamepad helper
2021-06-09 10:33:57 +07:00
hathach
6e2cf2a3ee
clean up log
2021-06-02 00:10:35 +07:00
hathach
9736e54734
include clean up
2021-05-27 17:40:39 +07:00
hathach
8cffe4897e
change hid device internal boot_mode to protocol_mode
2021-05-23 13:56:32 +07:00
hathach
a26752a93e
fix build error
2021-05-18 12:45:59 +07:00
hathach
7e9e682e09
update to use HID spec protocol value for get/set_protocol()
2021-05-18 12:38:11 +07:00
hathach
e163f85ee0
clean up, rename some HID device symbol/API
...
- add tud_hid_n_interface_protocol()
- rename tud_hid_n_boot_mode() to tud_hid_n_get_protocol()
- rename tud_hid_boot_mode_cb() to tud_hid_set_protocol_cb()
- add HID_PROTOCOL_BOOT/REPORT to avoid magic number 0,1
- rename HID_PROTOCOL_NONE/KEYBOARD/MOUSE to HID_ITF_PROTOCOL_ to avoid
confusion
2021-05-18 12:32:20 +07:00
hathach
a070626729
add itf argument to hid API to support multiple instances
...
following API signature is changed:
- tud_hid_descriptor_report_cb()
- tud_hid_get_report_cb()
- tud_hid_set_report_cb()
- tud_hid_boot_mode_cb()
- tud_hid_set_idle_cb()
2021-02-24 14:27:20 +07:00
hathach
d2b8e591f6
tud_hid_report_complete_cb() API
...
update hid composite to make use of tud_hid_report_complete_cb() for
sending reports when possible.
2021-02-09 15:57:29 +07:00
hathach
72bcc0685c
add tud_hid_n_gamepad_report() helper for gamepad report
...
- Add gamepad to hid_composite example. Though it needs a bit of extra
work but it will come later as separated PR.
2021-02-08 19:08:16 +07:00
hathach
dc9a309839
migrate hid device to new control xfer cb
2020-11-19 22:00:49 +07:00