WL865E4-P  36.07.001
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 
43 /*-----------------------------------------------------------------------------------------------*/
44 
49 /*-----------------------------------------------------------------------------------------------*/
50 
51 
52 #define XFP_OPERATION_IN_PROGRESS 0
53 #define XFP_OPERATION_BOOTCHARS_DETECTED 1
54 #define XFP_OPERATION_DONE 2
55 #define XFP_OPERATION_FAILED 3
56 
99 typedef M2MB_OS_RESULT_E (*xfp_io_write)(UINT8 *p, UINT32 length);
100 
135 typedef VOID (*fwup_xfp_user_cb)( UINT32 response_code );
136 
137 /*---------------------------------------------------------------------------*/
183 /*---------------------------------------------------------------------------*/
184 INT32 m2mb_xfp_init( xfp_io_write io_write_cb, M2MB_FWUP_USER_CB_T user_cb);
185 
186 /*---------------------------------------------------------------------------*/
214 /*---------------------------------------------------------------------------*/
215 INT32 m2mb_xfp_io_read(uint8_t *buff, uint32_t size);
216 
220 /*-----------------------------------------------------------------------------------------------*/
221 
222 #ifdef __cplusplus
223 }
224 #endif
225 #endif /*__M2MB_XFP_H__*/
M2MB_OS_RESULT_E(* xfp_io_write)(UINT8 *p, UINT32 length)
IO write callback for XFP.
Definition: m2mb_xfp.h:99
unsigned char UINT8
Definition: m2mb_types.h:83
VOID(* fwup_xfp_user_cb)(UINT32 response_code)
This function prototype is Firmware Upgrade callback for XFP user.
Definition: m2mb_xfp.h:135
unsigned long int UINT32
Definition: m2mb_types.h:85
void VOID
Definition: m2mb_types.h:72
enum M2MB_OS_RESULT M2MB_OS_RESULT_E
VOID(* M2MB_FWUP_USER_CB_T)(M2MB_FWUP_STATUS_CODE_T resp_code)
Firmware Upgrade user call back prototype.
Definition: m2mb_fwup.h:201
signed int INT32
Definition: m2mb_types.h:80
INT32 m2mb_xfp_io_read(uint8_t *buff, uint32_t size)
m2mb_xfp_io_read reads the XFP data sent by the XFP tool.
INT32 m2mb_xfp_init(xfp_io_write io_write_cb, M2MB_FWUP_USER_CB_T user_cb)
m2mb_xfp_init is called to initialize XFP module.