Class I2CFlags


  • public class I2CFlags
    extends Object
    Class holding flags for describing an I2C message.
    See Also:
    I2CMessage
    • Constructor Detail

      • I2CFlags

        public I2CFlags()
        Basic constructor.
    • Method Detail

      • isSet

        public boolean isSet​(I2CFlag flag)
        Is this flag set ?
        Parameters:
        flag - Tested flag.
        Returns:
        True if the flag is set.
      • set

        public I2CFlags set​(I2CFlag flag)
        Sets this flag.
        Parameters:
        flag - Flag to be set.
        Returns:
        This instance.
      • unset

        public I2CFlags unset​(I2CFlag flag)
        Unsets this flags.
        Parameters:
        flag - Flag to be unset.
        Returns:
        This instance.
      • clear

        public I2CFlags clear()
        Unsets all flags.
        Returns:
        This instance.
      • equals

        public boolean equals​(I2CFlags flags)
        Are those two sets of flags equal ?
        Parameters:
        flags - Another set of flags.
        Returns:
        True of equal.