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

Clusters sync gen folders #4115

Merged
merged 1 commit into from
Dec 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions examples/all-clusters-app/all-clusters-common/gen/af-structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef struct _DebtPayload
// Struct for DeviceInformationRecord
typedef struct _DeviceInformationRecord
{
uint8_t * ieeeAddress;
uint64_t ieeeAddress;
chip::EndpointId endpointId;
uint16_t profileId;
uint16_t deviceId;
Expand All @@ -113,10 +113,9 @@ typedef struct _EndpointInformationRecord
uint8_t version;
} EmberAfEndpointInformationRecord;

// Struct for EphemeralData
typedef struct _EphemeralData
{
} EmberAfEphemeralData;
// Void typedef for EmberAfEphemeralData which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfEphemeralData;

// Struct for EventConfigurationPayload
typedef struct _EventConfigurationPayload
Expand Down Expand Up @@ -176,15 +175,14 @@ typedef struct _IasAceZoneStatusResult
uint16_t zoneStatus;
} EmberAfIasAceZoneStatusResult;

// Struct for Identity
typedef struct _Identity
{
} EmberAfIdentity;
// Void typedef for EmberAfIdentity which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfIdentity;

// Struct for NeighborInfo
typedef struct _NeighborInfo
{
uint8_t * neighbor;
uint64_t neighbor;
int16_t x;
int16_t y;
int16_t z;
Expand Down Expand Up @@ -333,15 +331,13 @@ typedef struct _SeasonEntry
uint8_t weekIdRef;
} EmberAfSeasonEntry;

// Struct for Signature
typedef struct _Signature
{
} EmberAfSignature;
// Void typedef for EmberAfSignature which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfSignature;

// Struct for Smac
typedef struct _Smac
{
} EmberAfSmac;
// Void typedef for EmberAfSmac which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfSmac;

// Struct for SnapshotResponsePayload
typedef struct _SnapshotResponsePayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@ EmberAfStatus emberAfClusterSpecificCommandParse(EmberAfClusterCommand * cmd)
switch (cmd->apsFrame->clusterId)
{
case ZCL_BARRIER_CONTROL_CLUSTER_ID:
result = emberAfBarrierControlClusterClientCommandParse(cmd);
// No commands are enabled for cluster Barrier Control
result = status(false, true, cmd->mfgSpecific);
break;
case ZCL_BASIC_CLUSTER_ID:
result = emberAfBasicClusterClientCommandParse(cmd);
// No commands are enabled for cluster Basic
result = status(false, true, cmd->mfgSpecific);
break;
case ZCL_COLOR_CONTROL_CLUSTER_ID:
result = emberAfColorControlClusterClientCommandParse(cmd);
// No commands are enabled for cluster Color Control
result = status(false, true, cmd->mfgSpecific);
break;
case ZCL_DOOR_LOCK_CLUSTER_ID:
result = emberAfDoorLockClusterClientCommandParse(cmd);
Expand All @@ -95,10 +98,12 @@ EmberAfStatus emberAfClusterSpecificCommandParse(EmberAfClusterCommand * cmd)
result = emberAfIdentifyClusterClientCommandParse(cmd);
break;
case ZCL_LEVEL_CONTROL_CLUSTER_ID:
result = emberAfLevelControlClusterClientCommandParse(cmd);
// No commands are enabled for cluster Level Control
result = status(false, true, cmd->mfgSpecific);
break;
case ZCL_ON_OFF_CLUSTER_ID:
result = emberAfOnOffClusterClientCommandParse(cmd);
// No commands are enabled for cluster On/off
result = status(false, true, cmd->mfgSpecific);
break;
case ZCL_SCENES_CLUSTER_ID:
result = emberAfScenesClusterClientCommandParse(cmd);
Expand Down Expand Up @@ -144,7 +149,8 @@ EmberAfStatus emberAfClusterSpecificCommandParse(EmberAfClusterCommand * cmd)
result = emberAfScenesClusterServerCommandParse(cmd);
break;
case ZCL_TEMP_MEASUREMENT_CLUSTER_ID:
result = emberAfTemperatureMeasurementClusterServerCommandParse(cmd);
// No commands are enabled for cluster Temperature Measurement
result = status(false, true, cmd->mfgSpecific);
break;
default:
// Unrecognized cluster ID, error status will apply.
Expand All @@ -156,22 +162,6 @@ EmberAfStatus emberAfClusterSpecificCommandParse(EmberAfClusterCommand * cmd)

// Cluster specific command parsing

EmberAfStatus emberAfBarrierControlClusterClientCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;

if (!cmd->mfgSpecific)
{
switch (cmd->commandId)
{
default: {
// Unrecognized command ID, error status will apply.
break;
}
}
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfBarrierControlClusterServerCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;
Expand Down Expand Up @@ -205,22 +195,6 @@ EmberAfStatus emberAfBarrierControlClusterServerCommandParse(EmberAfClusterComma
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfBasicClusterClientCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;

if (!cmd->mfgSpecific)
{
switch (cmd->commandId)
{
default: {
// Unrecognized command ID, error status will apply.
break;
}
}
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfBasicClusterServerCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;
Expand All @@ -241,22 +215,6 @@ EmberAfStatus emberAfBasicClusterServerCommandParse(EmberAfClusterCommand * cmd)
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfColorControlClusterClientCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;

if (!cmd->mfgSpecific)
{
switch (cmd->commandId)
{
default: {
// Unrecognized command ID, error status will apply.
break;
}
}
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfColorControlClusterServerCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;
Expand Down Expand Up @@ -1635,22 +1593,6 @@ EmberAfStatus emberAfIdentifyClusterServerCommandParse(EmberAfClusterCommand * c
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfLevelControlClusterClientCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;

if (!cmd->mfgSpecific)
{
switch (cmd->commandId)
{
default: {
// Unrecognized command ID, error status will apply.
break;
}
}
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfLevelControlClusterServerCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;
Expand Down Expand Up @@ -1867,22 +1809,6 @@ EmberAfStatus emberAfLevelControlClusterServerCommandParse(EmberAfClusterCommand
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfOnOffClusterClientCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;

if (!cmd->mfgSpecific)
{
switch (cmd->commandId)
{
default: {
// Unrecognized command ID, error status will apply.
break;
}
}
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfOnOffClusterServerCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;
Expand Down Expand Up @@ -2311,19 +2237,3 @@ EmberAfStatus emberAfScenesClusterServerCommandParse(EmberAfClusterCommand * cmd
}
return status(wasHandled, true, cmd->mfgSpecific);
}
EmberAfStatus emberAfTemperatureMeasurementClusterServerCommandParse(EmberAfClusterCommand * cmd)
{
bool wasHandled = false;

if (!cmd->mfgSpecific)
{
switch (cmd->commandId)
{
default: {
// Unrecognized command ID, error status will apply.
break;
}
}
}
return status(wasHandled, true, cmd->mfgSpecific);
}
32 changes: 14 additions & 18 deletions examples/lighting-app/lighting-common/gen/af-structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef struct _DebtPayload
// Struct for DeviceInformationRecord
typedef struct _DeviceInformationRecord
{
uint8_t * ieeeAddress;
uint64_t ieeeAddress;
chip::EndpointId endpointId;
uint16_t profileId;
uint16_t deviceId;
Expand All @@ -113,10 +113,9 @@ typedef struct _EndpointInformationRecord
uint8_t version;
} EmberAfEndpointInformationRecord;

// Struct for EphemeralData
typedef struct _EphemeralData
{
} EmberAfEphemeralData;
// Void typedef for EmberAfEphemeralData which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfEphemeralData;

// Struct for EventConfigurationPayload
typedef struct _EventConfigurationPayload
Expand Down Expand Up @@ -176,15 +175,14 @@ typedef struct _IasAceZoneStatusResult
uint16_t zoneStatus;
} EmberAfIasAceZoneStatusResult;

// Struct for Identity
typedef struct _Identity
{
} EmberAfIdentity;
// Void typedef for EmberAfIdentity which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfIdentity;

// Struct for NeighborInfo
typedef struct _NeighborInfo
{
uint8_t * neighbor;
uint64_t neighbor;
int16_t x;
int16_t y;
int16_t z;
Expand Down Expand Up @@ -333,15 +331,13 @@ typedef struct _SeasonEntry
uint8_t weekIdRef;
} EmberAfSeasonEntry;

// Struct for Signature
typedef struct _Signature
{
} EmberAfSignature;
// Void typedef for EmberAfSignature which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfSignature;

// Struct for Smac
typedef struct _Smac
{
} EmberAfSmac;
// Void typedef for EmberAfSmac which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfSmac;

// Struct for SnapshotResponsePayload
typedef struct _SnapshotResponsePayload
Expand Down
32 changes: 14 additions & 18 deletions examples/lock-app/lock-common/gen/af-structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef struct _DebtPayload
// Struct for DeviceInformationRecord
typedef struct _DeviceInformationRecord
{
uint8_t * ieeeAddress;
uint64_t ieeeAddress;
chip::EndpointId endpointId;
uint16_t profileId;
uint16_t deviceId;
Expand All @@ -113,10 +113,9 @@ typedef struct _EndpointInformationRecord
uint8_t version;
} EmberAfEndpointInformationRecord;

// Struct for EphemeralData
typedef struct _EphemeralData
{
} EmberAfEphemeralData;
// Void typedef for EmberAfEphemeralData which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfEphemeralData;

// Struct for EventConfigurationPayload
typedef struct _EventConfigurationPayload
Expand Down Expand Up @@ -176,15 +175,14 @@ typedef struct _IasAceZoneStatusResult
uint16_t zoneStatus;
} EmberAfIasAceZoneStatusResult;

// Struct for Identity
typedef struct _Identity
{
} EmberAfIdentity;
// Void typedef for EmberAfIdentity which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfIdentity;

// Struct for NeighborInfo
typedef struct _NeighborInfo
{
uint8_t * neighbor;
uint64_t neighbor;
int16_t x;
int16_t y;
int16_t z;
Expand Down Expand Up @@ -333,15 +331,13 @@ typedef struct _SeasonEntry
uint8_t weekIdRef;
} EmberAfSeasonEntry;

// Struct for Signature
typedef struct _Signature
{
} EmberAfSignature;
// Void typedef for EmberAfSignature which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfSignature;

// Struct for Smac
typedef struct _Smac
{
} EmberAfSmac;
// Void typedef for EmberAfSmac which is empty.
// this will result in all the references to the data being as uint8_t*
typedef uint8_t EmberAfSmac;

// Struct for SnapshotResponsePayload
typedef struct _SnapshotResponsePayload
Expand Down
Loading