@staticmethod
def _configure_status_register(mask_register):
    """Translates from a named array to an integer representation value"""
    if isinstance(mask_register, int):
        return mask_register
    integer_representation = 0
    for count, bit_name in enumerate(mask_register.bit_names):
        if bit_name:
            integer_representation += int(getattr(mask_register, bit_name)
                ) << count
    return integer_representation
