nRF Connect SDK API 0.1.0
|
Library with helper functions and routines. More...
Enumerations | |
enum | addr_type_t { ADDR_INVALID = 0 , ADDR_ANY = 1 , ADDR_SHORT = 2 , ADDR_LONG = 3 } |
Address type. More... | |
Functions | |
void | zigbee_erase_persistent_storage (zb_bool_t erase) |
Function for setting the Erase persistent storage, depending on the erase pin. | |
int | to_hex_str (char *out, uint16_t out_size, const uint8_t *in, uint8_t in_size, bool reverse) |
Function for converting an input buffer to a hex string. | |
bool | parse_hex_str (char const *in_str, uint8_t in_str_len, uint8_t *out_buff, uint8_t out_buff_size, bool reverse) |
Read array of uint8_t from hex string. | |
static bool | parse_hex_u8 (char const *s, uint8_t *value) |
Parse a hex string to uint8_t. | |
static bool | parse_hex_u16 (char const *s, uint16_t *value) |
Parse a hex string to uint16_t. | |
int | ieee_addr_to_str (char *str_buf, uint16_t buf_len, const zb_ieee_addr_t in) |
Function for converting 64-bit address to hex string. | |
addr_type_t | parse_address (const char *input, zb_addr_u *output, addr_type_t addr_type) |
Function for parsing a null-terminated string of hex characters into 64-bit or 16-bit address. | |
static bool | parse_long_address (const char *input, zb_ieee_addr_t addr) |
Function for parsing a null-terminated string of hex characters into a 64-bit address. | |
static bool | parse_short_address (const char *input, zb_uint16_t *addr) |
Function for parsing a null-terminated string of hex characters into 16-bit address. | |
zb_ret_t | zigbee_default_signal_handler (zb_bufid_t bufid) |
Function for passing signals to the default Zigbee stack event handler. | |
void | zigbee_led_status_update (zb_bufid_t bufid, uint32_t led_idx) |
Function for indicating the Zigbee network connection status on LED. | |
void | user_input_indicate (void) |
Function for indicating the default signal handler about user input on the device. | |
void | zigbee_configure_sleepy_behavior (bool enable) |
Function for enabling sleepy behavior of End Device. Must be called before zigbee_enable() is called. Also must be called after ZB_INIT(), which is called when the system is initializing. | |
void | register_factory_reset_button (uint32_t button) |
Registers which button and for how long has to be pressed in order to do Factory Reset. | |
void | check_factory_reset_button (uint32_t button_state, uint32_t has_changed) |
Checks if Factory Reset button was pressed. If so, it initiates the procedure of checking if it was pressed for specified time. | |
bool | was_factory_reset_done (void) |
Indicates whether Factory Reset was started as a result of a button press or not. | |
Library with helper functions and routines.
Provides Zigbee default handler, helper functions for parsing and converting Zigbee data, indicating status of the device at a network using onboard LEDs.