Zephyr Project API 4.4.99
A Scalable Open Source RTOS
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
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
46
54
64
80
82
83#endif /* ZEPHYR_INCLUDE_DRIVERS_FLASH_M95P32_FLASH_API_EXTENSIONS_H_ */
Main header file for Flash driver API.
#define FLASH_EX_OP_VENDOR_BASE
Base of the range of vendor-specific extended operation codes.
Definition flash.h:757
flash_m95p32_ex_ops
M95P32-specific flash extended operations.
Definition m95p32_flash_api_extensions.h:38
@ 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
Read the factory and customer identification pages.
Definition m95p32_flash_api_extensions.h:40
@ 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
__INTPTR_TYPE__ off_t
Definition types.h:36
Input parameters for FLASH_M95P32_EX_OP_PAGE_PROGRAM_WITH_BUFFER_LOAD.
Definition m95p32_flash_api_extensions.h:72
const void * data
Data to program.
Definition m95p32_flash_api_extensions.h:76
size_t length
Number of bytes to program.
Definition m95p32_flash_api_extensions.h:78
off_t offset
Offset in the M95P32 main memory array.
Definition m95p32_flash_api_extensions.h:74
Input parameters for FLASH_M95P32_EX_OP_READ_ID_PAGE.
Definition m95p32_flash_api_extensions.h:48
off_t offset
Offset in the M95P32 identification area.
Definition m95p32_flash_api_extensions.h:50
size_t length
Number of bytes to read.
Definition m95p32_flash_api_extensions.h:52
Input parameters for FLASH_M95P32_EX_OP_WRITE_ID_PAGE.
Definition m95p32_flash_api_extensions.h:56
const void * data
Data to write.
Definition m95p32_flash_api_extensions.h:60
size_t length
Number of bytes to write.
Definition m95p32_flash_api_extensions.h:62
off_t offset
Offset in the customer identification page.
Definition m95p32_flash_api_extensions.h:58