Z-Wave Protocol Controller Reference
zwapi_protocol_mem.c File Reference
#include <stddef.h>
#include <string.h>
#include "zwapi_protocol_mem.h"
#include "zwapi_func_ids.h"
#include "zwapi_protocol_controller.h"
#include "zwapi_timestamp.h"
#include "zwapi_init.h"
#include "zwapi_session.h"
#include "zwapi_internal.h"
#include "zwapi_utils.h"
#include "sl_log.h"
#include "zwave_controller_endian.h"
Include dependency graph for zwapi_protocol_mem.c:

Macros

#define LOG_TAG   "zwapi_protocol_mem"
 

Functions

sl_status_t zwapi_nvr_get_value (uint8_t offset, uint8_t bLength, uint8_t *pNVRValue)
 Get a value from the NVR flash page. More...
 
sl_status_t zwapi_memory_get_ids (zwave_home_id_t *home_id, zwave_node_id_t *node_id)
 Get the Home ID and Node ID of the Z-Wave module. More...
 
sl_status_t zwapi_memory_get_byte (uint16_t offset, uint8_t *byte_value)
 Read one byte from the EEPROM. More...
 
uint8_t zwapi_memory_put_byte (uint16_t offset, uint8_t bData)
 Add one byte to the EEPROM write queue. More...
 
sl_status_t zwapi_memory_get_buffer (uint16_t offset, uint8_t *buf, uint8_t length)
 Read the number of bytes from the EEPROM. More...
 
uint8_t zwapi_memory_put_buffer (uint16_t offset, const uint8_t *buf, uint16_t length, void(*callback_function)(void))
 Copy the number of bytes to the EEPROM. More...
 
static void zwapi_memory_put_buffer_builtin_callback ()
 
uint8_t zwapi_memory_put_buffer_blocking (uint16_t offset, uint8_t *buffer, uint16_t length, uint16_t timeout)
 Copy the number of bytes to the EEPROM and waits for Z-Wave module callback before returning. More...
 

Variables

static volatile bool zwapi_memory_put_buffer_builtin_callback_called = false
 

Macro Definition Documentation

◆ LOG_TAG

#define LOG_TAG   "zwapi_protocol_mem"

Function Documentation

◆ zwapi_memory_put_buffer_builtin_callback()

static void zwapi_memory_put_buffer_builtin_callback ( )
static
Here is the caller graph for this function:

Variable Documentation

◆ zwapi_memory_put_buffer_builtin_callback_called

volatile bool zwapi_memory_put_buffer_builtin_callback_called = false
static