I2CPreamble Properties |
The I2CPreamble type exposes the following members.
Name | Description | |
---|---|---|
![]() | DeviceAddress |
This is the 7-bit slave address for the device to access on the I2C bus.
The address value must be left justified, with a zero in the least significant
bit. The address bits (starting at DeviceAddress bit 7) are the first data transmitted
by the FX3 when starting an I2C transaction. A R/W bit (generated by the firmware)
follows the seven device address bits to complete the first byte.
|
![]() | StartMask |
This field controls the start condition sent after every byte of preamble
data. The device address is the first byte of data, following by up to
seven additional bytes in PreAmbleData. For example, setting StartMask to
0x04 will cause a start condition to be generated after sending PreambleData[1], while
setting StartMask to 0x08 will cause a start condition to be generated after
sending PreambleData[2], and so on. Note, setting a bit in StartMask will cause
the corresponding bit in StopMask to be cleared, if it is also set.
|
![]() | StopMask |
This field controls the stop condition sent after every byte of preamble
data. The device address is the first byte of data, following by up to
seven additional bytes in PreAmbleData. For example, setting StopMask to
0x01 will cause a stop condition to be generated after sending DeviceAddress, while
setting StopMask to 0x02 will cause a stop condition to be generated after
sending PreambleData[0], and so on. Note, setting a bit in StopMask will cause
the corresponding bit in StartMask to be cleared, if it is also set.
|