libftdi Archives

Subject: Re: libftdi1: Fixe Fixme in CBUS decoding

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 23 May 2011 18:21:54 +0200
>>>>> "Thomas" == Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx> writes:

    Thomas> Hello Uwe, On Friday, 20. May 2011 18:07:37 Uwe Bonnes wrote:
    >> + if (i < 4) + /* Running MPROG show that C0..3 have fixed function
    >> Synchronous + Bit Bang mode */ + fprintf(stdout,"C%d BB Function:
    >> %s\n", i, + cbus_BB[i]); + else + fprintf(stdout, "Unknown CBUS
    >> mode. Might be special mode?\n"); }

    Thomas> Looking at that code again, doesn't it just iterate over the
    Thomas> field names in cbus_BB unconditionally?

    Thomas> So it outputs something like this: C0 BB Function: RXF C1 BB
    Thomas> Function: TXE C2 BB Function: RD C3 BB Function: WR

Yes,
in cbus_BB, C0 in unconditionally RXT, C1 is TXE and so on.

Bye
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread