PebbleOS v4.45.0-75-g82ce53758
Loading...
Searching...
No Matches
nvmem.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <pbl/device.h>

Data Structures

struct  pbl_nvmem_ops
 Provider operations. More...
 
struct  pbl_nvmem
 Non-volatile memory. More...
 
struct  pbl_nvmem_cell
 A data item in a memory, as used by a consumer. More...
 

Macros

#define PBL_NVMEM_INIT(sym, _name, _init, _deps, _ops, _size, _word_size, _stride)
 Initializer of a struct pbl_nvmem, for providers.
 
#define PBL_NVMEM_CELL(_nvmem, _offset, _bytes)
 Initializer of a struct pbl_nvmem_cell.
 

Functions

int pbl_nvmem_cell_read (const struct pbl_nvmem_cell *cell, void *buf, size_t len)
 Read a cell.
 
int pbl_nvmem_device_read (const struct pbl_nvmem *nvmem, unsigned int offset, size_t bytes, void *buf)
 Read raw bytes from a memory.
 

Variables

const struct pbl_device_class pbl_nvmem_class
 Class of the non-volatile memories.