nRF51 SDK - S130 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Persistent Memory Interface Data Types

Data Types needed for interfacing with persistent memory. More...

Data Structures

struct  pstorage_module_param_t
 

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 Error Reporting Callback. More...
 

Detailed Description

Data Types needed for interfacing with persistent memory.

Typedef Documentation

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 Error Reporting Callback.

Persistent Storage Error Reporting Callback that is used by the interface to report success or failure of a flash operation. Therefore, for any operations, application can know when the procedure was complete. For store operation, since no data copy is made, receiving a success or failure notification, indicated by the reason parameter of callback is an indication that the resident memory could now be reused or freed, as the case may be.

Parameters
[in]handleIdentifies module and block for which callback is received.
[in]op_codeIdentifies the operation for which the event is notified.
[in]resultIdentifies the result of flash access operation. NRF_SUCCESS implies, operation succeeded.
[in]p_dataIdentifies the application data pointer. In case of store operation, this points to the resident source of application memory that application can now free or reuse. In case of clear, this is NULL as no application pointer is needed for this operation.
[in]data_lenLength data application had provided for the operation.