Zephyr API
4.5.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
m95p32_flash_api_extensions.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright 2026 EXALT Technologies
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_DRIVERS_FLASH_M95P32_FLASH_API_EXTENSIONS_H_
14
#define ZEPHYR_INCLUDE_DRIVERS_FLASH_M95P32_FLASH_API_EXTENSIONS_H_
15
16
#include <stddef.h>
17
#include <
sys/types.h
>
18
19
#include <
zephyr/drivers/flash.h
>
20
27
29
#define M95P32_ID_PAGE_SIZE 512U
30
32
#define M95P32_ID_AREA_SIZE (2U * M95P32_ID_PAGE_SIZE)
33
35
#define M95P32_CUSTOMER_ID_PAGE_OFFSET M95P32_ID_PAGE_SIZE
36
38
enum
flash_m95p32_ex_ops
{
40
FLASH_M95P32_EX_OP_READ_ID_PAGE
=
FLASH_EX_OP_VENDOR_BASE
,
42
FLASH_M95P32_EX_OP_WRITE_ID_PAGE
,
44
FLASH_M95P32_EX_OP_PAGE_PROGRAM_WITH_BUFFER_LOAD
,
45
};
46
48
struct
flash_m95p32_ex_op_read_id_page_in
{
50
off_t
offset
;
52
size_t
length
;
53
};
54
56
struct
flash_m95p32_ex_op_write_id_page_in
{
58
off_t
offset
;
60
const
void
*
data
;
62
size_t
length
;
63
};
64
72
struct
flash_m95p32_ex_op_page_program_with_buffer_load_in
{
74
off_t
offset
;
76
const
void
*
data
;
78
size_t
length
;
79
};
80
82
83
#endif
/* ZEPHYR_INCLUDE_DRIVERS_FLASH_M95P32_FLASH_API_EXTENSIONS_H_ */
flash.h
Main header file for Flash driver API.
FLASH_EX_OP_VENDOR_BASE
#define FLASH_EX_OP_VENDOR_BASE
Base of the range of vendor-specific extended operation codes.
Definition
flash.h:779
flash_m95p32_ex_ops
flash_m95p32_ex_ops
M95P32-specific flash extended operations.
Definition
m95p32_flash_api_extensions.h:38
FLASH_M95P32_EX_OP_WRITE_ID_PAGE
@ FLASH_M95P32_EX_OP_WRITE_ID_PAGE
Write data to the customer identification page.
Definition
m95p32_flash_api_extensions.h:42
FLASH_M95P32_EX_OP_READ_ID_PAGE
@ FLASH_M95P32_EX_OP_READ_ID_PAGE
Read the factory and customer identification pages.
Definition
m95p32_flash_api_extensions.h:40
FLASH_M95P32_EX_OP_PAGE_PROGRAM_WITH_BUFFER_LOAD
@ FLASH_M95P32_EX_OP_PAGE_PROGRAM_WITH_BUFFER_LOAD
Program main-memory pages with M95P32 buffer-load mode enabled.
Definition
m95p32_flash_api_extensions.h:44
types.h
off_t
__INTPTR_TYPE__ off_t
Definition
types.h:36
flash_m95p32_ex_op_page_program_with_buffer_load_in
Input parameters for FLASH_M95P32_EX_OP_PAGE_PROGRAM_WITH_BUFFER_LOAD.
Definition
m95p32_flash_api_extensions.h:72
flash_m95p32_ex_op_page_program_with_buffer_load_in::data
const void * data
Data to program.
Definition
m95p32_flash_api_extensions.h:76
flash_m95p32_ex_op_page_program_with_buffer_load_in::length
size_t length
Number of bytes to program.
Definition
m95p32_flash_api_extensions.h:78
flash_m95p32_ex_op_page_program_with_buffer_load_in::offset
off_t offset
Offset in the M95P32 main memory array.
Definition
m95p32_flash_api_extensions.h:74
flash_m95p32_ex_op_read_id_page_in
Input parameters for FLASH_M95P32_EX_OP_READ_ID_PAGE.
Definition
m95p32_flash_api_extensions.h:48
flash_m95p32_ex_op_read_id_page_in::offset
off_t offset
Offset in the M95P32 identification area.
Definition
m95p32_flash_api_extensions.h:50
flash_m95p32_ex_op_read_id_page_in::length
size_t length
Number of bytes to read.
Definition
m95p32_flash_api_extensions.h:52
flash_m95p32_ex_op_write_id_page_in
Input parameters for FLASH_M95P32_EX_OP_WRITE_ID_PAGE.
Definition
m95p32_flash_api_extensions.h:56
flash_m95p32_ex_op_write_id_page_in::data
const void * data
Data to write.
Definition
m95p32_flash_api_extensions.h:60
flash_m95p32_ex_op_write_id_page_in::length
size_t length
Number of bytes to write.
Definition
m95p32_flash_api_extensions.h:62
flash_m95p32_ex_op_write_id_page_in::offset
off_t offset
Offset in the customer identification page.
Definition
m95p32_flash_api_extensions.h:58
zephyr
drivers
flash
m95p32_flash_api_extensions.h
Generated on
for Zephyr API by
1.17.0