SimpleLink CC3100/CC3200 Host Driver
Version 1.0.1.6
Simplifies the implementation of Internet connectivity
|
Functions | |
_u32 | _sl_GetCreateFsMode (_u32 maxSizeInBytes, _u32 accessFlags) |
_i32 | sl_FsOpen (const _u8 *pFileName, const _u32 AccessModeAndMaxSize, _u32 *pToken, _i32 *pFileHandle) |
open file for read or write from/to storage device More... | |
_i16 | sl_FsClose (const _i32 FileHdl, const _u8 *pCeritificateFileName, const _u8 *pSignature, const _u32 SignatureLen) |
close file in storage device More... | |
_i32 | sl_FsRead (const _i32 FileHdl, _u32 Offset, _u8 *pData, _u32 Len) |
Read block of data from a file in storage device. More... | |
_i32 | sl_FsWrite (const _i32 FileHdl, _u32 Offset, _u8 *pData, _u32 Len) |
write block of data to a file in storage device More... | |
_i16 | sl_FsGetInfo (const _u8 *pFileName, const _u32 Token, SlFsFileInfo_t *pFsFileInfo) |
get info on a file More... | |
_i16 | sl_FsDel (const _u8 *pFileName, const _u32 Token) |
Delete specific file from a storage or all files from a storage (format) More... | |
_i16 sl_FsClose | ( | const _i32 | FileHdl, |
const _u8 * | pCeritificateFileName, | ||
const _u8 * | pSignature, | ||
const _u32 | SignatureLen | ||
) |
close file in storage device
[in] | FileHdl | Pointer to the file (assigned from sl_FsOpen) |
[in] | pCeritificateFileName | Reserved for future use. Use NULL. |
[in] | pSignature | Reserved for future use. Use NULL. |
[in] | SignatureLen | Reserved for future use. Use 0. |
_i16 sl_FsDel | ( | const _u8 * | pFileName, |
const _u32 | Token | ||
) |
Delete specific file from a storage or all files from a storage (format)
[in] | pFileName | File Name |
[in] | Token | Reserved for future use. Use 0 |
_i16 sl_FsGetInfo | ( | const _u8 * | pFileName, |
const _u32 | Token, | ||
SlFsFileInfo_t * | pFsFileInfo | ||
) |
get info on a file
[in] | pFileName | File name |
[in] | Token | Reserved for future use. Use 0 |
[out] | pFsFileInfo | Returns the File's Information: flags,file size, allocated size and Tokens |
_i32 sl_FsOpen | ( | const _u8 * | pFileName, |
const _u32 | AccessModeAndMaxSize, | ||
_u32 * | pToken, | ||
_i32 * | pFileHandle | ||
) |
open file for read or write from/to storage device
[in] | pFileName | File Name buffer pointer |
[in] | AccessModeAndMaxSize | Options: As described below |
[in] | pToken | Reserved for future use. Use NULL for this field |
[out] | pFileHandle | Pointing on the file and used for read and write commands to the file |
AccessModeAndMaxSize possible input
FS_MODE_OPEN_READ - Read a file
FS_MODE_OPEN_WRITE - Open for write for an existing file
FS_MODE_OPEN_CREATE(maxSizeInBytes,accessModeFlags) - Open for creating a new file. Max file size is defined in bytes.
For optimal FS size, use max size in 4K-512 bytes steps (e.g. 3584,7680,117760)
Several access modes bits can be combined together from SlFileOpenFlags_e enum
_i32 sl_FsRead | ( | const _i32 | FileHdl, |
_u32 | Offset, | ||
_u8 * | pData, | ||
_u32 | Len | ||
) |
Read block of data from a file in storage device.
[in] | FileHdl | Pointer to the file (assigned from sl_FsOpen) |
[in] | Offset | Offset to specific read block |
[out] | pData | Pointer for the received data |
[in] | Len | Length of the received data |
_i32 sl_FsWrite | ( | const _i32 | FileHdl, |
_u32 | Offset, | ||
_u8 * | pData, | ||
_u32 | Len | ||
) |
write block of data to a file in storage device
[in] | FileHdl | Pointer to the file (assigned from sl_FsOpen) |
[in] | Offset | Offset to specific block to be written |
[in] | pData | Pointer the transmitted data to the storage device |
[in] | Len | Length of the transmitted data |