7#ifndef __PVDEVICEI2CBUS_H__
8#define __PVDEVICEI2CBUS_H__
10#include <PvDeviceSerialPort.h>
85 PvResult BurstWrite(
unsigned char aSlaveAddress,
86 const unsigned char *aBuffer,
88 bool aFastMode =
true );
102 PvResult IndirectBurstWrite(
unsigned char aSlaveAddress,
103 unsigned char aOffset,
104 const unsigned char *aBuffer,
105 uint32_t aBufferSize,
106 bool aFastMode =
true );
120 PvResult BurstRead(
unsigned char aSlaveAddress,
121 unsigned char *aBuffer,
122 uint32_t aBufferSize,
123 uint32_t &aBytesRead,
124 bool aFastMode =
true );
141 PvResult IndirectBurstRead(
unsigned char aSlaveAddress,
142 unsigned char aOffset,
143 unsigned char *aBuffer,
144 uint32_t aBufferSize,
145 uint32_t &aBytesRead,
146 bool aFastMode =
true,
147 bool aUseCombinedFormat =
true );
162 PvResult MasterTransmitter( uint8_t aSlaveAddress,
163 const uint8_t *aBuffer,
164 uint32_t aBufferSize,
165 bool aFastMode =
true,
166 bool aGenerateStopCondition =
true );
182 PvResult MasterReceiverAfterFirstByte( uint8_t aSlaveAddress,
184 uint32_t aBufferSize,
185 uint32_t &aBytesRead,
186 bool aFastMode =
true,
187 bool aGenerateStopCondition =
true );
190 PvSerialLib::DeviceI2CBus *mThis;
PvDeviceSerial
Device serial port enumeration.
Definition PvDeviceSerialEnums.h:20
@ PvDeviceSerialBulk0
Bulk interface 0, or BULK0. Can be UART, USRT or I2C depending on device configuration.
Definition PvDeviceSerialEnums.h:29
Interface used by PvDeviceSerialPort to interact with a device controller.
Definition IPvDeviceAdapter.h:49
Provides I2C bus communication interface for device serial ports.
Definition PvDeviceI2CBus.h:25
Result information.
Definition PvResult.h:30