56 #define NVRAM_READY_TIMEOUT_MS 5
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
unsigned char U8
Binary 8-Bit unsigned integer datatype defenition.
Definition: Defines.h:183
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
TFM25V02 object_FM25V02
Export global NVRAM object.
Definition: FM25V02.cpp:66
SPI connected memory base class header file.
NVRAM memory hardware driver.
Definition: FM25V02.h:64
virtual BOOL Read_Buffer(U32 u32_Linear_Address, U32 u32_Size, U8 *u8_Data_Buffer)
Read data from memory into buffer.
Definition: FM25V02.cpp:679
TFM25V02()
Class constructor method.
Definition: FM25V02.cpp:72
VOID Translate_Address(U32 u32_Address, U8 *u8_Address_Size, U8 *u8_Address_Byte_2, U8 *u8_Address_Byte_1, U8 *u8_Address_Byte_0)
Address translation method.
Definition: FM25V02.cpp:403
virtual BOOL Write_Buffer(U32 u32_Linear_Address, U32 u32_Size, U8 *u8_Data_Buffer)
Write data from buffer into memory.
Definition: FM25V02.cpp:819
BOOL Is_Address_In_Range(U32 u32_Address, U32 u32_Size)
Address in range checking method.
Definition: FM25V02.cpp:526
VOID Init()
Driver initialisation method.
Definition: FM25V02.cpp:88
virtual BOOL Verify_Buffer(U32 u32_Linear_Address, U32 u32_Size, U8 *u8_Data_Buffer)
Write data from buffer into memory.
Definition: FM25V02.cpp:967
TNVRAMCommand
Define NVRAM commands.
Definition: FM25V02.h:233
@ commandWRITE
Write Memory Data command.
Definition: FM25V02.h:253
@ commandWREN
Write Enable Latch command.
Definition: FM25V02.h:235
@ commandWRDI
Write Disable command.
Definition: FM25V02.h:238
@ commandWRSR
Write Status Register command.
Definition: FM25V02.h:244
@ commandRDSR
Read Status Register command.
Definition: FM25V02.h:241
@ commandSLEEP
Enter sleep mode command.
Definition: FM25V02.h:256
@ commandSNR
Read device serial number command.
Definition: FM25V02.h:262
@ commandREAD
Read Memory Data command.
Definition: FM25V02.h:247
@ commandRDID
Read device ID command.
Definition: FM25V02.h:259
@ commandFSTRD
Fast Read Memory Data command.
Definition: FM25V02.h:250
U8 u8_Serial_Number[8]
Serial number storage.
Definition: FM25V02.h:419
virtual BOOL Read_Status_Register(U8 *u8_Status_Register)
Read memory device status register method.
Definition: FM25V02.cpp:1109
virtual VOID Start()
Driver start operation method.
Definition: FM25V02.cpp:111
virtual BOOL Read_Memory(U32 u32_Address, U8 *u8_Data)
Read byte from device method.
Definition: FM25V02.cpp:1185
VOID Exit_Sleep_Mode()
Exit from sleep mode.
Definition: FM25V02.cpp:1584
virtual BOOL Write_Memory(U32 u32_Address, U8 u8_Data)
Write byte into device method.
Definition: FM25V02.cpp:1290
union TFM25V02::TDevice_ID TDevice_ID
device ID structure
TDevice_ID struct_Device_ID
Memory device ID structure.
Definition: FM25V02.h:422
virtual BOOL Write_Status_Register(U8 u8_Status_Register)
Write memory device status register method.
Definition: FM25V02.cpp:1135
virtual ~TFM25V02()
Class destructor method.
Definition: FM25V02.cpp:80
virtual BOOL Read_Serial_Number()
Read device serial number pure virtual method.
Definition: FM25V02.cpp:1516
virtual BOOL Read_Identification()
Read memory device identification information method.
Definition: FM25V02.cpp:1408
virtual BOOL Read_Device_ID()
Read manufacturer identifier pure virtual method.
Definition: FM25V02.cpp:1447
SPI memory base class.
Definition: SPI_Memory_Base.h:55
device ID structure
Definition: FM25V02.h:78
U8 u8_Revision
Bits 5-3 : Device revision.
Definition: FM25V02.h:110
U8 u8_Device_ID[9]
Device ID buffer.
Definition: FM25V02.h:81
U8 u8_Reserved
Bits 2-0 : Reserved bits.
Definition: FM25V02.h:107
U8 u8_Family
Bits 7-5 : Device family.
Definition: FM25V02.h:98
U8 u8_Density
Bits 4-0 : Device density.
Definition: FM25V02.h:95
U8 u8_Subtype
Bits 7-6 : Device subversion.
Definition: FM25V02.h:113
U8 u8_Manufacturere_ID[7]
Device manufacturer ID.
Definition: FM25V02.h:88