Zephyr API 3.6.99
Loading...
Searching...
No Matches
blob_io_flash.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_IO_FLASH_H__
8#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_IO_FLASH_H__
9
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
30
31
32 /* Internal flash area pointer. */
33 const struct flash_area *area;
34 /* BLOB stream. */
36};
37
47 uint8_t area_id, off_t offset);
48
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_IO_FLASH_H__ */
int bt_mesh_blob_io_flash_init(struct bt_mesh_blob_io_flash *flash, uint8_t area_id, off_t offset)
Initialize a flash stream.
bt_mesh_blob_io_mode
BLOB stream interaction mode.
Definition blob.h:137
__INTPTR_TYPE__ off_t
Definition types.h:36
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
BLOB flash stream.
Definition blob_io_flash.h:23
struct bt_mesh_blob_io io
Definition blob_io_flash.h:35
uint8_t area_id
Flash area ID to write the BLOB to.
Definition blob_io_flash.h:25
enum bt_mesh_blob_io_mode mode
Active stream mode.
Definition blob_io_flash.h:27
const struct flash_area * area
Definition blob_io_flash.h:33
off_t offset
Offset into the flash area to place the BLOB at (in bytes).
Definition blob_io_flash.h:29
BLOB stream.
Definition blob.h:145
Flash partition.
Definition flash_map.h:59