IIC Timeout: IowKitSet[Write]Timeout vs. Timeout Byte (ReportID=1)

Dies ist das deutsche Forum für alle Themen um den IO-Warrior. Beiträge bitte nur in Deutsch.

Moderator: Guido Körber

Post Reply
H.S.
Posts: 5
Joined: Thu Aug 30, 2018 9:13 am
Contact:

IIC Timeout: IowKitSet[Write]Timeout vs. Timeout Byte (ReportID=1)

Post by H.S. »

Hallo,

im Report-Byte 3 der IIC Special mode function (Abschnitt 5.10.1 in 'IOWarrior_Datasheet.pdf') kann man einen Timeout von 0,5ms..128ms vorgeben.

Was ist hierbei der Unterschied zu den 'IowKitSetTimeout()' / 'IowKitSetWriteTimeout()' Funktionen, wo man ebenfalls den Lese-/Schreib-Timeout vorgeben kann?

VG
H.S.
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: IIC Timeout: IowKitSet[Write]Timeout vs. Timeout Byte (ReportID=1)

Post by Christoph Jung »

Das Timeout, was man beim I2C setzten kann betrifft nur den I2C und dessen Kommunikation.
Beschreibung im Datenblatt zum IOW24/40:
The timeout byte sets the maximum time IOW waits for SCL to be released by the slave when clock stretching handshake is used. Time is imeout x 500μsec, writing a zero sets timeout to 256x500μsec. If the timeout expires due to the slave pulling down SCL too long, IO-Warrior will return an error, just ike when the slave generates no Ack signal.
Die Funktion IowKitSetTimeout() und IowKitSetWriteTimeout() betrifft die iowkit.dll. Die Funktion unterbricht hart die Schreib und Lesefunktion auf Programmseite, unabhängig der benutzten Funktion.
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
H.S.
Posts: 5
Joined: Thu Aug 30, 2018 9:13 am
Contact:

Re: IIC Timeout: IowKitSet[Write]Timeout vs. Timeout Byte (ReportID=1)

Post by H.S. »

Danke für die schnelle Antwort! 👍
Post Reply