def write_reg_item(bitfield):
    """Write a single reg item description.
    Like this
    \regitem{Bit 15-0}{MF}{R}{Current DCO multiplication factor value bitfield}
    """
    size = bitfield['Size']
    position = bitfield['Bit Position']
    bitrange = "RANGE ERROR"
    if size == 1:
        bitrange = "Bit %d" % position
    else:
        bitrange = "Bit %d - %d" % (position + size - 1, position)

    name = bitfield['Bit field']
    access = bitfield['Host Access Type']
    description = bitfield['Description']
    return ("\\regitem{%s}{%s}{%s}{%s}" %
            (bitrange, name, access, description))