Skip to content

Commit

Permalink
ameba build error resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirsrin committed Jun 24, 2024
1 parent bf67d74 commit 2bfe217
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions examples/all-clusters-app/ameba/main/include/ColorControlCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -579,59 +579,59 @@ void ProcessColorControlGroupBindingCommand(BindingCommandData * data, const Emb
moveToHueCommand.hue = static_cast<uint8_t>(data->args[0]);
moveToHueCommand.direction = static_cast<DirectionEnum>(data->args[1]);
moveToHueCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
moveToHueCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
moveToHueCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
moveToHueCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
moveToHueCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveToHueCommand);
break;

case Clusters::ColorControl::Commands::MoveHue::Id:
moveHueCommand.moveMode = static_cast<MoveModeEnum>(data->args[0]);
moveHueCommand.rate = static_cast<uint8_t>(data->args[1]);
moveHueCommand.optionsMask = static_cast<uint8_t>(data->args[2]);
moveHueCommand.optionsOverride = static_cast<uint8_t>(data->args[3]);
moveHueCommand.optionsMask = static_cast<OptionsBitmap>(data->args[2]);
moveHueCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[3]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveHueCommand);
break;

case Clusters::ColorControl::Commands::StepHue::Id:
stepHueCommand.stepMode = static_cast<StepModeEnum>(data->args[0]);
stepHueCommand.stepSize = static_cast<uint8_t>(data->args[1]);
stepHueCommand.transitionTime = static_cast<uint8_t>(data->args[2]);
stepHueCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
stepHueCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
stepHueCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
stepHueCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, stepHueCommand);
break;

case Clusters::ColorControl::Commands::MoveToSaturation::Id:
moveToSaturationCommand.saturation = static_cast<uint8_t>(data->args[0]);
moveToSaturationCommand.transitionTime = static_cast<uint16_t>(data->args[1]);
moveToSaturationCommand.optionsMask = static_cast<uint8_t>(data->args[2]);
moveToSaturationCommand.optionsOverride = static_cast<uint8_t>(data->args[3]);
moveToSaturationCommand.optionsMask = static_cast<OptionsBitmap>(data->args[2]);
moveToSaturationCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[3]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveToSaturationCommand);
break;

case Clusters::ColorControl::Commands::MoveSaturation::Id:
moveSaturationCommand.moveMode = static_cast<MoveModeEnum>(data->args[0]);
moveSaturationCommand.rate = static_cast<uint8_t>(data->args[1]);
moveSaturationCommand.optionsMask = static_cast<uint8_t>(data->args[2]);
moveSaturationCommand.optionsOverride = static_cast<uint8_t>(data->args[3]);
moveSaturationCommand.optionsMask = static_cast<OptionsBitmap>(data->args[2]);
moveSaturationCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[3]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveSaturationCommand);
break;

case Clusters::ColorControl::Commands::StepSaturation::Id:
stepSaturationCommand.stepMode = static_cast<StepModeEnum>(data->args[0]);
stepSaturationCommand.stepSize = static_cast<uint8_t>(data->args[1]);
stepSaturationCommand.transitionTime = static_cast<uint8_t>(data->args[2]);
stepSaturationCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
stepSaturationCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
stepSaturationCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
stepSaturationCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, stepSaturationCommand);
break;

case Clusters::ColorControl::Commands::MoveToHueAndSaturation::Id:
moveToHueAndSaturationCommand.hue = static_cast<uint8_t>(data->args[0]);
moveToHueAndSaturationCommand.saturation = static_cast<uint8_t>(data->args[1]);
moveToHueAndSaturationCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
moveToHueAndSaturationCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
moveToHueAndSaturationCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
moveToHueAndSaturationCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
moveToHueAndSaturationCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveToHueAndSaturationCommand);
break;

Expand All @@ -647,60 +647,60 @@ void ProcessColorControlGroupBindingCommand(BindingCommandData * data, const Emb
case Clusters::ColorControl::Commands::MoveColor::Id:
moveColorCommand.rateX = static_cast<uint16_t>(data->args[0]);
moveColorCommand.rateY = static_cast<uint16_t>(data->args[1]);
moveColorCommand.optionsMask = static_cast<uint8_t>(data->args[2]);
moveColorCommand.optionsOverride = static_cast<uint8_t>(data->args[3]);
moveColorCommand.optionsMask = static_cast<OptionsBitmap>(data->args[2]);
moveColorCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[3]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveColorCommand);
break;

case Clusters::ColorControl::Commands::StepColor::Id:
stepColorCommand.stepX = static_cast<uint16_t>(data->args[0]);
stepColorCommand.stepY = static_cast<uint16_t>(data->args[1]);
stepColorCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
stepColorCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
stepColorCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
stepColorCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
stepColorCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, stepColorCommand);
break;

case Clusters::ColorControl::Commands::MoveToColorTemperature::Id:
moveToColorTemperatureCommand.colorTemperatureMireds = static_cast<uint16_t>(data->args[0]);
moveToColorTemperatureCommand.transitionTime = static_cast<uint16_t>(data->args[1]);
moveToColorTemperatureCommand.optionsMask = static_cast<uint8_t>(data->args[2]);
moveToColorTemperatureCommand.optionsOverride = static_cast<uint8_t>(data->args[3]);
moveToColorTemperatureCommand.optionsMask = static_cast<OptionsBitmap>(data->args[2]);
moveToColorTemperatureCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[3]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveToColorTemperatureCommand);
break;

case Clusters::ColorControl::Commands::EnhancedMoveToHue::Id:
enhancedMoveToHueCommand.enhancedHue = static_cast<uint16_t>(data->args[0]);
enhancedMoveToHueCommand.direction = static_cast<DirectionEnum>(data->args[1]);
enhancedMoveToHueCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
enhancedMoveToHueCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
enhancedMoveToHueCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
enhancedMoveToHueCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
enhancedMoveToHueCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, enhancedMoveToHueCommand);
break;

case Clusters::ColorControl::Commands::EnhancedMoveHue::Id:
enhancedMoveHueCommand.moveMode = static_cast<MoveModeEnum>(data->args[0]);
enhancedMoveHueCommand.rate = static_cast<uint16_t>(data->args[1]);
enhancedMoveHueCommand.optionsMask = static_cast<uint8_t>(data->args[2]);
enhancedMoveHueCommand.optionsOverride = static_cast<uint8_t>(data->args[3]);
enhancedMoveHueCommand.optionsMask = static_cast<OptionsBitmap>(data->args[2]);
enhancedMoveHueCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[3]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, enhancedMoveHueCommand);
break;

case Clusters::ColorControl::Commands::EnhancedStepHue::Id:
enhancedStepHueCommand.stepMode = static_cast<StepModeEnum>(data->args[0]);
enhancedStepHueCommand.stepSize = static_cast<uint16_t>(data->args[1]);
enhancedStepHueCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
enhancedStepHueCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
enhancedStepHueCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
enhancedStepHueCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
enhancedStepHueCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, enhancedStepHueCommand);
break;

case Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Id:
enhancedMoveToHueAndSaturationCommand.enhancedHue = static_cast<uint16_t>(data->args[0]);
enhancedMoveToHueAndSaturationCommand.saturation = static_cast<uint8_t>(data->args[1]);
enhancedMoveToHueAndSaturationCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
enhancedMoveToHueAndSaturationCommand.optionsMask = static_cast<uint8_t>(data->args[3]);
enhancedMoveToHueAndSaturationCommand.optionsOverride = static_cast<uint8_t>(data->args[4]);
enhancedMoveToHueAndSaturationCommand.optionsMask = static_cast<OptionsBitmap>(data->args[3]);
enhancedMoveToHueAndSaturationCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[4]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId,
enhancedMoveToHueAndSaturationCommand);
break;
Expand All @@ -712,14 +712,14 @@ void ProcessColorControlGroupBindingCommand(BindingCommandData * data, const Emb
colorLoopSetCommand.direction = static_cast<ColorLoopDirectionEnum>(data->args[2]);
colorLoopSetCommand.time = static_cast<uint16_t>(data->args[3]);
colorLoopSetCommand.startHue = static_cast<uint16_t>(data->args[4]);
colorLoopSetCommand.optionsMask = static_cast<uint8_t>(data->args[5]);
colorLoopSetCommand.optionsOverride = static_cast<uint8_t>(data->args[6]);
colorLoopSetCommand.optionsMask = static_cast<OptionsBitmap>(data->args[5]);
colorLoopSetCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[6]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, colorLoopSetCommand);
break;

case Clusters::ColorControl::Commands::StopMoveStep::Id:
stopMoveStepCommand.optionsMask = static_cast<uint8_t>(data->args[0]);
stopMoveStepCommand.optionsOverride = static_cast<uint8_t>(data->args[1]);
stopMoveStepCommand.optionsMask = static_cast<OptionsBitmap>(data->args[0]);
stopMoveStepCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[1]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, stopMoveStepCommand);
break;

Expand All @@ -728,8 +728,8 @@ void ProcessColorControlGroupBindingCommand(BindingCommandData * data, const Emb
moveColorTemperatureCommand.rate = static_cast<uint16_t>(data->args[1]);
moveColorTemperatureCommand.colorTemperatureMinimumMireds = static_cast<uint16_t>(data->args[2]);
moveColorTemperatureCommand.colorTemperatureMaximumMireds = static_cast<uint16_t>(data->args[3]);
moveColorTemperatureCommand.optionsMask = static_cast<uint8_t>(data->args[4]);
moveColorTemperatureCommand.optionsOverride = static_cast<uint8_t>(data->args[5]);
moveColorTemperatureCommand.optionsMask = static_cast<OptionsBitmap>(data->args[4]);
moveColorTemperatureCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[5]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, moveColorTemperatureCommand);
break;

Expand All @@ -739,8 +739,8 @@ void ProcessColorControlGroupBindingCommand(BindingCommandData * data, const Emb
stepColorTemperatureCommand.transitionTime = static_cast<uint16_t>(data->args[2]);
stepColorTemperatureCommand.colorTemperatureMinimumMireds = static_cast<uint16_t>(data->args[3]);
stepColorTemperatureCommand.colorTemperatureMaximumMireds = static_cast<uint16_t>(data->args[4]);
stepColorTemperatureCommand.optionsMask = static_cast<uint8_t>(data->args[5]);
stepColorTemperatureCommand.optionsOverride = static_cast<uint8_t>(data->args[6]);
stepColorTemperatureCommand.optionsMask = static_cast<OptionsBitmap>(data->args[5]);
stepColorTemperatureCommand.optionsOverride = static_cast<OptionsBitmap>(data->args[6]);
Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, stepColorTemperatureCommand);
break;
}
Expand Down

0 comments on commit 2bfe217

Please sign in to comment.