 |
xFSTK
1.8.1-5.311
Intel SoC Cross Platform Firmware & Software Tool Kit
|
#include "xfstk-dldr-example-parallel.h"
#include <dlfcn.h>
|
| void | status (char *message, void *clientdata) |
| |
| bool | IsContains (list< void * > *list_checking, string *usbsn) |
| |
| void | Sleepms (int delay) |
| |
| int | main (int argc, char *argv[]) |
| |
◆ PXFSTKALLOC
◆ PXFSTKDEALLOC
◆ status()
| void status |
( |
char * |
message, |
|
|
void * |
clientdata |
|
) |
| |
◆ IsContains()
| bool IsContains |
( |
list< void * > * |
list_checking, |
|
|
string * |
usbsn |
|
) |
| |
◆ Sleepms()
| void Sleepms |
( |
int |
delay | ) |
|
147 #if defined XFSTK_OS_WIN
Referenced by main().
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
157 QCoreApplication a(argc, argv);
161 hinstLib = dlopen(
"./libxfstk-dldr-api.so", RTLD_LAZY);
164 printf(
"%s\n", dlerror());
172 printf(
"%s\n", dlerror());
179 printf(
"%s\n", dlerror());
185 if(xfstktest == NULL)
190 bool provisioningok =
false;
214 printf(
"\n\nXFSTK INFO: Wait One seconds and scan for SCU device again\n");
227 thread_rec->
threadobj = (
void*)downloader;
235 myarg->
fwdnx =
"C:\\tmp\\fwdnx.bin";
236 myarg->
fwimage =
"C:\\tmp\\fwimage.bin";
237 myarg->
osdnx =
"C:\\tmp\\osdnx.bin";
238 myarg->
osimage =
"C:\\tmp\\osimage.bin";
242 cout <<
"Starting thread on USBSN: " + *
it_usbsn <<
"\n";
243 downloader->
Arg(myarg);
244 thread_rec->
hthread = (
void*)dlthread;
245 dlthread->
setobj(downloader);
273 printf(
"\n\nXFSTK INFO: %d devices soccessful out of %d\n",pass,
donetargets);
286 cout <<
"Press any key to terminate this program. " ;
References DlThreadObj::Arg(), donetargets, failtargets, arg_type::fwdnx, arg_type::fwimage, xfstkdldrapi::getavailabletargets(), ghListMutex, arg_type::gpflags, hinstLib, thread_rectype::hthread, IsContains(), it_done, it_running, it_usbsn, list_done, list_running, list_usbsn, arg_type::osdnx, arg_type::osimage, Dlthread::setobj(), Sleepms(), status(), arg_type::statuscallback, thread_rectype::threadobj, totaltargets, arg_type::usbsn, thread_rectype::usbsn, xfstkalloc, and xfstkdealloc.
◆ ghMutex
◆ ghListMutex
◆ hinstLib
◆ xfstkalloc
◆ xfstkdealloc
◆ list_usbsn
◆ it_usbsn
| list<string>::iterator it_usbsn |
◆ list_running
◆ list_done
◆ it_running
| list<void*>::iterator it_running |
◆ it_done
| list<void*>::iterator it_done |
◆ totaltargets
◆ donetargets
◆ failtargets
void status(char *message, void *clientdata)
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:38
list< void * >::iterator it_done
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:52
void * threadobj
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:49
string gpflags
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:42
int totaltargets
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:53
string osdnx
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:40
PXFSTKDEALLOC xfstkdealloc
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:35
PXFSTKALLOC xfstkalloc
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:34
string fwimage
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:39
string usbsn
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:43
int failtargets
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:55
void setobj(DlThreadObj *obj)
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:104
list< void * > list_running
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:49
list< string >::iterator it_usbsn
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:48
void * hthread
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:51
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:70
string osimage
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:41
xfstkstatuspfn statuscallback
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:45
list< void * > list_done
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:50
string fwdnx
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:38
list< string > list_usbsn
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:47
int donetargets
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:54
bool IsContains(list< void * > *list_checking, string *usbsn)
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:130
virtual int getavailabletargets()
Reports the number of available targets connected to the host system.
xfstkdldrapi *(* PXFSTKALLOC)()
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:30
void(* PXFSTKDEALLOC)(xfstkdldrapi *)
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:31
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:55
void * hinstLib
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:33
QMutex ghListMutex
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:27
list< void * >::iterator it_running
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:51
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:37
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:48
void Sleepms(int delay)
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:145
string usbsn
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:50
Definition: xfstkdldrapi.h:124
QMutex ghMutex
Definition: xfstk-dldr-example-parallel-dynamic-load/xfstk-dldr-example-parallel.cpp:26
void * Arg() const
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:60