self | The UNICENS instance pointer |
node_address | Address of the target device. Use the UCS_ADDR_LOCAL_NODE macro to target the local device.
The following address ranges are supported:
- [0x10 ... 0x2FF]
- [0x500 ... 0xFEF]
- UCS_ADDR_LOCAL_NODE
|
port_handle | Port resource handle.
|
mode | The write transfer mode.
|
block_count | The number of blocks to be written to the I2C address. If parameter mode is not set to Burst Mode, the value of block_count has to be set to 0. Otherwise the valid range of this parameter goes from 1 to 30.
|
slave_address | The 7-bit I2C slave address of the peripheral to be read.
|
timeout | The timeout for the I2C Port write.
|
data_len | The total number of bytes to be written to the addressed I2C peripheral. Even if parameter mode is set to Burst Mode, the data_len shall correspond to the whole size of the burst transfer. That is, the data_len shall equal the size of a block times the block_count value. The maximum length of data is limited to 32 bytes. |
data_ptr | Reference to the data to be written. |
result_fptr | Required result callback function pointer. |