@staticmethod
def _format2int(phasor_polar=False, phasor_float=False, analogs_float=False,
    freq_float=False):
    """
        ### format2int() ###

        Convert ``boolean`` representation of data format to integer.

        **Params:**

        * ``phasor_polar`` **(bool)** - If ``True`` phasor represented using magnitude and angle (polar)
        else rectangular.
        * ``phasor_float`` **(bool)** - If ``True`` phasor represented using floating point format else
        represented as 16 bit integer.
        * ``analogs_float`` **(bool)** - If ``True`` analog values represented using floating point notation
        else represented as 16 bit integer.
        * ``freq_float`` **(bool)** - If ``True`` FREQ/DFREQ represented using floating point notation
        else represented as 16 bit integer.

        **Returns:**

        * ``int`` representation of data format.

        """
    data_format = 1 << 1
    if freq_float:
        data_format |= 1
    data_format <<= 1
    if analogs_float:
        data_format |= 1
    data_format <<= 1
    if phasor_float:
        data_format |= 1
    data_format <<= 1
    if phasor_polar:
        data_format |= 1
    mask = 1 << 4
    data_format ^= mask
    return data_format
