/* This internal API is used to identify the settings which the user wants to modify in the sensor.  */
static uint8_t are_settings_changed(uint8_t sub_settings, uint8_t desired_settings)
/* This internal API is used to identify the settings which the user wants to modify in the sensor.  */
static uint8_t are_settings_changed(uint8_t sub_settings, uint8_t desired_settings)
{
    uint8_t settings_changed = FALSE;
    if (sub_settings & desired_settings)
    {
        settings_changed = TRUE;
    }
    else
    {
        settings_changed = FALSE;
    }
    return settings_changed;
}