@staticmethod
def _get_data_format_size(data_format):
    """
        ### get_data_format() ###

        Getter for frame data format.

        **Params:**

        * ``data_format`` **(bytes)** - Data format in data frames. Should be 16-bit flag.

        **Returns:**

        * ``dict`` with PHASOR, ANALOG, and FREQ measurement size in bytes.
        ``{'phasor' : phasors_byte_size, 'analog' : analog_byte_size, 'freq' : freq_byte_size}``

        """
    if data_format & 2 != 0:
        phasors_byte_size = 8
    else:
        phasors_byte_size = 4
    if data_format & 4 != 0:
        analog_byte_size = 4
    else:
        analog_byte_size = 2
    if data_format & 8 != 0:
        freq_byte_size = 4
    else:
        freq_byte_size = 2
    return {'phasor': phasors_byte_size, 'analog': analog_byte_size, 'freq':
        freq_byte_size}
