1. Enumerate the USB STM32 as HID devices.
2. STM32 uses 3 endpoints, endpoint 0 for enumeration, endpoints 1 and 2 for data sending and receiving.
3. The endpoint length is 64, that is, a maximum of 64 bytes of data can be transmitted in a single pass.
4. STM32 obtains the data from the host computer and returns the data via USB and prints out the data.
5. The host computer program realizes the read and wr
Two-way linked list is also called double linked list, which is a kind of linked list, and it has two pointers in each data node, pointing to direct successor and direct precursor respectively. Therefore, starting from any node in a two-way list, it is easy to access its predecessor nodes and subsequent nodes. In general we construct bidirectional cyclic lists.(1) Define the basic structure of the bidirectional
now being used in smartphones and notebooks, For example, the Nokia N1 tablet and Apple's 2015 new Mac 12 laptops are all using the Usb-c interface, which can be easily understood as a fourth-generation USB interface.
USB Type-c Interface Features:
1. Ultra Thin
The old USB port is 14mm * 6.5mm long, while the
Jpa Bidirectional Multi-to-Multi-relationship, jpa Bidirectional Multi-to-Relationship
Compared with other associations, many-to-many relationships are a little more complex. This complexity is mainly reflected in the understanding of such associations. Different from other associations, this association has an intermediate table, and the operation is a little more complicated. Let's take a look.
1. entity
One, bidirectional primary Key AssociationA two-way primary key association is actually a special case of one-way one-to-one primary key associations, except for the Here also use person and Idcard to discuss, one corresponds to a unique identity card, and an identity card is the only map of a person, so this produces a two-way relationship, person's primary key is also Idcard primary key, is the primary key is also a foreign key, This association bec
2There are two-way associations between classes, but one class does not need the features of another class.Remove unnecessary associations.
Motivation: bidirectional Association is useful, but you must pay for it, that is, maintain bidirectional connections and ensure that objects are created and deleted correctly. BesidesProgramMembers are not used to bidirectional
front node, and the right pointer field is used to point to the next node. A two-way cyclic linked list has the following features: p-> llink-> rlink = p-> rlink-> llink = p.
The code used to represent two-way linked list nodes is as follows:
Public class Node {private Object data; private Node lLink, rLink; // constructor public Node () {this. data = null; this. lLink = null; this. rLink = null;} // The constructor loads public Node (Object data) {this. data = data; this. lLink = null; this.
Before the interview time technology very natural to ask you know Vue have any characteristics, at that time did not understand Vue, Just to vue1.0 some knowledge to learn a little, and then casually said Vue can two-way binding data, now think really embarrassed Ah, vue2.0 has removed two-way binding, need to do it yourself to achieve. The following text:Vue 2.x compared to Vue 1.x, there is a relatively large change is the removal of the components of the props two-way binding function.The pro
;
this.edition+=newvalue-2004
}}
);
book.year=2005;
alert (book.edition);//2
Console.log (book.year);//2005
That is, when executing the book.year=2005, it actually executes the set method in year, and executes the year's Get method when executing the book.year;
var book={
_year:2004,
edition:1
};
Object.defineproperty (book, ' Year ', {
get:function () {
Console.log ("year get ') return
this._year
},
set:function (newvalue) {
Console.log ("year set")
if (newvalue>2004) {
this._year=
Some friends asked why the optical drive will be stuck on the disc. In fact, it is not due to the poor quality of the disc or the aging of the optical drive laser head.
When the optical drive is reading some unclear areas of the optical drive, you need to repeat it to adjust the position and power of the optical drive to read data. At this time, the optical drive consumes a lot of CPU, this often causes false crashes.
At this time, you just need to take out the CD in the optical drive and th
How to disable USB flash drives on the company's computer, prohibit USB flash drives from copying computer files on the company's computer, and prohibit USB flash drives on the computerAt present, USB flash drives are frequently used, and the read/write speed and storage space are getting bigger and bigger. Although it
How to disable USB flash drives, disable USB storage devices, and prohibit USB flash drives from copying computer filesUSB flash drives and mobile hard disks are currently widely used USB storage tools, which greatly facilitates work. But at the same time, employees can easily copy computer files through
One-click USB flash drive _ How to use a USB flash drive to install the system-Windows XP system and Windows 7 system tutorial-one-click USB flash drive boot disk creation tool tutorialStep 1: preparations and precautions before preparation
1. Download the one-click USB flash drive system software (Note: The computer m
USB-HDD, USB-ZIP, USB-FDD boot
HDD, short for harddiskdrive, is the English name of the hard drive. The most basic computer memory, we often say that disk C, disk D and other disks are hard drive, but we generally referred to as hard drive. Modern hard disk capacity is generally 40g, 80g, 120g, 160g and so on, currently the highest desktop level hard di
In 1991, one introduced the concept of pipelines in Linux and used pipelines in many places, such as file systems and device drivers. So we can see that there are various pipelines in Linux. But the same thing is that all pipelines are used to transmit things, but some pipelines transmit real material while some pipelines transmit data.
The pipe we see in the USB code is used for data transmission and communication. Communication is from both parties
in the pipeline. One pipeline can only be input or output, and the fish and the bear's paw cannot have both, we have already introduced this macro.
In the pipeline, 7th bits (bit 7) indicate the direction. So here 0x80 means that bit 7 is set to 1, which indicates that the transmission direction is from the device to the host, that is, in; and if this bit is 0, it indicates that the transmission direction is from the host to the device, that is, out. Because usb_dir_out is 0 and usb_dir_in is 1
This article was reproduced from: http://blog.csdn.net/u013686019/article/details/50165059[HTML]View PlainCopy
android:4.4.4
First, the problem analysisWhen the USB printer is plugged into an Android device, there is no printer node (/DEV/USB/LP0) generated in the System/dev directory.The first reaction is to check the printer device and access the Ubuntu-equipped PC, normal: /dev/
Step 1: view the USB flash disk Information First, run the sudo fdisk-l command to check where the USB flash disk is located, that is, where the USB disk is mounted.
(If the fdisk-l command is used directly without any results, you must add sudo to run it as an administrator)
After viewing this information, you may see the following information:
Disk/dev/SDA: 25
Because the USB driver in Linux is already very complete,You only need to follow the following configuration. After the configuration, recompile the kernel and install it on the Development Board.
1. Modify make menuconfig
System type -->
Input core support -->
SCSI device support --->
[*] Legacy/proc/SCSI/support
* ** SCSI support type (disk, tape, CD-ROM )***
[*] Hid devices --->
--- Hid Dev
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.