Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
zpal_retention_register.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Silicon Laboratories Inc. <https://www.silabs.com/>
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
12#ifndef ZPAL_RETENTION_REGISTER_H_
13#define ZPAL_RETENTION_REGISTER_H_
14
15#include <stddef.h>
16#include <stdint.h>
17#include "zpal_status.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
47#define ZPAL_RETENTION_REGISTER_SMARTSTART 0
48#define ZPAL_RETENTION_REGISTER_RESPONSEROUTE_1 1
49#define ZPAL_RETENTION_REGISTER_RESPONSEROUTE_2 2
50#define ZPAL_RETENTION_REGISTER_RESPONSEROUTE_3 3
51#define ZPAL_RETENTION_REGISTER_RESPONSEROUTE_4 4
52#define ZPAL_RETENTION_REGISTER_TXPOWER_RSSI_LR 5
53#define ZPAL_RETENTION_REGISTER_RESET_INFO 6
54
55#define ZPAL_RETENTION_REGISTER_PROTOCOL_RESERVED_COUNT 16
56
67zpal_status_t zpal_retention_register_read(uint32_t index, uint32_t *data);
68
79zpal_status_t zpal_retention_register_write(uint32_t index, uint32_t value);
80
86
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* ZPAL_RETENTION_REGISTER_H_ */
size_t zpal_retention_register_count(void)
Get number of available retention registers.
zpal_status_t zpal_retention_register_write(uint32_t index, uint32_t value)
Write a 32-bit value to the specified retention register.
zpal_status_t zpal_retention_register_read(uint32_t index, uint32_t *data)
Reads a 32-bit value from the specified retention register.
zpal_status_t
ZPAL statuses to be used by ZPAL APIs.
Definition zpal_status.h:38