def read_byte_data(self, addr, cmd):
assert self._device is not None, '<STR_LIT>'<EOL>reg = c_uint8(cmd)<EOL>result = c_uint8()<EOL>request = make_i2c_rdwr_data([<EOL>(addr, <NUM_LIT:0>, <NUM_LIT:1>, pointer(reg)),             <EOL>(addr, I2C_M_RD, <NUM_LIT:1>, pointer(result))    <EOL>])<EOL>ioctl(self._device.fileno(), I2C_RDWR, request)<EOL>return result.value<EOL>
Read a single byte from the specified cmd register of the device.