Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Microchip NVMCTRL G1

Extended operations for Microchip NVMCTRL G1 flash controller. More...

Files

file  mchp_nvmctrl_g1.h
 Header file for Microchip NVMCTRL G1 flash extended operations.

Data Structures

struct  flash_mchp_ex_op_userrow_data
 Parameters for user row data operations on the MCHP NVMCTRL G1 flash. More...

Typedefs

typedef struct flash_mchp_ex_op_userrow_data flash_mchp_ex_op_userrow_data_t
 Parameters for user row data operations on the MCHP NVMCTRL G1 flash.

Enumerations

enum  flash_mchp_ex_ops_t { FLASH_EX_OP_USER_ROW_ERASE , FLASH_EX_OP_USER_ROW_WRITE , FLASH_EX_OP_REGION_LOCK , FLASH_EX_OP_REGION_UNLOCK }
 Enumeration of extended operation codes for the MCHP NVMCTRL G1 flash controller. More...

Detailed Description

Extended operations for Microchip NVMCTRL G1 flash controller.

Typedef Documentation

◆ flash_mchp_ex_op_userrow_data_t

#include <zephyr/drivers/flash/mchp_nvmctrl_g1.h>

Parameters for user row data operations on the MCHP NVMCTRL G1 flash.

Used as the in argument to FLASH_EX_OP_USER_ROW_WRITE to specify the source data buffer and the target location within the user row region.

Enumeration Type Documentation

◆ flash_mchp_ex_ops_t

#include <zephyr/drivers/flash/mchp_nvmctrl_g1.h>

Enumeration of extended operation codes for the MCHP NVMCTRL G1 flash controller.

Enumerator
FLASH_EX_OP_USER_ROW_ERASE 

Erases the entire user row in flash memory.

This operation erases the user row section of flash memory starting at the base address defined by SOC_NV_USERROW_BASE_ADDR.

Parameters
inNot used.
outNot used.
FLASH_EX_OP_USER_ROW_WRITE 

Writes data to the user row in flash memory.

This operation writes data to the user row section of flash memory. The offset and data length must be aligned to the user row write block size (quad-word, typically 16 bytes).

Parameters
inPointer to a flash_mchp_ex_op_userrow_data_t structure specifying the target offset, source data buffer, and length.
outNot used.
FLASH_EX_OP_REGION_LOCK 

Locks all regions of flash memory.

This operation iterates over all lock regions of the main flash array and issues a Lock Region (LR) command for each one.

Parameters
inNot used.
outNot used.
FLASH_EX_OP_REGION_UNLOCK 

Unlocks all regions of flash memory.

This operation iterates over all lock regions of the main flash array and issues an Unlock Region (UR) command for each one.

Parameters
inNot used.
outNot used.