Impact Acquire SDK .NET
|
Properties for accessing features belonging to the I2C control(Device specific interface layout only). More...
Public Member Functions | |
IEnumerable< T > | getEnumerable< T > () |
Returns an enumerator of a certain type that iterates through the collection. | |
IEnumerator< int > | GetEnumerator () |
Returns an enumerator that iterates through the collection. | |
I2CControl (Device device) | |
Constructs a new mv.impact.acquire.I2CControl object. | |
byte[] | I2CRead (int deviceAddress, int deviceSubAddress, int deviceSubAddressWidth, int byteCnt) |
Read data from an I2C device. | |
void | I2CWrite (int deviceAddress, int deviceSubAddress, int deviceSubAddressWidth, byte[] data) |
Write data to a I2C device. | |
void | restoreDefault () |
Restores the default for every component of this collection. | |
Public Attributes | |
readonly PropertyS | I2CBuffer = new PropertyS() |
Defines the intermediate access buffer that allows the exchange of data between the I2C device and the application. | |
readonly PropertyI | I2CBufferLength = new PropertyI() |
An integer property controlling the length of the mapping between the I2C device and the mv.impact.acquire.I2CControl.I2CBuffer property. | |
readonly PropertyI | I2CDeviceAddress = new PropertyI() |
An integer property storing the address of the I2C device to communicate with. | |
readonly PropertyI | I2CDeviceSubAddress = new PropertyI() |
An integer property storing the sub-address of the I2C device to communicate with. | |
readonly PropertyI | I2CDeviceSubAddressWidth = new PropertyI() |
An enumerated integer property storing the sub-address width(in bits) of the I2C device to communicate with. | |
readonly Method | I2COperationExecute = new Method() |
Calling this function will execute the operation selected by mv.impact.acquire.I2CControl.I2COperationMode. | |
readonly EnumPropertyI< TI2COperationMode > | I2COperationMode = new EnumPropertyI<TI2COperationMode>() |
An enumerated integer property to select the I2C operation. | |
readonly EnumPropertyI< TI2COperationStatus > | I2COperationStatus = new EnumPropertyI<TI2COperationStatus>() |
Represents the I2C operation execution status. | |
Properties | |
IEnumerable< Component > | componentEnumerable [get] |
Returns an enumerator that iterates through the collection. | |
IEnumerable< ComponentList > | componentListEnumerable [get] |
Returns an enumerator that iterates through all the mv.impact.acquire.ComponentList elements in the collection. | |
int | hObj [get] |
Returns a unique identifier for the component collection referenced by this object. | |
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 | remark |
0x20-0x3F | - |
0x66-0x67 | - |
0x90-0x91 | mvBlueFOX-200w only |
0xA0-0xA3 | - |
0xA6-0xA7 | - |
0xBA-0xBB | mvBlueFOX-202a and mvBlueFOX-205 only |
Example
|
inline |
Constructs a new mv.impact.acquire.I2CControl object.
[in] | device | A pointer to a mv.impact.acquire.Device object obtained from a mv.impact.acquire.DeviceManager object. |
|
inlineinherited |
Returns an enumerator of a certain type that iterates through the collection.
This interface will allow to e.g. write code like this:
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
inlineinherited |
Returns an enumerator that iterates through the collection.
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
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 mv.impact.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 mv.impact.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.
Defines the intermediate access buffer that allows the exchange of data between the I2C device and the application.
This property can store binary data.
An integer property controlling the length of the mapping between the I2C device and the mv.impact.acquire.I2CControl.I2CBuffer property.
An integer property storing the address of the I2C device to communicate with.
An integer property storing the sub-address of the I2C device to communicate with.
When mv.impact.acquire.I2CControl.I2CDeviceSubAddressWidth is set to 0, this property will be ignored.
An enumerated integer property storing the sub-address width(in bits) of the I2C device to communicate with.
Valid values for this property are:
Calling this function will execute the operation selected by mv.impact.acquire.I2CControl.I2COperationMode.
readonly EnumPropertyI<TI2COperationMode> I2COperationMode = new EnumPropertyI<TI2COperationMode>() |
An enumerated integer property to select the I2C operation.
The selected operation is executed when mv.impact.acquire.I2CControl.I2COperationExecute is called.
Valid values for this property are defined by the enumeration mv.impact.acquire.TI2COperationMode.
readonly EnumPropertyI<TI2COperationStatus> I2COperationStatus = new EnumPropertyI<TI2COperationStatus>() |
Represents the I2C operation execution status.
Valid values for this property are defined by the enumeration mv.impact.acquire.TI2COperationStatus.
|
getinherited |
Returns an enumerator that iterates through the collection.
This interface will allow to e.g. write code like this:
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
getinherited |
Returns an enumerator that iterates through all the mv.impact.acquire.ComponentList elements in the collection.
This interface will allow to e.g. write code like this:
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
getinherited |
Returns a unique identifier for the component collection referenced by this object.
This handle will always reference an object of type mv.impact.acquire.ComponentList.