CC3X00 Simplelink OTA Extlib API User's Guide: 1.0.0/flc_api.h Source File

CC3X00 Simplelink OTA Extlib API

CC3X00 Simplelink OTA Extlib API User's Guide  1.1.0
flc_api.h
1 /*
2  * flc_api.h - Header file for File commit lib APIs
3  *
4  * Copyright (C) 2014 Texas Instruments Incorporated
5  *
6  * All rights reserved. Property of Texas Instruments Incorporated.
7  * Restricted rights to use, duplicate or disclose this code are
8  * granted through contract.
9  * The program may not be used without the written permission of
10  * Texas Instruments Incorporated or against the terms and conditions
11  * stipulated in the agreement under which this program has been supplied,
12  * and under no circumstances can it be used with non-TI connectivity device.
13  *
14 */
15 #ifndef __FLC_API_H__
16 #define __FLC_API_H__
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define FLC_LIB_VERSION "1.00"
23 
24 #define FLC_COMMITED 1
25 #define FLC_NOT_COMMITED 0
26 
27 #define FLC_TEST_RESET_MCU 0x1
28 #define FLC_TEST_RESET_NWP 0x2
29 #define FLC_TEST_RESET_MCU_WITH_APP 0x4
30 
31 /*****************************************************************************
32 
33  API Prototypes
34 
35  *****************************************************************************/
36 
89 _i32 sl_extlib_FlcCommit(_i32 CommitFlag);
90 
137 _i32 sl_extlib_FlcTest(_i32 flags);
138 
145 
164 _i32 sl_extlib_FlcOpenFile(_u8 *file_name, _i32 file_size, _u32 *ulToken, _i32 *lFileHandle, _i32 open_flags);
165 
179 _i32 sl_extlib_FlcReadFile(_i32 fileHandle, _i32 offset, _u8 *buf, _i32 len);
180 
194 _i32 sl_extlib_FlcWriteFile(_i32 fileHandle, _i32 offset, _u8 *buf, _i32 len);
195 
206 _i32 sl_extlib_FlcCloseFile(_i32 fileHandle, _u8 *pCeritificateFileName,_u8 *pSignature ,_u32 SignatureLen);
207 
218 _i32 sl_extlib_FlcAbortFile(_i32 fileHandle);
219 
220 #ifdef __cplusplus
221 }
222 #endif /* __cplusplus */
223 
224 #endif /* __FLC_API_H__ */
225 
_i32 sl_extlib_FlcOpenFile(_u8 *file_name, _i32 file_size, _u32 *ulToken, _i32 *lFileHandle, _i32 open_flags)
Open file for write.
_i32 sl_extlib_FlcCloseFile(_i32 fileHandle, _u8 *pCeritificateFileName, _u8 *pSignature, _u32 SignatureLen)
Close a previously opened file.
_i32 sl_extlib_FlcReadFile(_i32 fileHandle, _i32 offset, _u8 *buf, _i32 len)
Read specified number of bytes from a file.
_i32 sl_extlib_FlcTest(_i32 flags)
Set the system to boot in test mode for new downloaded images.
_i32 sl_extlib_FlcCommit(_i32 CommitFlag)
Commits the newly downloaded images (MCU and NWP)
_i32 sl_extlib_FlcWriteFile(_i32 fileHandle, _i32 offset, _u8 *buf, _i32 len)
Write specified number of bytes to a file.
_i32 sl_extlib_FlcIsPendingCommit(void)
Check on bootloader flags if the state is IMG_STATUS_TESTING.
_i32 sl_extlib_FlcAbortFile(_i32 fileHandle)
Abort a file update.
Generated on Wed Mar 4 2015 15:37:50 for CC3X00 Simplelink OTA Extlib API User's Guide by   doxygen 1.8.7