def encodedBitDescription(self, bitOffset, formatted=False):
<EOL>(prevFieldName, prevFieldOffset) = (None, None)<EOL>description = self.getDescription()<EOL>for i in range(len(description)):<EOL><INDENT>(name, offset) = description[i]<EOL>if formatted:<EOL><INDENT>offset = offset + i<EOL>if bitOffset == offset-<NUM_LIT:1>:<EOL><INDENT>prevFieldName = "<STR_LIT>"<EOL>prevFieldOffset = bitOffset<EOL>break<EOL><DEDENT><DEDENT>if bitOffset < offset:<EOL><INDENT>break<EOL><DEDENT>(prevFieldName, prevFieldOffset) = (name, offset)<EOL><DEDENT>width = self.getDisplayWidth() if formatted else self.getWidth()<EOL>if prevFieldOffset is None or bitOffset > self.getWidth():<EOL><INDENT>raise IndexError("<STR_LIT>" % width)<EOL><DEDENT>return (prevFieldName, bitOffset - prevFieldOffset)<EOL>
Return a description of the given bit in the encoded output.
This will include the field name and the offset within the field.

:param bitOffset:      Offset of the bit to get the description of
:param formatted:      If True, the bitOffset is w.r.t. formatted output,
                      which includes separators
:return:             tuple(``fieldName``, ``offsetWithinField``)