61 (
char*)myarg->
fwdnx.c_str(),
63 (
char*)myarg->
osdnx.c_str(),
66 (
char*)myarg->
usbsn.c_str()
70 printf(
"USBSN: %s -- Downloader thread failed %d Returned error code:%d -- %s\n", myarg->
usbsn.c_str(), ThreadId_, er.
error_code, er.
error_message);
72 printf(
"USBSN: %s -- Downloader thread succeed %d Returned error code:%d -- %s\n", myarg->
usbsn.c_str(), ThreadId_, er.
error_code, er.
error_message);
virtual void setusbreadwritedelay(unsigned long delayms)
Set the delay time for before each USB bulk read/write in miliseconds.
virtual bool getlasterror(LastError *er)
Get the Last error from XFSTK API version string.
Definition: xfstk-dldr-example-parallel.h:48
string usbsn
Definition: xfstk-dldr-example-parallel.h:43
string usbsn
Definition: xfstk-dldr-example-parallel.h:50
string fwimage
Definition: xfstk-dldr-example-parallel.h:39
unsigned long error_code
Definition: xfstkdldrapi.h:68
This interface enables the development of Intel SoC firmware/operating system provisioning applicatio...
Definition: xfstkdldrapi.h:124
virtual bool downloadmtfwosasync(char *fwdnx, char *fwimage, char *osdnx, char *osimage, char *gpflags, char *usbsn)
Performs parallel multitarget firmware and operating system download in async mode, it will return after the download to the device is done.
virtual void settargetretrycount(int retries)
Sets the number of retries to perform during faulty USB I/O.
list< void * > list_running
Definition: xfstk-dldr-example-parallel.cpp:39
int donetargets
Definition: xfstk-dldr-example-parallel.cpp:44
string fwdnx
Definition: xfstk-dldr-example-parallel.h:38
void(* xfstkstatuspfn)(char *status, void *)
Represents an optional status callback function that can be provided to xfstk API to obtain status in...
Definition: xfstkdldrapi.h:113
string osdnx
Definition: xfstk-dldr-example-parallel.h:40
list< void * > list_done
Definition: xfstk-dldr-example-parallel.cpp:40
string gpflags
Definition: xfstk-dldr-example-parallel.h:42
string osimage
Definition: xfstk-dldr-example-parallel.h:41
virtual void setwipeifwi(bool enable)
Not a POR feature, only a testing/debug feature.
QMutex ghListMutex
Definition: xfstk-dldr-example-parallel.cpp:26
xfstkstatuspfn statuscallback
Definition: xfstk-dldr-example-parallel.h:45
Definition: xfstk-dldr-example-parallel.h:37
int failtargets
Definition: xfstk-dldr-example-parallel.cpp:45
virtual bool registerstatuscallback(xfstkstatuspfn statuspfn, void *clientdata)
Registers a callback with the xfstk api in order to obtain download status information.
char error_message[128]
Definition: xfstkdldrapi.h:69
The last error happened during download.
Definition: xfstkdldrapi.h:67