Flash Transport Layer Exported Functions
- group FTL_Exported_Functions
Functions
-
uint32_t ftl_save(void *pdata, uint16_t offset, uint16_t size)
Save specified value to specified FTL offset.
备注
FTL offset is pre-defined and no conflict
- 参数:
pdata – [in] specify data buffer
offset – [in] specify FTL offset to store
Min: 0
Max: depend on configured FTL size
size – [in] size to store
Min: 4
Max: depend on configured FTL size
- 返回值:
0 – status successful
otherwise – fail
- 返回:
status
-
uint32_t ftl_load(void *pdata, uint16_t offset, uint16_t size)
Load specified FTL offset parameter to specified buffer.
备注
FTL offset is pre-defined and no conflict
- 参数:
pdata – [in] specify data buffer
offset – [in] specify FTL offset to load
Min: 0
Max: depend on configured FTL size
size – [in] size to load
Min: 4
Max: depend on configured FTL size
- 返回值:
0 – status successful
otherwise – fail
- 返回:
status
-
uint32_t ftl_ioctl(uint32_t cmd, uint32_t p1, uint32_t p2)
Control function entry for FTL.
- 参数:
cmd – [in] command code for different operation
p1 – [in] command parameter T_FTL_IOCTL_CODE
p2 – [in] extended command parameters
- 返回值:
0 – status successful
otherwise – fail
- 返回:
results of control
-
uint32_t ftl_save(void *pdata, uint16_t offset, uint16_t size)