Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial codegen support for Cluster object #9971

Merged

Conversation

yunhanw-google
Copy link
Contributor

Problem

Fix #8895

Change overview

Add initial codegen support for Cluster object

Testing

The existing unit test covers this.

@mrjerryjohns
Copy link
Contributor

Need to add the BUILD.gn for the cluster-objects library as a dependency to all the existing sample apps.

@yunhanw-google
Copy link
Contributor Author

Need to add the BUILD.gn for the cluster-objects library as a dependency to all the existing sample apps.
just add "${chip_root}/src/app/common:cluster-objects" as dependacy for chip_data_model.gni, all example code has this now.
thanks

@woody-apple woody-apple merged commit d2403a0 into project-chip:master Sep 28, 2021
namespace clusters {

namespace AccountLogin {
constexpr ClusterId kClusterId = 0x50E;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This here is a duplication of information? zzz_generated/app-common/app-common/zap-generated/ids/Clusters.h contains this information. Wouldn't it be better to reference this?

Comment on lines +50 to +56
enum class ApplicationBasicStatus : uint8_t
{
APPLICATION_BASIC_STATUS_STOPPED = 0x00,
APPLICATION_BASIC_STATUS_ACTIVE_VISIBLE_FOCUS = 0x01,
APPLICATION_BASIC_STATUS_ACTIVE_HIDDEN = 0x02,
APPLICATION_BASIC_STATUS_ACTIVE_VISIBLE_NOT_FOCUS = 0x03,
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This here is a dupplicate of zzz_generated/app-common/app-common/zap-generated/enums.h -> EmberAfApplicationBasicStatus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CG1: Update ZAP codegen to generate cluster object definitions
5 participants