25 #ifndef __M2MB_XFP_H__ 26 #define __M2MB_XFP_H__ 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 M2MB_OS_RESULT_E(* xfp_io_write)(UINT8 *p, UINT32 length)
IO write callback for XFP.
VOID(* fwup_xfp_user_cb)(UINT32 response_code)
This function prototype is Firmware Upgrade callback for XFP user.
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.
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.