Wire.endTransmission

Name
Wire.endTransmission - to end a transmission started with Wire.beginTransmission

Description

 * u8 Wire.endTransmission ( u8 sendStop ) - (P8)


 * When this is executed the whole tx buffer is transfered in a main buffer, then put on the i2c bus from this main buffer, a start and a stop bit (only if sendStop=1) are also transmitted.

The tx buffer is reset and the transmitting status is set to zero.

Syntax
Wire.endTransmission( sendstop );
 * P8


 * Parameters:
 * u8 sendstop - value = 1 to transmit a stop bit; = 0 to allow the data tranfer and a next transmission will not request a start bit


 * Returns/Output;
 * 0 for a successful operation
 * 1 if the length to transmit is too large

Example

 * Master_transmitter_I2C
 * Slave_transmitter_I2C