Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need help with code example for FTDI chip

Status
Not open for further replies.

meti

Newbie level 2
Newbie level 2
Joined
May 10, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
delphi ftdi

Hi everybody,

currently I'm working on simple project using FTDI chip MM232R and D2XX driver. Im using Delphi for programming. I can not make work notification event.
Can simeone help me and send a Delphi code sample showing how to install notification event handler, and how to use it?

Thank you in advance
 

ftdi delphi

Let's make it more simple. Here is a code, the process stops on WaitForSingleObject, the next line of code neve executes even if the modem status changed.


Code C++ - [expand]
1
2
3
4
5
6
7
FT_Event_Handle := CreateEvent(Nil,FALSE,FALSE,'');
Set_USB_Device_Event_Notification(FT_EVENT_MODEM_STATUS or FT_EVENT_RXCHAR);
while(true) do
  begin
    WaitForSingleObject(FT_Event_Handle, INFINITE);
    PortEventHandle;
  end;



Where is an error?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top