![FTDI FT51A Скачать руководство пользователя страница 104](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158104.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
103
Copyright © 2015 Future Technology Devices International Limited
2.11.4.4
Read Endpoint Status
Command
: 0x80-0x85 (0x80-0x8F for Enhanced Mode)
Data
: Read 1 byte
Bit
Symbol
Reset
Description
1..0
Reserved
0
Reserved
2
Setup packet
0
0: indicates packet is not a setup packet
1: indicates last received packet has a SETUP token
4..3
Reserved
0
Reserved
5
Buffer 0 Full
0
0: buffer 0 is not filled up
1: buffer 0 is filled up
6
Buffer 1 Full
0
0: buffer 1 is not filled up
1: buffer 1 is filled up
7
Endpoint Stalled
0
0: endpoint is not stalled
1: endpoint is stalled
Table 2.131 Endpoint Buffer Status Register
2.11.4.5
Read Buffer
Command
: 0xF0
Data
: Read multiple bytes
The Read Buffer command is used to read the received packet from the selected endpoint OUT
buffer.
The data in the endpoint buffer is organized as follows:
byte 0: length of payload packet, MSB(for default mode this byte is ignored)
byte 1: length of payload packet, LSB
byte 2: Payload packet byte 1
byte 3: Payload packet byte 2
…
byte n+1: Payload packet byte n (n = packet length)
2.11.4.6
Write Buffer
Command
: 0xF0
Data
: Write multiple bytes
The Write Buffer command is used to write a payload packet to the selected endpoint IN buffer.
The data must be organized in the same way as described in the Read Buffer command. For the
default mode, byte 0 should always be set to 0x00.