|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Library for interfacing with the MB85RC1MT FRAM chip via TockOS. More...
Modules | |
| FIFO | |
| Circular buffer for measurements. | |
| FRAM Definitions | |
| Definitions for interfacing with FRAM chips Fram interface definitions and helper functions. Supported fram chips implement read and write functions and expose FramInterface type. See fm24cl16b.h. | |
Functions | |
| fram_status | mb85rc1mt_write (fram_addr addr, const uint8_t *data, size_t len) |
| Write bytes to FRAM at the given address. | |
| fram_status | mb85rc1mt_read (fram_addr addr, size_t len, uint8_t *data) |
| Read bytes from FRAM at the given address. | |
| fram_addr | mb85rc1mt_size (void) |
| Get the total size of FRAM in bytes. | |
Library for interfacing with the MB85RC1MT FRAM chip via TockOS.
| fram_status mb85rc1mt_read | ( | fram_addr | addr, |
| size_t | len, | ||
| uint8_t * | data | ||
| ) |
Read bytes from FRAM at the given address.
| addr | Starting address in FRAM (0 to fram_size()-1) |
| len | Number of bytes to read |
| data | Buffer to read into (must be at least len bytes) |
Definition at line 165 of file mb85rc1mt.c.
References data, mb85rc1mt_address::dev, FRAM_ERROR, FRAM_OK, i, mb85rc1mt_sleep(), mb85rc1mt_wakeup(), and mb85rc1mt_address::mem.
| fram_addr mb85rc1mt_size | ( | void | ) |
Get the total size of FRAM in bytes.
Definition at line 247 of file mb85rc1mt.c.
| fram_status mb85rc1mt_write | ( | fram_addr | addr, |
| const uint8_t * | data, | ||
| size_t | len | ||
| ) |
Write bytes to FRAM at the given address.
| addr | Starting address in FRAM (0 to fram_size()-1) |
| data | Pointer to data to write |
| len | Number of bytes to write |
Definition at line 81 of file mb85rc1mt.c.
References buffer, data, mb85rc1mt_address::dev, FRAM_ERROR, FRAM_OK, mb85rc1mt_sleep(), mb85rc1mt_wakeup(), and mb85rc1mt_address::mem.