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

Part 4: feature/binary input basic cluster #7032

Merged
merged 23 commits into from Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
de65808
format endpointClusterWithInit for easier pull requests
May 20, 2021
4d6c445
add support for emberAfBinaryInputBasicClusterServerInitCallback
May 20, 2021
a4068c0
fix emberAfBinaryInputBasicClusterServerInitCallback
May 20, 2021
baf7c3d
Add new clusters to zap_cluster_list.py
vivien-apple May 20, 2021
a20c430
add initial binary input basic cluster impl.
May 18, 2021
d6d4910
fix typo in binary-input-server.cpp
May 20, 2021
8f44898
add binary input basic to controller-clusters.zap
May 20, 2021
52b8969
Restyled by whitespace
restyled-commits May 21, 2021
74b3080
Restyled by clang-format
restyled-commits May 21, 2021
d7de0f2
add fixes && expose more binary input APIs
May 25, 2021
bdc6bef
Revert "Add new clusters to zap_cluster_list.py"
May 25, 2021
6782fb1
add only binary input basic to zap_clusters_list.py
May 25, 2021
30b6d6d
remove emberAfBinaryInputBasicClusterServerInitCallback impl.
May 26, 2021
bc7dbe6
fix year of copyright
May 26, 2021
791cc9d
fix includes in binary-input-basic-server.cpp
May 28, 2021
bf6c2a7
add binary-input-basic cluster to the all-clusters-app.zap
May 28, 2021
6224aad
try to fix all-cluster-app/esp32
May 28, 2021
7b59bd3
another fix for the all-cluster-app/esp32
May 28, 2021
1d4df12
Fix endpoint config generation for clusters with complicated names.
bzbarsky-apple May 28, 2021
585595c
Restore the octet string tests that were improperly removed
bzbarsky-apple May 28, 2021
8a1447d
Remove unnecessary init function from Binary Input cluster
bzbarsky-apple May 28, 2021
e3db5df
Move Binary Input cluster from endpoint 0 to endpoint 1 in all-cluste…
bzbarsky-apple May 28, 2021
0e4c4b9
Regenerate generated files
bzbarsky-apple Jun 1, 2021
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
79 changes: 79 additions & 0 deletions examples/all-clusters-app/all-clusters-common/gen/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ void emberAfBarrierControlClusterInitCallback(chip::EndpointId endpoint);
*/
void emberAfBasicClusterInitCallback(chip::EndpointId endpoint);

/** @brief Binary Input (Basic) Cluster Init
*
* Cluster Init
*
* @param endpoint Endpoint that is being initialized
*/
void emberAfBinaryInputBasicClusterInitCallback(chip::EndpointId endpoint);

/** @brief Binding Cluster Init
*
* Cluster Init
Expand Down Expand Up @@ -831,6 +839,77 @@ EmberAfStatus emberAfBasicClusterServerPreAttributeChangedCallback(chip::Endpoin
*/
void emberAfBasicClusterServerTickCallback(chip::EndpointId endpoint);

//
// Binary Input (Basic) Cluster server
//

/** @brief Binary Input (Basic) Cluster Server Init
*
* Server Init
*
* @param endpoint Endpoint that is being initialized
*/
void emberAfBinaryInputBasicClusterServerInitCallback(chip::EndpointId endpoint);

/** @brief Binary Input (Basic) Cluster Server Attribute Changed
*
* Server Attribute Changed
*
* @param endpoint Endpoint that is being initialized
* @param attributeId Attribute that changed
*/
void emberAfBinaryInputBasicClusterServerAttributeChangedCallback(chip::EndpointId endpoint, chip::AttributeId attributeId);

/** @brief Binary Input (Basic) Cluster Server Manufacturer Specific Attribute Changed
*
* Server Manufacturer Specific Attribute Changed
*
* @param endpoint Endpoint that is being initialized
* @param attributeId Attribute that changed
* @param manufacturerCode Manufacturer Code of the attribute that changed
*/
void emberAfBinaryInputBasicClusterServerManufacturerSpecificAttributeChangedCallback(chip::EndpointId endpoint,
chip::AttributeId attributeId,
uint16_t manufacturerCode);

/** @brief Binary Input (Basic) Cluster Server Message Sent
*
* Server Message Sent
*
* @param type The type of message sent
* @param destination The destination to which the message was sent
* @param apsFrame The APS frame for the message
* @param msgLen The length of the message
* @param message The message that was sent
* @param status The status of the sent message
*/
void emberAfBinaryInputBasicClusterServerMessageSentCallback(EmberOutgoingMessageType type,
chip::MessageSendDestination destination, EmberApsFrame * apsFrame,
uint16_t msgLen, uint8_t * message, EmberStatus status);

/** @brief Binary Input (Basic) Cluster Server Pre Attribute Changed
*
* server Pre Attribute Changed
*
* @param endpoint Endpoint that is being initialized
* @param attributeId Attribute to be changed
* @param attributeType Attribute type
* @param size Attribute size
* @param value Attribute value
*/
EmberAfStatus emberAfBinaryInputBasicClusterServerPreAttributeChangedCallback(chip::EndpointId endpoint,
chip::AttributeId attributeId,
EmberAfAttributeType attributeType, uint16_t size,
uint8_t * value);

/** @brief Binary Input (Basic) Cluster Server Tick
*
* server Tick
*
* @param endpoint Endpoint that is being served
*/
void emberAfBinaryInputBasicClusterServerTickCallback(chip::EndpointId endpoint);

//
// Binding Cluster server
//
Expand Down
Loading