callback-stub.cpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. /*
  2. *
  3. * Copyright (c) 2022 Project CHIP Authors
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. // THIS FILE IS GENERATED BY ZAP
  18. #include <app-common/zap-generated/callback.h>
  19. #include <app-common/zap-generated/cluster-id.h>
  20. #include <lib/support/Span.h>
  21. #include <protocols/interaction_model/Constants.h>
  22. using namespace chip;
  23. // Cluster Init Functions
  24. void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId)
  25. {
  26. switch (clusterId)
  27. {
  28. case ZCL_ACCESS_CONTROL_CLUSTER_ID:
  29. emberAfAccessControlClusterInitCallback(endpoint);
  30. break;
  31. case ZCL_ACCOUNT_LOGIN_CLUSTER_ID:
  32. emberAfAccountLoginClusterInitCallback(endpoint);
  33. break;
  34. case ZCL_ADMINISTRATOR_COMMISSIONING_CLUSTER_ID:
  35. emberAfAdministratorCommissioningClusterInitCallback(endpoint);
  36. break;
  37. case ZCL_APPLICATION_BASIC_CLUSTER_ID:
  38. emberAfApplicationBasicClusterInitCallback(endpoint);
  39. break;
  40. case ZCL_APPLICATION_LAUNCHER_CLUSTER_ID:
  41. emberAfApplicationLauncherClusterInitCallback(endpoint);
  42. break;
  43. case ZCL_AUDIO_OUTPUT_CLUSTER_ID:
  44. emberAfAudioOutputClusterInitCallback(endpoint);
  45. break;
  46. case ZCL_BARRIER_CONTROL_CLUSTER_ID:
  47. emberAfBarrierControlClusterInitCallback(endpoint);
  48. break;
  49. case ZCL_BASIC_CLUSTER_ID:
  50. emberAfBasicClusterInitCallback(endpoint);
  51. break;
  52. case ZCL_BINARY_INPUT_BASIC_CLUSTER_ID:
  53. emberAfBinaryInputBasicClusterInitCallback(endpoint);
  54. break;
  55. case ZCL_BINDING_CLUSTER_ID:
  56. emberAfBindingClusterInitCallback(endpoint);
  57. break;
  58. case ZCL_BOOLEAN_STATE_CLUSTER_ID:
  59. emberAfBooleanStateClusterInitCallback(endpoint);
  60. break;
  61. case ZCL_BRIDGED_ACTIONS_CLUSTER_ID:
  62. emberAfBridgedActionsClusterInitCallback(endpoint);
  63. break;
  64. case ZCL_BRIDGED_DEVICE_BASIC_CLUSTER_ID:
  65. emberAfBridgedDeviceBasicClusterInitCallback(endpoint);
  66. break;
  67. case ZCL_CHANNEL_CLUSTER_ID:
  68. emberAfChannelClusterInitCallback(endpoint);
  69. break;
  70. case ZCL_COLOR_CONTROL_CLUSTER_ID:
  71. emberAfColorControlClusterInitCallback(endpoint);
  72. break;
  73. case ZCL_CONTENT_LAUNCH_CLUSTER_ID:
  74. emberAfContentLauncherClusterInitCallback(endpoint);
  75. break;
  76. case ZCL_DESCRIPTOR_CLUSTER_ID:
  77. emberAfDescriptorClusterInitCallback(endpoint);
  78. break;
  79. case ZCL_DIAGNOSTIC_LOGS_CLUSTER_ID:
  80. emberAfDiagnosticLogsClusterInitCallback(endpoint);
  81. break;
  82. case ZCL_DOOR_LOCK_CLUSTER_ID:
  83. emberAfDoorLockClusterInitCallback(endpoint);
  84. break;
  85. case ZCL_ELECTRICAL_MEASUREMENT_CLUSTER_ID:
  86. emberAfElectricalMeasurementClusterInitCallback(endpoint);
  87. break;
  88. case ZCL_ETHERNET_NETWORK_DIAGNOSTICS_CLUSTER_ID:
  89. emberAfEthernetNetworkDiagnosticsClusterInitCallback(endpoint);
  90. break;
  91. case ZCL_FIXED_LABEL_CLUSTER_ID:
  92. emberAfFixedLabelClusterInitCallback(endpoint);
  93. break;
  94. case ZCL_FLOW_MEASUREMENT_CLUSTER_ID:
  95. emberAfFlowMeasurementClusterInitCallback(endpoint);
  96. break;
  97. case ZCL_GENERAL_COMMISSIONING_CLUSTER_ID:
  98. emberAfGeneralCommissioningClusterInitCallback(endpoint);
  99. break;
  100. case ZCL_GENERAL_DIAGNOSTICS_CLUSTER_ID:
  101. emberAfGeneralDiagnosticsClusterInitCallback(endpoint);
  102. break;
  103. case ZCL_GROUP_KEY_MANAGEMENT_CLUSTER_ID:
  104. emberAfGroupKeyManagementClusterInitCallback(endpoint);
  105. break;
  106. case ZCL_GROUPS_CLUSTER_ID:
  107. emberAfGroupsClusterInitCallback(endpoint);
  108. break;
  109. case ZCL_IDENTIFY_CLUSTER_ID:
  110. emberAfIdentifyClusterInitCallback(endpoint);
  111. break;
  112. case ZCL_ILLUMINANCE_MEASUREMENT_CLUSTER_ID:
  113. emberAfIlluminanceMeasurementClusterInitCallback(endpoint);
  114. break;
  115. case ZCL_KEYPAD_INPUT_CLUSTER_ID:
  116. emberAfKeypadInputClusterInitCallback(endpoint);
  117. break;
  118. case ZCL_LEVEL_CONTROL_CLUSTER_ID:
  119. emberAfLevelControlClusterInitCallback(endpoint);
  120. break;
  121. case ZCL_LOCALIZATION_CONFIGURATION_CLUSTER_ID:
  122. emberAfLocalizationConfigurationClusterInitCallback(endpoint);
  123. break;
  124. case ZCL_LOW_POWER_CLUSTER_ID:
  125. emberAfLowPowerClusterInitCallback(endpoint);
  126. break;
  127. case ZCL_MEDIA_INPUT_CLUSTER_ID:
  128. emberAfMediaInputClusterInitCallback(endpoint);
  129. break;
  130. case ZCL_MEDIA_PLAYBACK_CLUSTER_ID:
  131. emberAfMediaPlaybackClusterInitCallback(endpoint);
  132. break;
  133. case ZCL_MODE_SELECT_CLUSTER_ID:
  134. emberAfModeSelectClusterInitCallback(endpoint);
  135. break;
  136. case ZCL_NETWORK_COMMISSIONING_CLUSTER_ID:
  137. emberAfNetworkCommissioningClusterInitCallback(endpoint);
  138. break;
  139. case ZCL_OTA_PROVIDER_CLUSTER_ID:
  140. emberAfOtaSoftwareUpdateProviderClusterInitCallback(endpoint);
  141. break;
  142. case ZCL_OTA_REQUESTOR_CLUSTER_ID:
  143. emberAfOtaSoftwareUpdateRequestorClusterInitCallback(endpoint);
  144. break;
  145. case ZCL_OCCUPANCY_SENSING_CLUSTER_ID:
  146. emberAfOccupancySensingClusterInitCallback(endpoint);
  147. break;
  148. case ZCL_ON_OFF_CLUSTER_ID:
  149. emberAfOnOffClusterInitCallback(endpoint);
  150. break;
  151. case ZCL_ON_OFF_SWITCH_CONFIG_CLUSTER_ID:
  152. emberAfOnOffSwitchConfigurationClusterInitCallback(endpoint);
  153. break;
  154. case ZCL_OPERATIONAL_CREDENTIALS_CLUSTER_ID:
  155. emberAfOperationalCredentialsClusterInitCallback(endpoint);
  156. break;
  157. case ZCL_POWER_SOURCE_CLUSTER_ID:
  158. emberAfPowerSourceClusterInitCallback(endpoint);
  159. break;
  160. case ZCL_POWER_SOURCE_CONFIGURATION_CLUSTER_ID:
  161. emberAfPowerSourceConfigurationClusterInitCallback(endpoint);
  162. break;
  163. case ZCL_PRESSURE_MEASUREMENT_CLUSTER_ID:
  164. emberAfPressureMeasurementClusterInitCallback(endpoint);
  165. break;
  166. case ZCL_PUMP_CONFIG_CONTROL_CLUSTER_ID:
  167. emberAfPumpConfigurationAndControlClusterInitCallback(endpoint);
  168. break;
  169. case ZCL_RELATIVE_HUMIDITY_MEASUREMENT_CLUSTER_ID:
  170. emberAfRelativeHumidityMeasurementClusterInitCallback(endpoint);
  171. break;
  172. case ZCL_SCENES_CLUSTER_ID:
  173. emberAfScenesClusterInitCallback(endpoint);
  174. break;
  175. case ZCL_SOFTWARE_DIAGNOSTICS_CLUSTER_ID:
  176. emberAfSoftwareDiagnosticsClusterInitCallback(endpoint);
  177. break;
  178. case ZCL_SWITCH_CLUSTER_ID:
  179. emberAfSwitchClusterInitCallback(endpoint);
  180. break;
  181. case ZCL_TARGET_NAVIGATOR_CLUSTER_ID:
  182. emberAfTargetNavigatorClusterInitCallback(endpoint);
  183. break;
  184. case ZCL_TEMP_MEASUREMENT_CLUSTER_ID:
  185. emberAfTemperatureMeasurementClusterInitCallback(endpoint);
  186. break;
  187. case ZCL_TEST_CLUSTER_ID:
  188. emberAfTestClusterClusterInitCallback(endpoint);
  189. break;
  190. case ZCL_THERMOSTAT_CLUSTER_ID:
  191. emberAfThermostatClusterInitCallback(endpoint);
  192. break;
  193. case ZCL_THERMOSTAT_UI_CONFIG_CLUSTER_ID:
  194. emberAfThermostatUserInterfaceConfigurationClusterInitCallback(endpoint);
  195. break;
  196. case ZCL_THREAD_NETWORK_DIAGNOSTICS_CLUSTER_ID:
  197. emberAfThreadNetworkDiagnosticsClusterInitCallback(endpoint);
  198. break;
  199. case ZCL_TIME_FORMAT_LOCALIZATION_CLUSTER_ID:
  200. emberAfTimeFormatLocalizationClusterInitCallback(endpoint);
  201. break;
  202. case ZCL_UNIT_LOCALIZATION_CLUSTER_ID:
  203. emberAfUnitLocalizationClusterInitCallback(endpoint);
  204. break;
  205. case ZCL_USER_LABEL_CLUSTER_ID:
  206. emberAfUserLabelClusterInitCallback(endpoint);
  207. break;
  208. case ZCL_WAKE_ON_LAN_CLUSTER_ID:
  209. emberAfWakeOnLanClusterInitCallback(endpoint);
  210. break;
  211. case ZCL_WIFI_NETWORK_DIAGNOSTICS_CLUSTER_ID:
  212. emberAfWiFiNetworkDiagnosticsClusterInitCallback(endpoint);
  213. break;
  214. case ZCL_WINDOW_COVERING_CLUSTER_ID:
  215. emberAfWindowCoveringClusterInitCallback(endpoint);
  216. break;
  217. default:
  218. // Unrecognized cluster ID
  219. break;
  220. }
  221. }
  222. void __attribute__((weak)) emberAfAccessControlClusterInitCallback(EndpointId endpoint)
  223. {
  224. // To prevent warning
  225. (void) endpoint;
  226. }
  227. void __attribute__((weak)) emberAfAccountLoginClusterInitCallback(EndpointId endpoint)
  228. {
  229. // To prevent warning
  230. (void) endpoint;
  231. }
  232. void __attribute__((weak)) emberAfAdministratorCommissioningClusterInitCallback(EndpointId endpoint)
  233. {
  234. // To prevent warning
  235. (void) endpoint;
  236. }
  237. void __attribute__((weak)) emberAfApplicationBasicClusterInitCallback(EndpointId endpoint)
  238. {
  239. // To prevent warning
  240. (void) endpoint;
  241. }
  242. void __attribute__((weak)) emberAfApplicationLauncherClusterInitCallback(EndpointId endpoint)
  243. {
  244. // To prevent warning
  245. (void) endpoint;
  246. }
  247. void __attribute__((weak)) emberAfAudioOutputClusterInitCallback(EndpointId endpoint)
  248. {
  249. // To prevent warning
  250. (void) endpoint;
  251. }
  252. void __attribute__((weak)) emberAfBarrierControlClusterInitCallback(EndpointId endpoint)
  253. {
  254. // To prevent warning
  255. (void) endpoint;
  256. }
  257. void __attribute__((weak)) emberAfBasicClusterInitCallback(EndpointId endpoint)
  258. {
  259. // To prevent warning
  260. (void) endpoint;
  261. }
  262. void __attribute__((weak)) emberAfBinaryInputBasicClusterInitCallback(EndpointId endpoint)
  263. {
  264. // To prevent warning
  265. (void) endpoint;
  266. }
  267. void __attribute__((weak)) emberAfBindingClusterInitCallback(EndpointId endpoint)
  268. {
  269. // To prevent warning
  270. (void) endpoint;
  271. }
  272. void __attribute__((weak)) emberAfBooleanStateClusterInitCallback(EndpointId endpoint)
  273. {
  274. // To prevent warning
  275. (void) endpoint;
  276. }
  277. void __attribute__((weak)) emberAfBridgedActionsClusterInitCallback(EndpointId endpoint)
  278. {
  279. // To prevent warning
  280. (void) endpoint;
  281. }
  282. void __attribute__((weak)) emberAfBridgedDeviceBasicClusterInitCallback(EndpointId endpoint)
  283. {
  284. // To prevent warning
  285. (void) endpoint;
  286. }
  287. void __attribute__((weak)) emberAfChannelClusterInitCallback(EndpointId endpoint)
  288. {
  289. // To prevent warning
  290. (void) endpoint;
  291. }
  292. void __attribute__((weak)) emberAfColorControlClusterInitCallback(EndpointId endpoint)
  293. {
  294. // To prevent warning
  295. (void) endpoint;
  296. }
  297. void __attribute__((weak)) emberAfContentLauncherClusterInitCallback(EndpointId endpoint)
  298. {
  299. // To prevent warning
  300. (void) endpoint;
  301. }
  302. void __attribute__((weak)) emberAfDescriptorClusterInitCallback(EndpointId endpoint)
  303. {
  304. // To prevent warning
  305. (void) endpoint;
  306. }
  307. void __attribute__((weak)) emberAfDiagnosticLogsClusterInitCallback(EndpointId endpoint)
  308. {
  309. // To prevent warning
  310. (void) endpoint;
  311. }
  312. void __attribute__((weak)) emberAfDoorLockClusterInitCallback(EndpointId endpoint)
  313. {
  314. // To prevent warning
  315. (void) endpoint;
  316. }
  317. void __attribute__((weak)) emberAfElectricalMeasurementClusterInitCallback(EndpointId endpoint)
  318. {
  319. // To prevent warning
  320. (void) endpoint;
  321. }
  322. void __attribute__((weak)) emberAfEthernetNetworkDiagnosticsClusterInitCallback(EndpointId endpoint)
  323. {
  324. // To prevent warning
  325. (void) endpoint;
  326. }
  327. void __attribute__((weak)) emberAfFixedLabelClusterInitCallback(EndpointId endpoint)
  328. {
  329. // To prevent warning
  330. (void) endpoint;
  331. }
  332. void __attribute__((weak)) emberAfFlowMeasurementClusterInitCallback(EndpointId endpoint)
  333. {
  334. // To prevent warning
  335. (void) endpoint;
  336. }
  337. void __attribute__((weak)) emberAfGeneralCommissioningClusterInitCallback(EndpointId endpoint)
  338. {
  339. // To prevent warning
  340. (void) endpoint;
  341. }
  342. void __attribute__((weak)) emberAfGeneralDiagnosticsClusterInitCallback(EndpointId endpoint)
  343. {
  344. // To prevent warning
  345. (void) endpoint;
  346. }
  347. void __attribute__((weak)) emberAfGroupKeyManagementClusterInitCallback(EndpointId endpoint)
  348. {
  349. // To prevent warning
  350. (void) endpoint;
  351. }
  352. void __attribute__((weak)) emberAfGroupsClusterInitCallback(EndpointId endpoint)
  353. {
  354. // To prevent warning
  355. (void) endpoint;
  356. }
  357. void __attribute__((weak)) emberAfIdentifyClusterInitCallback(EndpointId endpoint)
  358. {
  359. // To prevent warning
  360. (void) endpoint;
  361. }
  362. void __attribute__((weak)) emberAfIlluminanceMeasurementClusterInitCallback(EndpointId endpoint)
  363. {
  364. // To prevent warning
  365. (void) endpoint;
  366. }
  367. void __attribute__((weak)) emberAfKeypadInputClusterInitCallback(EndpointId endpoint)
  368. {
  369. // To prevent warning
  370. (void) endpoint;
  371. }
  372. void __attribute__((weak)) emberAfLevelControlClusterInitCallback(EndpointId endpoint)
  373. {
  374. // To prevent warning
  375. (void) endpoint;
  376. }
  377. void __attribute__((weak)) emberAfLocalizationConfigurationClusterInitCallback(EndpointId endpoint)
  378. {
  379. // To prevent warning
  380. (void) endpoint;
  381. }
  382. void __attribute__((weak)) emberAfLowPowerClusterInitCallback(EndpointId endpoint)
  383. {
  384. // To prevent warning
  385. (void) endpoint;
  386. }
  387. void __attribute__((weak)) emberAfMediaInputClusterInitCallback(EndpointId endpoint)
  388. {
  389. // To prevent warning
  390. (void) endpoint;
  391. }
  392. void __attribute__((weak)) emberAfMediaPlaybackClusterInitCallback(EndpointId endpoint)
  393. {
  394. // To prevent warning
  395. (void) endpoint;
  396. }
  397. void __attribute__((weak)) emberAfModeSelectClusterInitCallback(EndpointId endpoint)
  398. {
  399. // To prevent warning
  400. (void) endpoint;
  401. }
  402. void __attribute__((weak)) emberAfNetworkCommissioningClusterInitCallback(EndpointId endpoint)
  403. {
  404. // To prevent warning
  405. (void) endpoint;
  406. }
  407. void __attribute__((weak)) emberAfOtaSoftwareUpdateProviderClusterInitCallback(EndpointId endpoint)
  408. {
  409. // To prevent warning
  410. (void) endpoint;
  411. }
  412. void __attribute__((weak)) emberAfOtaSoftwareUpdateRequestorClusterInitCallback(EndpointId endpoint)
  413. {
  414. // To prevent warning
  415. (void) endpoint;
  416. }
  417. void __attribute__((weak)) emberAfOccupancySensingClusterInitCallback(EndpointId endpoint)
  418. {
  419. // To prevent warning
  420. (void) endpoint;
  421. }
  422. void __attribute__((weak)) emberAfOnOffClusterInitCallback(EndpointId endpoint)
  423. {
  424. // To prevent warning
  425. (void) endpoint;
  426. }
  427. void __attribute__((weak)) emberAfOnOffSwitchConfigurationClusterInitCallback(EndpointId endpoint)
  428. {
  429. // To prevent warning
  430. (void) endpoint;
  431. }
  432. void __attribute__((weak)) emberAfOperationalCredentialsClusterInitCallback(EndpointId endpoint)
  433. {
  434. // To prevent warning
  435. (void) endpoint;
  436. }
  437. void __attribute__((weak)) emberAfPowerSourceClusterInitCallback(EndpointId endpoint)
  438. {
  439. // To prevent warning
  440. (void) endpoint;
  441. }
  442. void __attribute__((weak)) emberAfPowerSourceConfigurationClusterInitCallback(EndpointId endpoint)
  443. {
  444. // To prevent warning
  445. (void) endpoint;
  446. }
  447. void __attribute__((weak)) emberAfPressureMeasurementClusterInitCallback(EndpointId endpoint)
  448. {
  449. // To prevent warning
  450. (void) endpoint;
  451. }
  452. void __attribute__((weak)) emberAfPumpConfigurationAndControlClusterInitCallback(EndpointId endpoint)
  453. {
  454. // To prevent warning
  455. (void) endpoint;
  456. }
  457. void __attribute__((weak)) emberAfRelativeHumidityMeasurementClusterInitCallback(EndpointId endpoint)
  458. {
  459. // To prevent warning
  460. (void) endpoint;
  461. }
  462. void __attribute__((weak)) emberAfScenesClusterInitCallback(EndpointId endpoint)
  463. {
  464. // To prevent warning
  465. (void) endpoint;
  466. }
  467. void __attribute__((weak)) emberAfSoftwareDiagnosticsClusterInitCallback(EndpointId endpoint)
  468. {
  469. // To prevent warning
  470. (void) endpoint;
  471. }
  472. void __attribute__((weak)) emberAfSwitchClusterInitCallback(EndpointId endpoint)
  473. {
  474. // To prevent warning
  475. (void) endpoint;
  476. }
  477. void __attribute__((weak)) emberAfTargetNavigatorClusterInitCallback(EndpointId endpoint)
  478. {
  479. // To prevent warning
  480. (void) endpoint;
  481. }
  482. void __attribute__((weak)) emberAfTemperatureMeasurementClusterInitCallback(EndpointId endpoint)
  483. {
  484. // To prevent warning
  485. (void) endpoint;
  486. }
  487. void __attribute__((weak)) emberAfTestClusterClusterInitCallback(EndpointId endpoint)
  488. {
  489. // To prevent warning
  490. (void) endpoint;
  491. }
  492. void __attribute__((weak)) emberAfThermostatClusterInitCallback(EndpointId endpoint)
  493. {
  494. // To prevent warning
  495. (void) endpoint;
  496. }
  497. void __attribute__((weak)) emberAfThermostatUserInterfaceConfigurationClusterInitCallback(EndpointId endpoint)
  498. {
  499. // To prevent warning
  500. (void) endpoint;
  501. }
  502. void __attribute__((weak)) emberAfThreadNetworkDiagnosticsClusterInitCallback(EndpointId endpoint)
  503. {
  504. // To prevent warning
  505. (void) endpoint;
  506. }
  507. void __attribute__((weak)) emberAfTimeFormatLocalizationClusterInitCallback(EndpointId endpoint)
  508. {
  509. // To prevent warning
  510. (void) endpoint;
  511. }
  512. void __attribute__((weak)) emberAfUnitLocalizationClusterInitCallback(EndpointId endpoint)
  513. {
  514. // To prevent warning
  515. (void) endpoint;
  516. }
  517. void __attribute__((weak)) emberAfUserLabelClusterInitCallback(EndpointId endpoint)
  518. {
  519. // To prevent warning
  520. (void) endpoint;
  521. }
  522. void __attribute__((weak)) emberAfWakeOnLanClusterInitCallback(EndpointId endpoint)
  523. {
  524. // To prevent warning
  525. (void) endpoint;
  526. }
  527. void __attribute__((weak)) emberAfWiFiNetworkDiagnosticsClusterInitCallback(EndpointId endpoint)
  528. {
  529. // To prevent warning
  530. (void) endpoint;
  531. }
  532. void __attribute__((weak)) emberAfWindowCoveringClusterInitCallback(EndpointId endpoint)
  533. {
  534. // To prevent warning
  535. (void) endpoint;
  536. }
  537. //
  538. // Non-Cluster Related Callbacks
  539. //
  540. void __attribute__((weak)) emberAfAddToCurrentAppTasksCallback(EmberAfApplicationTask tasks) {}
  541. void __attribute__((weak)) emberAfRemoveFromCurrentAppTasksCallback(EmberAfApplicationTask tasks) {}
  542. EmberAfAttributeWritePermission __attribute__((weak))
  543. emberAfAllowNetworkWriteAttributeCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId, uint8_t mask,
  544. uint8_t * value, uint8_t type)
  545. {
  546. return EMBER_ZCL_ATTRIBUTE_WRITE_PERMISSION_ALLOW_WRITE_NORMAL; // Default
  547. }
  548. bool __attribute__((weak)) emberAfAttributeReadAccessCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId)
  549. {
  550. return true;
  551. }
  552. bool __attribute__((weak)) emberAfAttributeWriteAccessCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId)
  553. {
  554. return true;
  555. }
  556. bool __attribute__((weak)) emberAfDefaultResponseCallback(ClusterId clusterId, CommandId commandId, EmberAfStatus status)
  557. {
  558. return false;
  559. }
  560. bool __attribute__((weak)) emberAfPreMessageSendCallback(EmberAfMessageStruct * messageStruct, EmberStatus * status)
  561. {
  562. return false;
  563. }
  564. bool __attribute__((weak)) emberAfMessageSentCallback(const MessageSendDestination & destination, EmberApsFrame * apsFrame,
  565. uint16_t msgLen, uint8_t * message, EmberStatus status)
  566. {
  567. return false;
  568. }
  569. EmberAfStatus __attribute__((weak))
  570. emberAfExternalAttributeReadCallback(EndpointId endpoint, ClusterId clusterId, const EmberAfAttributeMetadata * attributeMetadata,
  571. uint8_t * buffer, uint16_t maxReadLength)
  572. {
  573. return EMBER_ZCL_STATUS_FAILURE;
  574. }
  575. EmberAfStatus __attribute__((weak))
  576. emberAfExternalAttributeWriteCallback(EndpointId endpoint, ClusterId clusterId, const EmberAfAttributeMetadata * attributeMetadata,
  577. uint8_t * buffer)
  578. {
  579. return EMBER_ZCL_STATUS_FAILURE;
  580. }
  581. uint32_t __attribute__((weak)) emberAfGetCurrentTimeCallback()
  582. {
  583. return 0;
  584. }
  585. bool __attribute__((weak))
  586. emberAfGetEndpointInfoCallback(EndpointId endpoint, uint8_t * returnNetworkIndex, EmberAfEndpointInfoStruct * returnEndpointInfo)
  587. {
  588. return false;
  589. }
  590. void __attribute__((weak)) emberAfRegistrationAbortCallback() {}
  591. EmberStatus __attribute__((weak))
  592. emberAfInterpanSendMessageCallback(EmberAfInterpanHeader * header, uint16_t messageLength, uint8_t * message)
  593. {
  594. return EMBER_LIBRARY_NOT_PRESENT;
  595. }
  596. bool __attribute__((weak)) emberAfStartMoveCallback()
  597. {
  598. return false;
  599. }
  600. chip::Protocols::InteractionModel::Status __attribute__((weak))
  601. MatterPreAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t mask, uint8_t type, uint16_t size,
  602. uint8_t * value)
  603. {
  604. return chip::Protocols::InteractionModel::Status::Success;
  605. }
  606. void __attribute__((weak)) MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t mask,
  607. uint8_t type, uint16_t size, uint8_t * value)
  608. {}