linux usb gadget filesystem资料整理

linux usb gadget 模块filesystem,自定义通讯协议。有gadgetfs,funtionfs两种是实验方式。

1、gadgetfs 参考用例

参考用例 Create your own USB gadget with GadgetFS 很好的用例

Create your own USB gadget with GadgetFS

Linux-USB Gadget API Framework

http://www.linux-usb.org/gadget/usb.c

ptp-gadget 使用例程

GitHub - prife/ptp-gadget: fork from http://git.denx.de/?p=ptp-gadget.git;a=summary

2、functionfs 参考用例

linux内核中有测试用例,需要适配开发板

https://github.com/torvalds/linux/blob/master/tools/usb/ffs-test.c

https://github.com/torvalds/linux/tree/master/tools/usb/ffs-aio-example

adbd 的usb初始使用

https://github.com/tonyho/adbd-linux/blob/master/adb/usb_linux_client.cpp

使用例子

https://github.com/viveris/uMTP-Responder/blob/master/src/usb_gadget.c

https://github.com/linux-usb-gadgets/ptp-gadget

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值