Class CanandDeviceDetails.Bitsets

java.lang.Object
com.reduxrobotics.canand.CanandDeviceDetails.Bitsets
Enclosing class:
CanandDeviceDetails

public static class CanandDeviceDetails.Bitsets extends Object
Cananddevice bitsets.
  • Field Details

    • kSettingReportFlags_SetSuccess

      public static final int kSettingReportFlags_SetSuccess
      setting_report_flags - Whether the setting set was successful
      See Also:
    • kSettingReportFlags_CommitSuccess

      public static final int kSettingReportFlags_CommitSuccess
      setting_report_flags - Whether the setting synch commit was successful
      See Also:
  • Method Details

    • constructSettingReportFlags

      public static int constructSettingReportFlags(boolean setSuccess, boolean commitSuccess)
      Constructs a setting_report_flags bitset.
      Parameters:
      setSuccess - Whether the setting set was successful
      commitSuccess - Whether the setting synch commit was successful
      Returns:
      bitset data as int
    • extractSettingReportFlags_SetSuccess

      public static boolean extractSettingReportFlags_SetSuccess(int field)
      Extracts set_success from setting_report_flags.
      Parameters:
      field - data bitfield
      Returns:
      true if set, false if not
    • extractSettingReportFlags_CommitSuccess

      public static boolean extractSettingReportFlags_CommitSuccess(int field)
      Extracts commit_success from setting_report_flags.
      Parameters:
      field - data bitfield
      Returns:
      true if set, false if not