![FTDI FT51A Application Note Download Page 149](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158149.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
148
Copyright © 2015 Future Technology Devices International Limited
3.1.11.8
dfu_class_req_getstate
Return the current DFU state machine enumeration.
3.1.11.9
dfu_reset
Resets the DFU state machines for dfuDETACH to appIDLE for a cancelled detach, dfuMANIFEST-
WAIT-RESET to appIDLE for a successful firmware download. If it is called at dfuDNLOAD-IDLE
then this will flag an error as there is an incomplete firmware download.
3.1.12
LCD Library
The LCD library provides functions and methods for using an ST7036 LCD display and compatibles.
It requires the I
2
C Master library to provide the communication between the FT51A and the LCD
display.
This library is in a single file
Source Folder: lcd
File: ft51_lcd_st7036.c
Requires: ft51_i2c_master.c
3.1.12.1
lcd_initialise
Send commands to the LCD to setup the display preferences.
It will enable a 2 line display with single height characters; set the bias and contrast; cursor off
and blink off; clear the display and set the entry mode.
3.1.12.2
lcd_clear
Send the clear command to remove text from the display.
3.1.12.3
lcd_home
Move the cursor to the top left of the display.
3.1.12.4
lcd_position
Set the position of the cursor to the desired location on the display.
3.1.12.5
lcd_display
Writes a string to the display from the current cursor position.
3.1.13
TMC Library
The TMC library provides functions for handling the Test and Measurement class. The class is
described in the following document (Test & Measurement Class section):
http://www.usb.org/developers/docs/devclass_docs/
The library will receive two types of packets from the host: a Message Out, which is a command;
or a Request Message In, which is a request to return data to the host. After the latter packet, the
host will do a Message In operation to receive a packet from the TMC device.
Each packet type from the host will execute a callback function. The callback functions are in the
application and handle decoding the command and formatting the response.
The Message In is always immediately preceded by a Request Message In.
This library is in a single file.
Source Folder: tmc
File: ft51_usb_tmc.c