Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Extended operations for Realtek RTS5912 flash controller. More...

Files

file  rts5912_flash_api_ex.h
 Header file for Realtek RTS5912 flash extended operations.
 

Enumerations

enum  flash_rts5912_ex_ops {
  FLASH_RTS5912_EX_OP_WR_ENABLE = FLASH_EX_OP_VENDOR_BASE , FLASH_RTS5912_EX_OP_WR_DISABLE , FLASH_RTS5912_EX_OP_WR_SR , FLASH_RTS5912_EX_OP_WR_SR2 ,
  FLASH_RTS5912_EX_OP_RD_SR , FLASH_RTS5912_EX_OP_RD_SR2 , FLASH_RTS5912_EX_OP_SET_WP , FLASH_RTS5912_EX_OP_GET_WP
}
 Enumeration for Realtek RTS5912 flash extended operations. More...
 

Detailed Description

Extended operations for Realtek RTS5912 flash controller.

Enumeration Type Documentation

◆ flash_rts5912_ex_ops

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

Enumeration for Realtek RTS5912 flash extended operations.

Enumerator
FLASH_RTS5912_EX_OP_WR_ENABLE 

Sends the Write Enable (WREN) command to the flash chip.

This operation sets the Write Enable Latch (WEL) bit in the flash memory's status register, allowing write and erase operations.

Parameters
inNot used.
outNot used.
FLASH_RTS5912_EX_OP_WR_DISABLE 

Sends the Write Disable (WRDI) command to the flash chip.

This operation resets the Write Enable Latch (WEL) bit, protecting the memory from being written or erased.

Parameters
inNot used.
outNot used.
FLASH_RTS5912_EX_OP_WR_SR 

Writes to the flash Status Register 1 (SR1).

This operation writes a single byte to the main status register.

Parameters
inNot used.
outA pointer to a uint8_t containing the value to be written to SR1.
FLASH_RTS5912_EX_OP_WR_SR2 

Writes to the flash Status Register 2 (SR2).

This operation writes a single byte to the second status register.

Parameters
inNot used.
outA pointer to a uint8_t containing the value to be written to SR2.
FLASH_RTS5912_EX_OP_RD_SR 

Reads the flash Status Register 1 (SR1).

This operation reads a single byte from the main status register.

Parameters
inNot used.
outA pointer to a uint8_t buffer where the read value of SR1 will be stored.
FLASH_RTS5912_EX_OP_RD_SR2 

Reads the flash Status Register 2 (SR2).

This operation reads a single byte from the second status register.

Parameters
inNot used.
outA pointer to a uint8_t buffer where the read value of SR2 will be stored.
FLASH_RTS5912_EX_OP_SET_WP 

Sets the hardware Write Protect (WP#) pin state.

This operation controls the controller's hardware WP# pin output.

Parameters
inNot used.
outA pointer to a uint8_t. If the value is non-zero, the WP# pin is asserted (active low). If zero, it is de-asserted.
FLASH_RTS5912_EX_OP_GET_WP 

Gets the hardware Write Protect (WP#) pin state.

This operation reads the current state of the controller's hardware WP# pin setting.

Parameters
inNot used.
outA pointer to a uint8_t buffer to store the current WP# pin state. A non-zero value indicates the pin is configured to be asserted.