Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Constructing a Request for Obtaining the Temperature of a Standard Card
STD_SMBUS_REQ req = {0}; //Send a request packet. req.lun = 0x80; req.arg = (unsigned char)item_type; req.opcode = (unsigned short)opcode; req.offset = (unsigned int)offset; req.length = (unsigned int)lenth; i2c_smbus_write_block(dev_name, MCU_SLAVE_ADDR, SEND_REQUEST, DMP_MSG_HEAD_LENGTH + req_data_len, (const unsigned char*)&req);