WE310F5  39.00.000
m2mb_xfp.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
25 #ifndef __M2MB_XFP_H__
26 #define __M2MB_XFP_H__
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
45 /*-----------------------------------------------------------------------------------------------*/
46 
51 /*-----------------------------------------------------------------------------------------------*/
52 
53 
54 #define XFP_OPERATION_IN_PROGRESS 0
55 #define XFP_OPERATION_BOOTCHARS_DETECTED 1
56 #define XFP_OPERATION_DONE 2
57 #define XFP_OPERATION_FAILED 3
58 
101 typedef M2MB_OS_RESULT_E (*xfp_io_write)(UINT8 *p, UINT32 length);
102 
137 typedef VOID (*fwup_xfp_user_cb)( UINT32 response_code );
138 
139 /*---------------------------------------------------------------------------*/
185 /*---------------------------------------------------------------------------*/
186 INT32 m2mb_xfp_open( xfp_io_write io_write_cb, M2MB_FWUP_USER_CB_T user_cb, void *user_cb_ctx);
187 
188 /*---------------------------------------------------------------------------*/
216 /*---------------------------------------------------------------------------*/
217 INT32 m2mb_xfp_io_read(uint8_t *buff, uint32_t size);
218 
222 /*-----------------------------------------------------------------------------------------------*/
223 
224 #ifdef __cplusplus
225 }
226 #endif
227 #endif /*__M2MB_XFP_H__*/
unsigned char UINT8
Definition: m2mb_types.h:86
INT32 m2mb_xfp_open(xfp_io_write io_write_cb, M2MB_FWUP_USER_CB_T user_cb, void *user_cb_ctx)
m2mb_xfp_init is called to initialize XFP module.
M2MB_OS_RESULT_E(* xfp_io_write)(UINT8 *p, UINT32 length)
IO write callback for XFP.
Definition: m2mb_xfp.h:101
enum M2MB_OS_RESULT M2MB_OS_RESULT_E
void VOID
Definition: m2mb_types.h:74
VOID(* fwup_xfp_user_cb)(UINT32 response_code)
This function prototype is Firmware Upgrade callback for XFP user.
Definition: m2mb_xfp.h:137
unsigned long int UINT32
Definition: m2mb_types.h:88
signed int INT32
Definition: m2mb_types.h:82
INT32 m2mb_xfp_io_read(uint8_t *buff, uint32_t size)
m2mb_xfp_io_read reads the XFP data sent by the XFP tool.
VOID(* M2MB_FWUP_USER_CB_T)(void *user_ctx, M2MB_FWUP_STATUS_CODE_T resp_code)
Firmware Upgrade user call back prototype.
Definition: m2mb_fwup.h:195