Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mchp_nvmctrl_g1.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
20
21#ifndef INCLUDE_ZEPHYR_DRIVERS_FLASH_MCHP_NVMCTRL_G1_H_
22#define INCLUDE_ZEPHYR_DRIVERS_FLASH_MCHP_NVMCTRL_G1_H_
23
31typedef enum {
32 /* Erase the user row in flash memory. */
34
35 /* Write data to the user row in flash memory. */
37
38 /* Lock a specific region of flash memory. */
40
41 /* Unlock a specific region of flash memory. */
44
53 /* Pointer to the data buffer to be written or read. */
54 const void *data;
55
56 /* Length of the data buffer in bytes. */
57 size_t data_len;
58
59 /* Offset within the user row region where the operation starts. */
62
63#endif /*INCLUDE_ZEPHYR_DRIVERS_FLASH_MCHP_NVMCTRL_G1_H_*/
__INTPTR_TYPE__ off_t
Definition types.h:36
struct flash_mchp_ex_op_userrow_data flash_mchp_ex_op_userrow_data_t
Structure for user row data operations in MCHP flash.
flash_mchp_ex_ops_t
Extended flash operation codes for MCHP flash controller.
Definition mchp_nvmctrl_g1.h:31
@ FLASH_EX_OP_USER_ROW_WRITE
Definition mchp_nvmctrl_g1.h:36
@ FLASH_EX_OP_REGION_LOCK
Definition mchp_nvmctrl_g1.h:39
@ FLASH_EX_OP_REGION_UNLOCK
Definition mchp_nvmctrl_g1.h:42
@ FLASH_EX_OP_USER_ROW_ERASE
Definition mchp_nvmctrl_g1.h:33
Structure for user row data operations in MCHP flash.
Definition mchp_nvmctrl_g1.h:52
const void * data
Definition mchp_nvmctrl_g1.h:54
size_t data_len
Definition mchp_nvmctrl_g1.h:57
off_t offset
Definition mchp_nvmctrl_g1.h:60