Extended operations for Realtek RTS5912 flash controller.
More...
Extended operations for Realtek RTS5912 flash controller.
◆ 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
-
|
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
-
|
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
-
in | Not used. |
out | A 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
-
in | Not used. |
out | A 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
-
in | Not used. |
out | A 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
-
in | Not used. |
out | A 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
-
in | Not used. |
out | A 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
-
in | Not used. |
out | A 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. |
|