SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The sl_FsCtl() function can be used to retrieve information about the storage usage and the file system state. The function output contains information regarding the number of security alerts, the number of allocated files user/system, the configured storage size, the format type, and so forth.
Example:
_i32 Status;
SlFsControlGetStorageInfoResponse_t GetStorageInfoResponse;
Status = sl_FsCtl( ( SlFsCtl_e)SL_FS_CTL_GET_STORAGE_INFO, 0, NULL , NULL , 0, (_u8 *)&GetStorageInfoResponse, sizeof(SlFsControlGetStorageInfoResponse_t), NULL );
if( Status < 0 )
{
/*error */
}