![]() |
W60X_Arduino
|
W600InnerFlashClass Class Reference
Public Member Functions | |
int | begin () |
This function is used to inialize inner flash driver. More... | |
bool | flashEraseSector (uint32_t sector) |
This function is used to erase flash by sectors. More... | |
bool | flashWrite (uint32_t offset, uint8_t *data, size_t size) |
This function is used to write data to flash. More... | |
bool | flashRead (uint32_t offset, uint8_t *data, size_t size) |
This function is used to read data from flash. More... | |
Member Function Documentation
◆ begin()
int W600InnerFlashClass::begin | ( | ) |
This function is used to inialize inner flash driver.
- Parameters
-
[in] None [out] None
- Returns
- None
- Note
◆ flashEraseSector()
bool W600InnerFlashClass::flashEraseSector | ( | uint32_t | sector | ) |
This function is used to erase flash by sectors.
- Parameters
-
[in] sector 240-251, other sector can not be erased for special usage [out] None
- Returns
- None
- Note
- Only sectors from 240 to 251 can be used to user operation.
◆ flashRead()
bool W600InnerFlashClass::flashRead | ( | uint32_t | offset, |
uint8_t * | data, | ||
size_t | size | ||
) |
This function is used to read data from flash.
- Parameters
-
[in] offset range from 0x00000 to 0xFFFFF [in/out] data : data to be read from flash [in] size : data length to be written to flash [out] None
- Returns
- None
- Note
◆ flashWrite()
bool W600InnerFlashClass::flashWrite | ( | uint32_t | offset, |
uint8_t * | data, | ||
size_t | size | ||
) |
This function is used to write data to flash.
- Parameters
-
[in] offset range from 0xF0000 to 0xFBFFF [in] data : data to be written to flash [in] size : data length to be written to flash [out] None
- Returns
- None
- Note
- Only area from 0xF0000 to 0xFBFFF can be written.
- Parameters
-
[in] offset :range from 0xF0000 to 0xFBFFF [in] data : data to be written to flash [in] size : data length to be written to flash [out] None
- Returns
- None
- Note
- Only area from 0xF0000 to 0xFBFFF can be written.
Generated by
