R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

pstorage.h File Reference

pstorage.h File Reference

Go to the source code of this file.

Data Structures

struct  pstorage_module_param_t
 Struct containing module registration context. More...

Typedefs

typedef void(* pstorage_ntf_cb_t )(pstorage_handle_t *p_handle, uint8_t op_code, uint32_t result, uint8_t *p_data, uint32_t data_len)
 Persistent storage operation completion callback function type.

Functions

uint32_t pstorage_init (void)
 Function for initializing the module.
uint32_t pstorage_register (pstorage_module_param_t *p_module_param, pstorage_handle_t *p_block_id)
 Function for registering with persistent storage interface.
uint32_t pstorage_block_identifier_get (pstorage_handle_t *p_base_id, pstorage_size_t block_num, pstorage_handle_t *p_block_id)
 Function for getting block ID with reference to base block identifier provided at the time of registration.
uint32_t pstorage_store (pstorage_handle_t *p_dest, uint8_t *p_src, pstorage_size_t size, pstorage_size_t offset)
 Function for persistently storing data of length 'size' contained in the 'p_src' address in the storage module at 'p_dest' address.
uint32_t pstorage_update (pstorage_handle_t *p_dest, uint8_t *p_src, pstorage_size_t size, pstorage_size_t offset)
 Function for updating persistently stored data of length 'size' contained in the 'p_src' address in the storage module at 'p_dest' address.
uint32_t pstorage_load (uint8_t *p_dest, pstorage_handle_t *p_src, pstorage_size_t size, pstorage_size_t offset)
 Function for loading persistently stored data of length 'size' from 'p_src' address to 'p_dest' address.
uint32_t pstorage_clear (pstorage_handle_t *p_base_id, pstorage_size_t size)
 Function for clearing data in persistent memory.
uint32_t pstorage_access_status_get (uint32_t *p_count)
 Function for getting the number of pending operations with the module.
uint32_t pstorage_raw_register (pstorage_module_param_t *p_module_param, pstorage_handle_t *p_block_id)
 Function for registering with the persistent storage interface.
uint32_t pstorage_raw_store (pstorage_handle_t *p_dest, uint8_t *p_src, pstorage_size_t size, pstorage_size_t offset)
 Function for persistently storing data of length 'size' contained in 'p_src' address in storage module at 'p_dest' address.
uint32_t pstorage_raw_clear (pstorage_handle_t *p_dest, pstorage_size_t size)
 Function for clearing data in persistent memory in raw mode.

Detailed Description

Definition in file pstorage.h.