def get_indexed_string(self, idx):
self._check_device_status()<EOL>bufp = ffi.new("<STR_LIT>")<EOL>rv = hidapi.hid_get_indexed_string(self._device, idx, bufp, <NUM_LIT>)<EOL>if rv == -<NUM_LIT:1>:<EOL><INDENT>raise IOError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(idx, self._get_last_error_string()))<EOL><DEDENT>return ffi.buffer(bufp, <NUM_LIT>)[:].strip()<EOL>
Get a string from the device, based on its string index.

        :param idx: The index of the string to get
        :type idx:  int
        :return:    The string at the index
        :rtype:     unicode