nRF51 SDK: Persistent Memory Interface Data Types

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Typedefs
Persistent Memory Interface Data Types
Persistent Storage Interface

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 store operation or clear operations, that take time, 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. This callback is not received for load operation.

Parameters

  [in] | handle | Identifies module and block for which callback is received.
  [in] | op_code | Identifies the operation for which the event is notified.
  [in] | result | Identifies the result of flash access operation. NRF_SUCCESS implies, operation succeeded.
  [in] | p_data | Identifies 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_len | Length data application had provided for the operation.