Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
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
12
13#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_IO_FLASH_H__
14#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BLOB_IO_FLASH_H__
15
16#include <stdint.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
27
36
37
38 /* Internal flash area pointer. */
39 const struct flash_area *area;
40 /* BLOB stream. */
42};
43
53 uint8_t area_id, off_t offset);
54
56
57#ifdef __cplusplus
58}
59#endif
60
61#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:143
__INTPTR_TYPE__ off_t
Definition types.h:36
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
BLOB flash stream.
Definition blob_io_flash.h:29
struct bt_mesh_blob_io io
Definition blob_io_flash.h:41
uint8_t area_id
Flash area ID to write the BLOB to.
Definition blob_io_flash.h:31
enum bt_mesh_blob_io_mode mode
Active stream mode.
Definition blob_io_flash.h:33
const struct flash_area * area
Definition blob_io_flash.h:39
off_t offset
Offset into the flash area to place the BLOB at (in bytes).
Definition blob_io_flash.h:35
BLOB stream.
Definition blob.h:151
Flash partition.
Definition flash_map.h:57