Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
zpal_init.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_INIT_H_
13#define ZPAL_INIT_H_
14
15#include <stdbool.h>
16#include <stdint.h>
17#include <zpal_status.h>
18#ifdef __cplusplus
19extern "C" {
20#endif
21
68
78
86bool zpal_init_is_valid(uint8_t generic_type, uint8_t specific_type);
87
94
100
106
107
119
127extern void zpal_system_startup(zpal_reset_reason_t reset_reason);
128
134#ifdef __cplusplus
135}
136#endif
137
138#endif /* ZPAL_INIT_H_ */
zpal_library_type_t zpal_get_library_type(void)
Get the node's library type.
void zpal_system_startup(zpal_reset_reason_t reset_reason)
System startup, implemented by Z-Wave SDK.
bool zpal_init_is_valid(uint8_t generic_type, uint8_t specific_type)
Returns whether generic and specific is a valid combination for current chip.
void zpal_init_invalidate(void)
Setup the hardware so that the chip stops working.
zpal_library_type_t
enumeration for library types
Definition zpal_init.h:73
zpal_reset_reason_t zpal_get_reset_reason(void)
Get reset reason.
zpal_reset_reason_t
Reset reason.
Definition zpal_init.h:57
zpal_status_t zpal_init_set_library_type(const zpal_library_type_t library_type)
Set the node's library type This function should be called at the startup code. It can be used if PAL...
@ ZPAL_LIBRARY_TYPE_UNDEFINED
Definition zpal_init.h:76
@ ZPAL_LIBRARY_TYPE_SLAVE
Definition zpal_init.h:75
@ ZPAL_LIBRARY_TYPE_CONTROLLER
Definition zpal_init.h:74
@ ZPAL_RESET_REASON_PIN
Reset triggered by reset pin.
Definition zpal_init.h:58
@ ZPAL_RESET_REASON_POWER_ON
Reset triggered by power on.
Definition zpal_init.h:62
@ zpal_reset_reason_tAMPER
Reset triggered by a tamper attempt.
Definition zpal_init.h:65
@ ZPAL_RESET_REASON_DEEP_SLEEP_WUT
Reset triggered by wake up by timer from deep sleep state.
Definition zpal_init.h:59
@ ZPAL_RESET_REASON_BROWNOUT
Reset triggered by brownout circuit.
Definition zpal_init.h:64
@ ZPAL_RESET_REASON_DEEP_SLEEP_EXT_INT
Reset triggered by external interrupt event in deep sleep state.
Definition zpal_init.h:61
@ ZPAL_RESET_REASON_WATCHDOG
Reset triggered by watchdog.
Definition zpal_init.h:60
@ ZPAL_RESET_REASON_OTHER
Reset triggered by none of the above.
Definition zpal_init.h:66
@ ZPAL_RESET_REASON_SOFTWARE
Reset triggered by software.
Definition zpal_init.h:63
zpal_status_t
ZPAL statuses to be used by ZPAL APIs.
Definition zpal_status.h:38