mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
components: Replaced diagnostics cluster namespaces as per the spec
This commit is contained in:
@@ -646,7 +646,7 @@ attribute_t *create_operating_mode(cluster_t *cluster, uint8_t value)
|
||||
} /* attribute */
|
||||
} /* icd_management */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace attribute {
|
||||
|
||||
attribute_t *create_bssid(cluster_t *cluster, uint8_t *value, uint16_t length)
|
||||
@@ -728,9 +728,9 @@ attribute_t *create_overrun_count(cluster_t *cluster, nullable<uint64_t> value)
|
||||
}
|
||||
|
||||
} /* attribute */
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
namespace attribute {
|
||||
|
||||
attribute_t *create_channel(cluster_t *cluster, nullable<uint16_t> value)
|
||||
@@ -837,9 +837,9 @@ attribute_t *create_active_network_faults(cluster_t *cluster, uint8_t *value, ui
|
||||
}
|
||||
|
||||
} /* attribute */
|
||||
} /* diagnostics_network_thread */
|
||||
} /* thread_network_diagnostics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
namespace attribute {
|
||||
|
||||
attribute_t *create_phy_rate(cluster_t *cluster, nullable<uint8_t> value)
|
||||
@@ -891,7 +891,7 @@ attribute_t *create_time_since_reset(cluster_t *cluster, uint64_t value)
|
||||
}
|
||||
|
||||
} /* attribute */
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace bridged_device_basic_information {
|
||||
namespace attribute {
|
||||
|
||||
@@ -196,7 +196,7 @@ attribute_t *create_operating_mode(cluster_t *cluster, uint8_t value);
|
||||
} /* attribute */
|
||||
} /* icd_management */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace attribute {
|
||||
attribute_t *create_bssid(cluster_t *cluster, uint8_t *value, uint16_t length);
|
||||
attribute_t *create_security_type(cluster_t *cluster, nullable<uint8_t> value);
|
||||
@@ -216,9 +216,9 @@ attribute_t *create_packet_unicast_tx_count(cluster_t *cluster, nullable<uint32_
|
||||
attribute_t *create_current_max_rate(cluster_t *cluster, nullable<uint64_t> value);
|
||||
attribute_t *create_overrun_count(cluster_t *cluster, nullable<uint64_t> value);
|
||||
} /* attribute */
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
namespace attribute {
|
||||
attribute_t *create_channel(cluster_t *cluster, nullable<uint16_t> value);
|
||||
attribute_t *create_routing_role(cluster_t *cluster, nullable<uint8_t> value);
|
||||
@@ -238,9 +238,9 @@ attribute_t *create_channel_page0_mask(cluster_t *cluster, uint8_t *value, uint1
|
||||
attribute_t *create_operational_dataset_components(cluster_t *cluster, uint8_t *value, uint16_t length, uint16_t count);
|
||||
attribute_t *create_active_network_faults(cluster_t *cluster, uint8_t *value, uint16_t length, uint16_t count);
|
||||
} /* attribute */
|
||||
} /* diagnostics_network_thread */
|
||||
} /* thread_network_diagnostics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
namespace attribute {
|
||||
attribute_t *create_phy_rate(cluster_t *cluster, nullable<uint8_t> value);
|
||||
attribute_t *create_full_duplex(cluster_t *cluster, nullable<bool> value);
|
||||
@@ -252,7 +252,7 @@ attribute_t *create_overrun_count(cluster_t *cluster, uint64_t value);
|
||||
attribute_t *create_carrier_detect(cluster_t *cluster, nullable<bool> value);
|
||||
attribute_t *create_time_since_reset(cluster_t *cluster, uint64_t value);
|
||||
} /* attribute */
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace bridged_device_basic_information {
|
||||
constexpr uint8_t k_max_vendor_name_length = 32;
|
||||
|
||||
@@ -725,7 +725,7 @@ cluster_t *create(endpoint_t *endpoint, uint8_t flags)
|
||||
}
|
||||
} /* group_key_management */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
const function_generic_t *function_list = NULL;
|
||||
const int function_flags = CLUSTER_FLAG_NONE;
|
||||
|
||||
@@ -765,9 +765,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
|
||||
return cluster;
|
||||
}
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
const function_generic_t *function_list = NULL;
|
||||
const int function_flags = CLUSTER_FLAG_NONE;
|
||||
|
||||
@@ -819,9 +819,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
|
||||
return cluster;
|
||||
}
|
||||
} /* diagnostics_network_thread */
|
||||
} /* thread_network_diagnostics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
const function_generic_t *function_list = NULL;
|
||||
const int function_flags = CLUSTER_FLAG_NONE;
|
||||
|
||||
@@ -856,7 +856,7 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
|
||||
return cluster;
|
||||
}
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace time_synchronization {
|
||||
const function_generic_t *function_list = NULL;
|
||||
|
||||
@@ -187,32 +187,32 @@ typedef struct config {
|
||||
cluster_t *create(endpoint_t *endpoint, uint8_t flags);
|
||||
} /* group_key_management */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
typedef struct config {
|
||||
uint16_t cluster_revision;
|
||||
config() : cluster_revision(1) {}
|
||||
} config_t;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags);
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
typedef struct config {
|
||||
uint16_t cluster_revision;
|
||||
config() : cluster_revision(2) {}
|
||||
} config_t;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags);
|
||||
} /* diagnostics_network_thread */
|
||||
} /* thread_network_diagnostics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
typedef struct config {
|
||||
uint16_t cluster_revision;
|
||||
config() : cluster_revision(1) {}
|
||||
} config_t;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags);
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace time_synchronization {
|
||||
typedef struct config {
|
||||
|
||||
@@ -1556,7 +1556,7 @@ command_t *create_disable_action_with_duration(cluster_t *cluster)
|
||||
} /* command */
|
||||
} /* actions */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
namespace command {
|
||||
|
||||
command_t *create_reset_counts(cluster_t *cluster)
|
||||
@@ -1566,9 +1566,9 @@ command_t *create_reset_counts(cluster_t *cluster)
|
||||
}
|
||||
|
||||
} /* command */
|
||||
} /* diagnostics_network_thread */
|
||||
} /* thread_network_diagnostics */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace command {
|
||||
|
||||
command_t *create_reset_counts(cluster_t *cluster)
|
||||
@@ -1578,9 +1578,9 @@ command_t *create_reset_counts(cluster_t *cluster)
|
||||
}
|
||||
|
||||
} /* command */
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
namespace command {
|
||||
|
||||
command_t *create_reset_counts(cluster_t *cluster)
|
||||
@@ -1590,7 +1590,7 @@ command_t *create_reset_counts(cluster_t *cluster)
|
||||
}
|
||||
|
||||
} /* command */
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace diagnostic_logs {
|
||||
namespace command {
|
||||
|
||||
@@ -42,23 +42,23 @@ command_t *create_disable_action_with_duration(cluster_t *cluster);
|
||||
} /* command */
|
||||
} /* actions */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
namespace command {
|
||||
command_t *create_reset_counts(cluster_t *cluster);
|
||||
} /* command */
|
||||
} /* diagnostics_network_thread */
|
||||
} /* thread_network_diagnostics */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace command {
|
||||
command_t *create_reset_counts(cluster_t *cluster);
|
||||
} /* command */
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
namespace command {
|
||||
command_t *create_reset_counts(cluster_t *cluster);
|
||||
} /* command */
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace diagnostic_logs {
|
||||
namespace command {
|
||||
|
||||
@@ -64,10 +64,10 @@ esp_err_t add(endpoint_t *endpoint, config_t *config)
|
||||
group_key_management::create(endpoint, CLUSTER_FLAG_SERVER);
|
||||
|
||||
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
|
||||
diagnostics_network_wifi::create(endpoint, &(config->diagnostics_network_wifi), CLUSTER_FLAG_SERVER);
|
||||
wifi_network_diagnotics::create(endpoint, &(config->wifi_network_diagnotics), CLUSTER_FLAG_SERVER);
|
||||
#endif
|
||||
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
|
||||
diagnostics_network_thread::create(endpoint, &(config->diagnostics_network_thread), CLUSTER_FLAG_SERVER);
|
||||
thread_network_diagnostics::create(endpoint, &(config->thread_network_diagnostics), CLUSTER_FLAG_SERVER);
|
||||
#endif
|
||||
#if CHIP_CONFIG_ENABLE_ICD_SERVER
|
||||
icd_management::create(endpoint, &(config->icd_management), CLUSTER_FLAG_SERVER,
|
||||
|
||||
@@ -145,8 +145,8 @@ typedef struct config {
|
||||
cluster::general_diagnostics::config_t general_diagnostics;
|
||||
cluster::administrator_commissioning::config_t administrator_commissioning;
|
||||
cluster::operational_credentials::config_t operational_credentials;
|
||||
cluster::diagnostics_network_wifi::config_t diagnostics_network_wifi;
|
||||
cluster::diagnostics_network_thread::config_t diagnostics_network_thread;
|
||||
cluster::wifi_network_diagnotics::config_t wifi_network_diagnotics;
|
||||
cluster::thread_network_diagnostics::config_t thread_network_diagnostics;
|
||||
cluster::icd_management::config_t icd_management;
|
||||
} config_t;
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ event_t *create_boot_reason(cluster_t *cluster)
|
||||
} // namespace event
|
||||
} // namespace general_diagnostics
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace event {
|
||||
event_t *create_disconnection(cluster_t *cluster)
|
||||
{
|
||||
@@ -155,9 +155,9 @@ event_t *create_connection_status(cluster_t *cluster)
|
||||
}
|
||||
|
||||
} // namespace event
|
||||
} // namespace diagnostics_network_wifi
|
||||
} // namespace wifi_network_diagnotics
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
namespace event {
|
||||
event_t *create_connection_status(cluster_t *cluster)
|
||||
{
|
||||
@@ -170,7 +170,7 @@ event_t *create_network_fault_change(cluster_t *cluster)
|
||||
}
|
||||
|
||||
} // namespace event
|
||||
} // namespace diagnostics_network_thread
|
||||
} // namespace thread_network_diagnostics
|
||||
|
||||
namespace software_diagnostics {
|
||||
namespace event {
|
||||
|
||||
@@ -66,20 +66,20 @@ event_t *create_boot_reason(cluster_t *cluster);
|
||||
} // namespace event
|
||||
} // namespace general_diagnostics
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace event {
|
||||
event_t *create_disconnection(cluster_t *cluster);
|
||||
event_t *create_association_failure(cluster_t *cluster);
|
||||
event_t *create_connection_status(cluster_t *cluster);
|
||||
} // namespace event
|
||||
} // namespace diagnostics_network_wifi
|
||||
} // namespace wifi_network_diagnotics
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
namespace thread_network_diagnostics {
|
||||
namespace event {
|
||||
event_t *create_connection_status(cluster_t *cluster);
|
||||
event_t *create_network_fault_change(cluster_t *cluster);
|
||||
} // namespace event
|
||||
} // namespace diagnostics_network_thread
|
||||
} // namespace thread_network_diagnostics
|
||||
|
||||
namespace software_diagnostics {
|
||||
namespace event {
|
||||
|
||||
@@ -902,7 +902,7 @@ esp_err_t add(cluster_t *cluster, config_t *config)
|
||||
} /* feature */
|
||||
} /* window_covering */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace feature {
|
||||
|
||||
namespace packets_counts {
|
||||
@@ -964,9 +964,9 @@ esp_err_t add(cluster_t *cluster)
|
||||
} /* error_counts */
|
||||
|
||||
} /* feature */
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
namespace feature {
|
||||
|
||||
namespace packets_counts {
|
||||
@@ -1019,7 +1019,7 @@ esp_err_t add(cluster_t *cluster, config_t *config)
|
||||
} /* error_counts */
|
||||
|
||||
} /* feature */
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace air_quality {
|
||||
namespace feature {
|
||||
|
||||
@@ -419,7 +419,7 @@ esp_err_t add(cluster_t *cluster, config_t *config);
|
||||
} /* feature */
|
||||
} /* window_covering */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
namespace wifi_network_diagnotics {
|
||||
namespace feature {
|
||||
|
||||
namespace packets_counts {
|
||||
@@ -437,9 +437,9 @@ esp_err_t add(cluster_t *cluster);
|
||||
} /* error_counts */
|
||||
|
||||
} /* feature */
|
||||
} /* diagnostics_network_wifi */
|
||||
} /* wifi_network_diagnotics */
|
||||
|
||||
namespace diagnostics_network_ethernet {
|
||||
namespace ethernet_network_diagnostics {
|
||||
namespace feature {
|
||||
|
||||
namespace packets_counts {
|
||||
@@ -470,7 +470,7 @@ esp_err_t add(cluster_t *cluster, config_t *config);
|
||||
} /* error_counts */
|
||||
|
||||
} /* feature */
|
||||
} /* diagnostics_network_ethernet */
|
||||
} /* ethernet_network_diagnostics */
|
||||
|
||||
namespace thermostat {
|
||||
namespace feature {
|
||||
|
||||
Reference in New Issue
Block a user