Trace: » Using Timers on Trizeps » GPIO_AllocSpace » I2C_ReadBurstAll
Access to information is restricted depending on your login.
Request login-information through our contact form.
Table of Contents
I2C_ReadBurstAll
The function I2C_ReadBurstAll saves the current registry settings to flash.
void I2C_ReadBurstAll( UCHAR uSlaveAddress, UCHAR* pBuffer, WORD iNumberBytes ); void i2c_BurstReadAll( UCHAR uSlaveAddress, UCHAR* pBuffer, WORD iNumberBytes );
Parameters
uSlaveAddress
Slave-Address of i2c-device.
pBuffer
Pointer to a Buffer that receives the bytes read.
iNumberBytes
Number of Bytes to read.
Remarks
Issues following sequence:
- Lock
- Start
- SlaveAddress with read-bit
- Read specified number of bytes
- Stop
- Unlock
This function calls I2C_Lock and I2C_Unlock to prevent multiple accesses to the i2c-bus. Don't lock access to i2c-bus prior to using this function!!
Requirements
OS Versions: Windows CE 4.2 and later.
Header: drvlib_app.h
Link Library: drvlib_app.lib
See Also
(C) 2009 Keith & Koep GmbH. Alle Rechte vorbehalten. Nutzungsbedingungen
(C) 2009 Keith & Koep GmbH. All rights reserved. Terms of Use
(C) 2009 Keith & Koep GmbH. All rights reserved. Terms of Use