58
How can I...
Write data to the I
2
C bus
Two routines are available to write data to the I
2
C bus.
word I2CWrite( dword dwAddress, void * pBuf, dword dwSize )
Description:
This routine writes the data that is placed in the memory where
pBuf points to, to a specified address on the I
2
C bus.
When the data is sent, a stop command is sent to the I
2
C bus.
Input:
dwAddress
the address of the device the data is written to
*pBuf
pointer to the begin of memory location that
contains the data to be written.
dwSize
the size of the buffer in bytes
Output:
return value
E_NO_ERRORS
E_NO_HARDWARE
E_NOT_SUPPORTED
E_I2C_ERROR
E_I2C_INVALID_ADDRESS
E_I2C_INVALID_SIZE
E_I2C_NO_ACKNOWLEDGE
word I2CWriteNoStop( dword dwAddress, void * pBuf, dword dwSize )
Description:
This routine writes the data that is placed in the memory where
pBuf points to, to a specified address on the I
2
C bus.
When the data is sent, no stop command is sent to the I
2
C bus.
Input:
dwAddress
the address of the device the data is written to
*pBuf
pointer to the begin of memory location that
contains the data to be written.
dwSize
the size of the buffer in bytes
Output:
return value
E_NO_ERRORS
E_NO_HARDWARE
E_NOT_SUPPORTED
E_I2C_ERROR
E_I2C_INVALID_ADDRESS
E_I2C_INVALID_SIZE
E_I2C_NO_ACKNOWLEDGE
Summary of Contents for Handyscope HS3
Page 2: ......
Page 8: ...8 Introduction...
Page 65: ...Deprecated routines 65...
Page 67: ...TiePie engineering DLL programmer s manual rev 1 26...