ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
fram.c File Reference
#include "fram.h"
#include "fram_def.h"
#include "mb85rc1mt.h"

Go to the source code of this file.

Macros

#define FRAM_MB85RC1MT
 

Functions

fram_status fram_write (fram_addr addr, const uint8_t *data, size_t len)
 Write bytes at the given address.
 
fram_status fram_read (fram_addr addr, size_t len, uint8_t *data)
 Read bytes at the given address.
 
fram_addr fram_size (void)
 Get the total size of FRAM in bytes.
 

Variables

const fram_interface_t fram_interface
 

Macro Definition Documentation

◆ FRAM_MB85RC1MT

#define FRAM_MB85RC1MT

Definition at line 5 of file fram.c.

Variable Documentation

◆ fram_interface

const fram_interface_t fram_interface
Initial value:
= {.write_ptr = mb85rc1mt_write,
.read_ptr = mb85rc1mt_read,
.size_ptr = mb85rc1mt_size}
fram_status mb85rc1mt_write(fram_addr addr, const uint8_t *data, size_t len)
Write bytes to FRAM at the given address.
Definition mb85rc1mt.c:81
fram_status mb85rc1mt_read(fram_addr addr, size_t len, uint8_t *data)
Read bytes from FRAM at the given address.
Definition mb85rc1mt.c:165
fram_addr mb85rc1mt_size(void)
Get the total size of FRAM in bytes.
Definition mb85rc1mt.c:247

Definition at line 13 of file fram.c.

Referenced by fram_read(), fram_size(), and fram_write().