Impact Acquire SDK Python
|
Properties for accessing features belonging to the I2C control(Device specific interface layout only). More...
Public Member Functions | |
__init__ (self, pDev) | |
I2CRead (self, deviceAddress, deviceSubAddress, deviceSubAddressWidth, byteCnt) | |
Read data from an I2C device. | |
I2CWrite (self, deviceAddress, deviceSubAddress, deviceSubAddressWidth, data) | |
Write data to a I2C device. | |
Properties | |
I2CBuffer = property(lib_mvIMPACT_acquire.I2CControl_I2CBuffer_get, doc=) | |
Defines the intermediate access buffer that allows the exchange of data between the I2C device and the application. | |
I2CBufferLength = property(lib_mvIMPACT_acquire.I2CControl_I2CBufferLength_get, doc=) | |
An integer property controlling the length of the mapping between the I2C device and the mvIMPACT.acquire.I2CControl.I2CBuffer property. | |
I2CDeviceAddress = property(lib_mvIMPACT_acquire.I2CControl_I2CDeviceAddress_get, doc=) | |
An integer property storing the address of the I2C device to communicate with. | |
I2CDeviceSubAddress = property(lib_mvIMPACT_acquire.I2CControl_I2CDeviceSubAddress_get, doc=) | |
An integer property storing the sub-address of the I2C device to communicate with. | |
I2CDeviceSubAddressWidth = property(lib_mvIMPACT_acquire.I2CControl_I2CDeviceSubAddressWidth_get, doc=) | |
An enumerated integer property storing the sub-address width(in bits) of the I2C device to communicate with. | |
I2COperationExecute = property(lib_mvIMPACT_acquire.I2CControl_I2COperationExecute_get, doc=) | |
Calling this function will execute the operation selected by mvIMPACT.acquire.I2CControl.I2COperationMode. | |
I2COperationMode = property(lib_mvIMPACT_acquire.I2CControl_I2COperationMode_get, doc=) | |
An enumerated integer property to select the I2C operation. | |
I2COperationStatus = property(lib_mvIMPACT_acquire.I2CControl_I2COperationStatus_get, doc=) | |
Represents the I2C operation execution status. | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
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 |
__init__ | ( | self, | |
pDev ) |
Reimplemented from ComponentCollection.
I2CRead | ( | self, | |
deviceAddress, | |||
deviceSubAddress, | |||
deviceSubAddressWidth, | |||
byteCnt ) |
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.
deviceAddress | [in] The address of the I2C device to communicate with. |
deviceSubAddress | [in] The sub-address of the I2C device to communicate with. |
deviceSubAddressWidth | [in] The sub-address width(in bits) of the I2C device to communicate with. |
byteCnt | [in] The amount of bytes to read. |
I2CWrite | ( | self, | |
deviceAddress, | |||
deviceSubAddress, | |||
deviceSubAddressWidth, | |||
data ) |
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.
deviceAddress | [in] The address of the I2C device to communicate with. |
deviceSubAddress | [in] The sub-address of the I2C device to communicate with. |
deviceSubAddressWidth | [in] The sub-address width(in bits) of the I2C device to communicate with. |
data | [in] The data to write to the I2C device. |
|
static |
Defines the intermediate access buffer that allows the exchange of data between the I2C device and the application.
This property can store binary data.
|
static |
An integer property controlling the length of the mapping between the I2C device and the mvIMPACT.acquire.I2CControl.I2CBuffer property.
|
static |
An integer property storing the address of the I2C device to communicate with.
|
static |
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.
|
static |
An enumerated integer property storing the sub-address width(in bits) of the I2C device to communicate with.
Valid values for this property are:
|
static |
Calling this function will execute the operation selected by mvIMPACT.acquire.I2CControl.I2COperationMode.
|
static |
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 may be: mvIMPACT.acquire.I2ComRead, mvIMPACT.acquire.I2ComWrite.
|
static |
Represents the I2C operation execution status.
Valid values for this property may be: mvIMPACT.acquire.I2CosSuccess, mvIMPACT.acquire.I2CosFailure, mvIMPACT.acquire.I2CosInvalidDeviceAddress, mvIMPACT.acquire.I2CosInvalidDeviceSubAddress, mvIMPACT.acquire.I2CosTooMuchData, mvIMPACT.acquire.I2CosNotEnoughData.
|
static |