Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
tr_nvram_attr.h File Reference

TODO - documentation. More...

#include "tr_af.h"
+ Include dependency graph for tr_nvram_attr.h:

Go to the source code of this file.

Macros

#define TR_NVRAM_WRITE_DELAY   ZB_MILLISECONDS_TO_BEACON_INTERVAL(2000)
 
#define TR_NVRAM_ATTR_STORAGE_VER_1   (1)
 
#define TR_NVRAM_STORAGE_CUR_VER   (TR_NVRAM_ATTR_STORAGE_VER_1)
 

Typedefs

struct { 
 
   zb_uint8_t   endpoint 
 
   zb_uint16_t   cluster_id 
 
   zb_uint16_t   attr_id 
 
   zb_uint8_t   cluster_role 
 
   zb_uint16_t   manuf_code 
 
   zb_uint8_t   data_type 
 
tr_nvram_attr_storage_v1_t 
 

Functions

zb_uint16_t tr_get_nvram_data_size (void)
 
zb_ret_t tr_nvram_write_app_data_cb (zb_uint8_t page, zb_uint32_t pos)
 
void tr_nvram_read_app_data_cb (zb_uint8_t page, zb_uint32_t pos, zb_uint16_t payload_length)
 
void tr_check_for_attr_nvram_update (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id, zb_uint16_t manuf_code)
 
void tr_check_for_attr_nvram_update_and_force_save (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id, zb_uint16_t manuf_code)
 

Detailed Description

TODO - documentation.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ TR_NVRAM_ATTR_STORAGE_VER_1

#define TR_NVRAM_ATTR_STORAGE_VER_1   (1)

◆ TR_NVRAM_STORAGE_CUR_VER

#define TR_NVRAM_STORAGE_CUR_VER   (TR_NVRAM_ATTR_STORAGE_VER_1)

◆ TR_NVRAM_WRITE_DELAY

#define TR_NVRAM_WRITE_DELAY   ZB_MILLISECONDS_TO_BEACON_INTERVAL(2000)

Typedef Documentation

◆ [struct]

typedef ZB_PACKED_PRE struct { ... } tr_nvram_attr_storage_v1_t

Function Documentation

◆ tr_check_for_attr_nvram_update()

void tr_check_for_attr_nvram_update ( zb_uint8_t ep,
zb_uint16_t cluster_id,
zb_uint8_t cluster_role,
zb_uint16_t attr_id,
zb_uint16_t manuf_code )

◆ tr_check_for_attr_nvram_update_and_force_save()

void tr_check_for_attr_nvram_update_and_force_save ( zb_uint8_t ep,
zb_uint16_t cluster_id,
zb_uint8_t cluster_role,
zb_uint16_t attr_id,
zb_uint16_t manuf_code )

◆ tr_get_nvram_data_size()

zb_uint16_t tr_get_nvram_data_size ( void )

function prototypes


◆ tr_nvram_read_app_data_cb()

void tr_nvram_read_app_data_cb ( zb_uint8_t page,
zb_uint32_t pos,
zb_uint16_t payload_length )

◆ tr_nvram_write_app_data_cb()

zb_ret_t tr_nvram_write_app_data_cb ( zb_uint8_t page,
zb_uint32_t pos )

Variable Documentation

◆ attr_id

zb_uint16_t attr_id

◆ cluster_id

zb_uint16_t cluster_id

◆ cluster_role

zb_uint8_t cluster_role

◆ data_type

zb_uint8_t data_type

◆ endpoint

zb_uint8_t endpoint

◆ manuf_code

zb_uint16_t manuf_code