|
Impact Acquire SDK C++
|
Properties for accessing features belonging to the I2C control(Device specific interface layout only). More...
#include <mvIMPACT_acquire.h>
Public Member Functions | |
| HOBJ | hObj (void) const |
| Returns a unique identifier for the component collection referenced by this object. | |
| I2CControl (Device *pDev) | |
| brief Constructs a new mvIMPACT::acquire::I2CControl object. | |
| std::string | I2CRead (int deviceAddress, int deviceSubAddress, int deviceSubAddressWidth, int byteCnt) |
| Read data from an I2C device. | |
| void | I2CWrite (int deviceAddress, int deviceSubAddress, int deviceSubAddressWidth, const std::string &data) |
| Write data to a I2C device. | |
| const ComponentCollection & | restoreDefault (void) const |
| Restores the default for every component of this collection. | |
Public Attributes | |
| PropertyS | I2CBuffer |
| Defines the intermediate access buffer that allows the exchange of data between the I2C device and the application. | |
| PropertyI | I2CBufferLength |
| An integer property controlling the length of the mapping between the I2C device and the mvIMPACT::acquire::I2CControl::I2CBuffer property. | |
| PropertyI | I2CDeviceAddress |
| An integer property storing the address of the I2C device to communicate with. | |
| PropertyI | I2CDeviceSubAddress |
| An integer property storing the sub-address of the I2C device to communicate with. | |
| PropertyI | I2CDeviceSubAddressWidth |
| An enumerated integer property storing the sub-address width(in bits) of the I2C device to communicate with. | |
| Method | I2COperationExecute |
| Calling this function will execute the operation selected by mvIMPACT::acquire::I2CControl::I2COperationMode. | |
| PropertyII2COperationMode | I2COperationMode |
| An enumerated integer property to select the I2C operation. | |
| PropertyII2COperationStatus | I2COperationStatus |
| Represents the I2C operation execution status. | |
Protected Attributes | |
| HOBJ | m_hRoot |
Properties for accessing features belonging to the I2C control(Device specific interface layout only).
Properties in this class will only be available if a device has a local I2C bus and this is configured for access from an application. Right now this is only the case for mvBlueFOX-MLC devices.
mvBlueFOX specific:
For mvBlueFOX devices
The following I2C addresses will be blocked for access from an application:
| i2c address range | affected devices |
| 0x20-0x3F | all mvBlueFOX devices |
| 0x66-0x67 | all mvBlueFOX devices |
| 0x90-0x91 | mvBlueFOX-200w only |
| 0xA0-0xA3 | all mvBlueFOX devices |
| 0xA6-0xA7 | all mvBlueFOX devices |
| 0xBA-0xBB | mvBlueFOX-202a and mvBlueFOX-205 only |
|
inlineexplicit |
brief Constructs a new mvIMPACT::acquire::I2CControl object.
| [in] | pDev | A pointer to a mvIMPACT::acquire::Device object obtained from a mvIMPACT::acquire::DeviceManager object. |
|
inlineinherited |
Returns a unique identifier for the component collection referenced by this object.
This handle will always reference an object of type mvIMPACT::acquire::ComponentList.
|
inline |
Read data from an I2C device.
This is a convenience function that wraps the property access a little. In order to find out if the command has been executed successfully mvIMPACT::acquire::I2CControl::I2COperationStatus should be checked afterwards.
| [in] | deviceAddress | The address of the I2C device to communicate with. |
| [in] | deviceSubAddress | The sub-address of the I2C device to communicate with. |
| [in] | deviceSubAddressWidth | The sub-address width(in bits) of the I2C device to communicate with. |
| [in] | byteCnt | The amount of bytes to read. |
|
inline |
Write data to a I2C device.
This is a convenience function that wraps the property access a little. In order to find out if the command has been executed successfully mvIMPACT::acquire::I2CControl::I2COperationStatus should be checked afterwards.
| [in] | deviceAddress | The address of the I2C device to communicate with. |
| [in] | deviceSubAddress | The sub-address of the I2C device to communicate with. |
| [in] | deviceSubAddressWidth | The sub-address width(in bits) of the I2C device to communicate with. |
| [in] | data | The data to write to the I2C device. |
|
inlineinherited |
Restores the default for every component of this collection.
Calling this function will restore the default value for every component belonging to this collection.
| PropertyS I2CBuffer |
Defines the intermediate access buffer that allows the exchange of data between the I2C device and the application.
This property can store binary data.
| PropertyI I2CBufferLength |
An integer property controlling the length of the mapping between the I2C device and the mvIMPACT::acquire::I2CControl::I2CBuffer property.
| PropertyI I2CDeviceAddress |
An integer property storing the address of the I2C device to communicate with.
| PropertyI I2CDeviceSubAddress |
An integer property storing the sub-address of the I2C device to communicate with.
When mvIMPACT::acquire::I2CControl::I2CDeviceSubAddressWidth is set to 0, this property will be ignored.
| PropertyI I2CDeviceSubAddressWidth |
An enumerated integer property storing the sub-address width(in bits) of the I2C device to communicate with.
Valid values for this property are:
| Method I2COperationExecute |
Calling this function will execute the operation selected by mvIMPACT::acquire::I2CControl::I2COperationMode.
| PropertyII2COperationMode I2COperationMode |
An enumerated integer property to select the I2C operation.
The selected operation is executed when mvIMPACT::acquire::I2CControl::I2COperationExecute is called.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TI2COperationMode.
| PropertyII2COperationStatus I2COperationStatus |
Represents the I2C operation execution status.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TI2COperationStatus.
|
protectedinherited |