www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - I2C Bus API


I2C_transmit_block

Send block of data on I2C bus

int I2C_transmit_block ( unsigned char slave,
                         const char far *buffer,
                         int length );

Parameters

slave

7 bit slave address in B7..B1; B0 n/a

buffer

Pointer to data source

length

Number of bytes to send from buffer

Return Value

result - 0 = Success
    non-zero indicates error:
    5: Bus allocated
    6: Bus arbitration failed
    7: Bus error
    8: Timeout
    9: Slave faulty or not available

Comments

This function will dwell until 'length' bytes from the buffer are transmitted or until an error occurs.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document