TizenRT Libs&Environment  v2.0 M2
fota_hal.h File Reference
#include <tinyara/config.h>
#include <sys/types.h>
Include dependency graph for fota_hal.h:

Go to the source code of this file.

Data Structures

struct  fotahal_bin_header_s
 

Macros

#define EXTERN   extern
 

Typedefs

typedef enum fota_partition_id_s fota_partition_id_t
 
typedef struct fotahal_bin_header_s fotahal_bin_header_t
 
typedef enum fotahal_return_e fotahal_return_t
 
typedef void * fotahal_handle_t
 

Enumerations

Functions

fotahal_handle_t fotahal_open (void)
 
fotahal_return_t fotahal_write (fotahal_handle_t handle, const char *buffer, uint32_t bin_size)
 
fotahal_return_t fotahal_erase (fotahal_handle_t handle)
 
fotahal_return_t fotahal_update_bootparam (fotahal_handle_t handle)
 
fotahal_return_t fotahal_close (fotahal_handle_t handle)
 

Macro Definition Documentation

#define EXTERN   extern

Definition at line 82 of file fota_hal.h.

Typedef Documentation

Definition at line 40 of file fota_hal.h.

Definition at line 51 of file fota_hal.h.

typedef void* fotahal_handle_t

Definition at line 73 of file fota_hal.h.

Definition at line 71 of file fota_hal.h.

Enumeration Type Documentation

Enumerator
FOTA_PARTITION_OTA0 
FOTA_PARTITION_OTA1 
FOTA_PARTITION_MAX 

Definition at line 34 of file fota_hal.h.

Enumerator
FOTAHAL_RETURN_SUCCESS 
FOTAHAL_RETURN_ERROR 
FOTAHAL_RETURN_OPENFAIL 
FOTAHAL_RETURN_WRITEFAIL 
FOTAHAL_RETURN_ERASEFAIL 
FOTAHAL_RETURN_CLOSEFAIL 
FOTAHAL_RETURN_CHECKSUMFAIL 
FOTAHAL_RETURN_WRONGMAGIC 
FOTAHAL_RETURN_WRONGBIN 
FOTAHAL_RETURN_WRONGSIZE 
FOTAHAL_RETURN_WRONGHANDLE 
FOTAHAL_RETURN_PART_NOTSET 
FOTAHAL_RETURN_BIN_NOTSET 
FOTAHAL_RETURN_PARAM_NOTSET 
FOTAHAL_RETURN_MAX 

Definition at line 53 of file fota_hal.h.

Function Documentation

fotahal_return_t fotahal_close ( fotahal_handle_t  handle)
fotahal_return_t fotahal_erase ( fotahal_handle_t  handle)
fotahal_handle_t fotahal_open ( void  )
fotahal_return_t fotahal_update_bootparam ( fotahal_handle_t  handle)
fotahal_return_t fotahal_write ( fotahal_handle_t  handle,
const char *  buffer,
uint32_t  bin_size 
)