PebbleOS v4.47.0-160-g9e782207f
Loading...
Searching...
No Matches
HyperRAM

RAM driver for HyperRAM, PSRAM with a HyperBus interface. More...

Data Structures

struct  pbl_ram_hyperram
 HyperRAM. More...
 

Macros

#define PBL_RAM_HYPERRAM_DEFINE(sym, _name, _bus, _vcc)
 Define a HyperRAM.
 

Detailed Description

RAM driver for HyperRAM, PSRAM with a HyperBus interface.

It knows the memory, not the controller it is on: its identification and configuration registers, the latency its clock needs, and how it sleeps. It reaches it through its HyperBus controller, and takes its size from its identification register.

Off, the memory is in deep power-down and its controller is gated; powering it on wakes it up and sets it up again. In deep sleep it is in hybrid sleep, which keeps its contents.


Data Structure Documentation

◆ pbl_ram_hyperram

struct pbl_ram_hyperram

HyperRAM.

Data Fields
const struct pbl_hyperbus * bus Controller the memory is on.
struct pbl_ram ram RAM device.
const struct pbl_regulator * vcc Supply, or NULL.

Macro Definition Documentation

◆ PBL_RAM_HYPERRAM_DEFINE

#define PBL_RAM_HYPERRAM_DEFINE (   sym,
  _name,
  _bus,
  _vcc 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_ram_hyperram, struct pbl_ram, ram) { \
.ram = PBL_RAM_INIT(sym, _name, &(_bus)->dev, nullptr, &pbl_ram_hyperram_ops), .bus = (_bus), \
.vcc = (_vcc), \
}
HyperRAM.
Definition hyperram.h:25
RAM device.
Definition ram.h:68
#define PBL_RAM_STATE_DEFINE(sym)
Definition ram.h:83
#define PBL_RAM_INIT(sym, _name, _parent, _deps, _ops)
Definition ram.h:87

Define a HyperRAM.

Parameters
symSymbol of the device.
_nameName.
_busController, a HyperBus device.
_vccSupply, or NULL.