Hello Benj
In the i2c transmit makros,what function have the return-variable?
in the i2c read macro,what function have the last-byte variable?
Regards Wolfgang
i2c macro`s
Moderator: Benj
-
saschech@gmx.de
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: i2c macro`s
Hello Wolfgang,
The following was taken from the I2C component help file.
Char2 MI²C_Transmit_Byte(Char1)
Sends a byte (Char1) on the I²C bus. Returns the acknowledge if any (Char2).
0 represents that data was acknowledged and 1 represents no acknowledge was detected (Char2).
Char2 MI²C_Receive_Byte(Char1)
Receives a byte (Char2) from the I²C bus. Char1 is used to signify the last byte when streaming incoming data.
0 represents that data is still being received and 1 represents last byte of data to be received (Char1).
The following was taken from the I2C component help file.
Char2 MI²C_Transmit_Byte(Char1)
Sends a byte (Char1) on the I²C bus. Returns the acknowledge if any (Char2).
0 represents that data was acknowledged and 1 represents no acknowledge was detected (Char2).
Char2 MI²C_Receive_Byte(Char1)
Receives a byte (Char2) from the I²C bus. Char1 is used to signify the last byte when streaming incoming data.
0 represents that data is still being received and 1 represents last byte of data to be received (Char1).
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel