随笔分类 -  单片机

上一页 1 2 3 4 5 下一页

单片机
摘要:static void MX_GPIO_Init(void){ GPIO_InitTypeDef GPIO_InitStruct = {0}; GPIO_InitStruct.Pin = GPIO_PIN_13;//³õʼ»¯LED0 GPIO_InitStruct.Mode = GPIO_MOD 阅读全文

posted @ 2022-11-04 21:02 lydstory 阅读(37) 评论(0) 推荐(0)

摘要:https://www.cnblogs.com/jiangzhaowei/p/9264365.html stm32 __attribute__ 字节对齐在哪里设置 单片机都是1字节对齐吗? 高手回答:对,packed就是一个字节对齐 第一个字节要reportid 阅读全文

posted @ 2022-11-04 18:26 lydstory 阅读(281) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2022-11-04 09:40 lydstory 阅读(28) 评论(0) 推荐(0)

摘要:https://www.wch.cn/products/categories/22.html?pid=1#data 阅读全文

posted @ 2022-11-04 07:09 lydstory 阅读(33) 评论(0) 推荐(0)

摘要:MC9128 飞思卡尔 MC9128 飞思卡尔 单片机大赛 阅读全文

posted @ 2022-11-04 05:20 lydstory 阅读(10) 评论(0) 推荐(0)

摘要:dfu-util 阅读全文

posted @ 2022-11-04 04:32 lydstory 阅读(42) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2022-11-04 01:52 lydstory 阅读(14) 评论(0) 推荐(0)

摘要:USB HID 设备时通过报告report来传送数据的,报告有输入报告和输出报告;报告描述符是用来描述一个报告的结构以及该报告里面的数据是用来干什么的;一个报告描述符可以描述多个报告,不同的报告通过报告ID来识别,报告ID放在报告的最前面,即第一个字节,如果没有规定报告id是,报告就没有id字段;报 阅读全文

posted @ 2022-11-03 19:54 lydstory 阅读(367) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2022-11-03 05:09 lydstory 阅读(93) 评论(0) 推荐(0)

摘要:USBD_HandleTypeDef hUsbDeviceFS; static 类型报错..... static 限制只能在本文件内使用 extern无效 stm32中 阅读全文

posted @ 2022-11-03 02:04 lydstory 阅读(53) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/chch414/article/details/126514105 阅读全文

posted @ 2022-11-02 20:09 lydstory 阅读(30) 评论(0) 推荐(0)

摘要:unsigned char usb_receive_buffer[64] = {0}; hid 接收字节 阅读全文

posted @ 2022-11-02 19:58 lydstory 阅读(44) 评论(0) 推荐(0)

摘要:#define CUSTOM_HID_EPIN_ADDR 0x82 #define CUSTOM_HID_EPIN_SIZE 0x40 //wuyc #define CUSTOM_HID_EPOUT_ADDR 0x02 #define CUSTOM_HID_EPOUT_SIZE 0x40 //wuy 阅读全文

posted @ 2022-11-02 19:20 lydstory 阅读(99) 评论(0) 推荐(0)

摘要:/* Function Prototypes: */ /** Main function to initialize and start the USB interface. Once active, the USB interface will * allow for device connect 阅读全文

posted @ 2022-11-01 19:34 lydstory 阅读(52) 评论(0) 推荐(0)

摘要:enum USB_Modes_t { USB_MODE_None = 0, /**< Indicates that the controller is currently not initialized in any specific USB mode. */ USB_MODE_Device = 1 阅读全文

posted @ 2022-11-01 19:29 lydstory 阅读(112) 评论(0) 推荐(0)

摘要:文件universal serial Bus HID Usage Table完整列出所有的usage pages(用途类页)和usage ID(用途识别名),使用者必须遵照文件的规范来声明操作的用途。该文件的附录A有十多个报告描述符的范例 阅读全文

posted @ 2022-11-01 16:20 lydstory 阅读(108) 评论(0) 推荐(0)

摘要:USB/HID设备报告描述符详解 (3) USB描述符即USB设备的信息,系统设备列举所要执行的工作之一,即是取得这些有关于设各的相关信息,之后设备才能被系统识别使用。 在图的描述符中,设备描述符(device descriptor)、配置描述符(configurationdescriptor)、接 阅读全文

posted @ 2022-11-01 16:00 lydstory 阅读(1447) 评论(0) 推荐(0)

摘要:ST-Link与stm32必须全部启动连接 debug ST-Link与stm32必须全部启动连接 debug ST-Link与stm32必须全部启动连接 debug 阅读全文

posted @ 2022-11-01 03:34 lydstory 阅读(28) 评论(0) 推荐(0)

摘要:主机环境:Windows 7 SP1 开发环境:MDK5.14 目标板:STM32F103C8T6 开发库:STM32F1Cube库和STM32_USB_Device_Library 现在来分析哈USB器件库代码,先来看usbd_core文件,其头文件只有一些函数声明,没啥可说的,只有一点,之前分析 阅读全文

posted @ 2022-11-01 01:01 lydstory 阅读(1140) 评论(0) 推荐(0)

摘要:/** @defgroup USBD_DESC_Private_Variables USBD_DESC_Private_Variables * @brief Private variables. * @{ */USBD_DescriptorsTypeDef FS_Desc ={ USBD_FS_De 阅读全文

posted @ 2022-11-01 00:45 lydstory 阅读(96) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页

导航