Package com.reduxrobotics.canand
Class CanandDeviceDetails.Bitsets
java.lang.Object
com.reduxrobotics.canand.CanandDeviceDetails.Bitsets
- Enclosing class:
- CanandDeviceDetails
Cananddevice bitsets.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
setting_report_flags - Whether the setting synch commit was successfulstatic final int
setting_report_flags - Whether the setting set was successful -
Method Summary
Modifier and TypeMethodDescriptionstatic int
constructSettingReportFlags
(boolean setSuccess, boolean commitSuccess) Constructs a setting_report_flags bitset.static boolean
extractSettingReportFlags_CommitSuccess
(int field) Extracts commit_success from setting_report_flags.static boolean
extractSettingReportFlags_SetSuccess
(int field) Extracts set_success from setting_report_flags.
-
Field Details
-
kSettingReportFlags_SetSuccess
public static final int kSettingReportFlags_SetSuccesssetting_report_flags - Whether the setting set was successful- See Also:
-
kSettingReportFlags_CommitSuccess
public static final int kSettingReportFlags_CommitSuccesssetting_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 successfulcommitSuccess
- 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
-