S32 SDK
flash_mx25l6433f_driver.h File Reference
#include <stddef.h>
#include <stdbool.h>
#include "device_registers.h"
#include "status.h"
#include "quadspi_driver.h"

Go to the source code of this file.

Data Structures

struct  flash_mx25l6433f_user_config_t
 Driver configuration structure. More...
 
struct  flash_mx25l6433f_state_t
 Driver internal context structure. More...
 
struct  flash_mx25l6433f_secure_lock_t
 Flash protection settings Implements : flash_mx25l6433f_secure_lock_t_Class. More...
 

Enumerations

enum  flash_mx25l6433f_prot_dir_t { FLASH_MX25L6433F_PROT_DIR_TOP = 0x00U, FLASH_MX25L6433F_PROT_DIR_BOTTOM = 0x01U }
 Flash protection direction Implements : flash_mx25l6433f_prot_dir_t_Class. More...
 
enum  flash_mx25l6433f_drv_strength_t { FLASH_MX25L6433F_DRV_STRENGTH_HIGH = 0x00U, FLASH_MX25L6433F_DRV_STRENGTH_LOW = 0x01U }
 Flash device drive strength Implements : flash_mx25l6433f_drv_strength_t_Class. More...
 
enum  flash_mx25l6433f_prot_size_t {
  FLASH_MX25L6433F_PROT_SIZE_0 = 0x00U, FLASH_MX25L6433F_PROT_SIZE_64K = 0x01U, FLASH_MX25L6433F_PROT_SIZE_128K = 0x02U, FLASH_MX25L6433F_PROT_SIZE_256K = 0x03U,
  FLASH_MX25L6433F_PROT_SIZE_512K = 0x04U, FLASH_MX25L6433F_PROT_SIZE_1M = 0x05U, FLASH_MX25L6433F_PROT_SIZE_2M = 0x06U, FLASH_MX25L6433F_PROT_SIZE_4M = 0x07U,
  FLASH_MX25L6433F_PROT_SIZE_8M = 0x08U
}
 Size of flash protected area Implements : flash_mx25l6433f_prot_size_t_Class. More...
 

Functions

FLASH_MX25L6433F Driver
status_t FLASH_MX25L6433F_DRV_Init (uint32_t instance, const flash_mx25l6433f_user_config_t *userConfigPtr, flash_mx25l6433f_state_t *state)
 Initializes the serial flash memory driver. More...
 
status_t FLASH_MX25L6433F_DRV_Deinit (uint32_t instance)
 De-initialize the MX25L6433F flash driver. More...
 
status_t FLASH_MX25L6433F_DRV_SetProtection (uint32_t instance, flash_mx25l6433f_prot_dir_t direction, flash_mx25l6433f_prot_size_t size)
 Configure protected area of the device. More...
 
status_t FLASH_MX25L6433F_DRV_GetProtection (uint32_t instance, flash_mx25l6433f_prot_dir_t *direction, flash_mx25l6433f_prot_size_t *size)
 Get protected area of the device. More...
 
status_t FLASH_MX25L6433F_DRV_SetSecureLock (uint32_t instance)
 Locks the customer sector of the secured OTP area. More...
 
status_t FLASH_MX25L6433F_DRV_GetSecureLock (uint32_t instance, flash_mx25l6433f_secure_lock_t *lock)
 Get lock status of the secured OTP area. More...
 
status_t FLASH_MX25L6433F_DRV_Read (uint32_t instance, uint32_t address, uint8_t *data, uint32_t size)
 Read data from serial flash. More...
 
status_t FLASH_MX25L6433F_DRV_Erase4K (uint32_t instance, uint32_t address)
 Erase a 4k sector in the serial flash. More...
 
status_t FLASH_MX25L6433F_DRV_Erase32K (uint32_t instance, uint32_t address)
 Erase a 32k block in the serial flash. More...
 
status_t FLASH_MX25L6433F_DRV_Erase64K (uint32_t instance, uint32_t address)
 Erase a 64k block in the serial flash. More...
 
status_t FLASH_MX25L6433F_DRV_EraseAll (uint32_t instance)
 Erases the entire serial flash. More...
 
status_t FLASH_MX25L6433F_DRV_EraseVerify (uint32_t instance, uint32_t address, uint32_t size)
 Checks whether or not an area in the serial flash is erased. More...
 
status_t FLASH_MX25L6433F_DRV_Program (uint32_t instance, uint32_t address, uint8_t *data, uint32_t size)
 Writes data in serial flash. More...
 
status_t FLASH_MX25L6433F_DRV_ProgramVerify (uint32_t instance, uint32_t address, const uint8_t *data, uint32_t size)
 Verifies the correctness of the programmed data. More...
 
status_t FLASH_MX25L6433F_DRV_GetStatus (uint32_t instance)
 Get the status of the last operation. More...
 
status_t FLASH_MX25L6433F_DRV_Reset (uint32_t instance)
 Reset the serial flash device. More...
 
status_t FLASH_MX25L6433F_DRV_EnterOTP (uint32_t instance)
 Enters OTP mode. More...
 
status_t FLASH_MX25L6433F_DRV_ExitOTP (uint32_t instance)
 Exits OTP mode. More...
 
status_t FLASH_MX25L6433F_DRV_EnterDPD (uint32_t instance)
 Enters Deep Power Down mode. More...
 
status_t FLASH_MX25L6433F_DRV_ExitDPD (uint32_t instance)
 Exits Deep Power Down mode. More...