def METHOD_NAME(self):
    """ad5940 channel raw value."""
    METHOD_NAME = self._get_iio_attr(self.name, "raw", False)
    impedance_mode = self._parent.impedance_mode
    magnitude_mode = self._parent.magnitude_mode
    if impedance_mode:
        if magnitude_mode:
            return struct.unpack(
                ">f", int(METHOD_NAME).to_bytes(4, byteorder="big", signed=True)
            )[0]
        else:
            return complex(
                struct.unpack(
                    ">f", int(METHOD_NAME[0]).to_bytes(4, byteorder="big", signed=True)
                )[0],
                struct.unpack(
                    ">f", int(METHOD_NAME[1]).to_bytes(4, byteorder="big", signed=True)
                )[0],
            )
    else:
        if magnitude_mode:
            return struct.unpack(
                ">f", int(METHOD_NAME).to_bytes(4, byteorder="big", signed=True)
            )[0]
        else:
            return complex(int(METHOD_NAME[0]), int(METHOD_NAME[1]))