Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Flash Circular internal. More...
Functions | |
int | fcb_flash_read (const struct fcb *fcb, const struct flash_sector *sector, off_t off, void *dst, size_t len) |
int | fcb_flash_write (const struct fcb *fcb, const struct flash_sector *sector, off_t off, const void *src, size_t len) |
Flash Circular internal.
int fcb_flash_read | ( | const struct fcb * | fcb, |
const struct flash_sector * | sector, | ||
off_t | off, | ||
void * | dst, | ||
size_t | len | ||
) |
#include <include/fs/fcb.h>
Read raw data from the fcb flash sector.
[in] | fcb | FCB instance structure. |
[in] | sector | FCB sector. |
[in] | off | Read offset form sector begin. |
[out] | dst | Destination buffer. |
[in] | len | Read-out size. |
int fcb_flash_write | ( | const struct fcb * | fcb, |
const struct flash_sector * | sector, | ||
off_t | off, | ||
const void * | src, | ||
size_t | len | ||
) |
#include <include/fs/fcb.h>
Write raw data to the fcb flash sector.
[in] | fcb | FCB instance structure. |
[in] | sector | FCB sector. |
[in] | off | Write offset form sector begin. |
[out] | src | Source buffer. |
[in] | len | Read-out size. |