![FTDI FT51A Application Note Download Page 161](http://html1.mh-extra.com/html/ftdi/ft51a/ft51a_application-note_2341158161.webp)
Application Note
AN_289 FT51A Programming Guide
Version 1.0
Document Reference No.: FT_000962 Clearance No.: FTDI# 483
160
Copyright © 2015 Future Technology Devices International Limited
LPM_L1 = 1; // Set this bit to indicate LPM-triggered transition from L0 (Active) to
L1 (Sleep).
if (first_time)
{
first_time = 0;
FT122_CMD = READ_LPM_STATUS;
lpm_status[0] = FT122_DATA;
lpm_status[1] = FT122_DATA;
}
}
}
void process_setup_packet(void) // called from USB_process()
{
USB_request_callback cb = NULL;
uint8_t data;
uint8_t i;
FT51_STATUS status = FT51_FAILED;
debug_printf("--- process_setup_packet ---\r\n");
if (LPM_L1 == 1)
{
debug_printf("+++ LPM_L1 = 1\r\n");
debug_printf("+++ LPM Status = %02x %02x\r\n", lpm_status[0], lpm_status[1]);
}
else
{
debug_printf("+++ LPM_L1 = %d\r\n", LPM_L1);
debug_printf("+++ LPM Status = %02x %02x\r\n", lpm_status[0], lpm_status[1]);
}
}