Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Flash Circular internal. More...

Functions

int fcb_flash_read (const struct fcb *fcbp, const struct flash_sector *sector, off_t off, void *dst, size_t len)
 Read raw data from the fcb flash sector.
 
int fcb_flash_write (const struct fcb *fcbp, const struct flash_sector *sector, off_t off, const void *src, size_t len)
 Write raw data to the fcb flash sector.
 

Detailed Description

Flash Circular internal.

Function Documentation

◆ fcb_flash_read()

int fcb_flash_read ( const struct fcb fcbp,
const struct flash_sector sector,
off_t  off,
void *  dst,
size_t  len 
)

#include <include/zephyr/fs/fcb.h>

Read raw data from the fcb flash sector.

Parameters
[in]fcbpFCB instance structure.
[in]sectorFCB sector.
[in]offRead offset form sector begin.
[out]dstDestination buffer.
[in]lenRead-out size.
Returns
0 on success, negative errno code on fail.

◆ fcb_flash_write()

int fcb_flash_write ( const struct fcb fcbp,
const struct flash_sector sector,
off_t  off,
const void *  src,
size_t  len 
)

#include <include/zephyr/fs/fcb.h>

Write raw data to the fcb flash sector.

Parameters
[in]fcbpFCB instance structure.
[in]sectorFCB sector.
[in]offWrite offset form sector begin.
[in]srcSource buffer.
[in]lenWrite size.
Returns
0 on success, negative errno code on fail.