Added access to VWriteBE from python
This commit is contained in:
parent
2d59ab45b4
commit
3cfea83aa5
3 changed files with 23 additions and 0 deletions
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
// Define pointers to the external API functions
|
||||
static wfunc_p Vwrite;
|
||||
static wbefunc_p VwriteBE;
|
||||
static rfunc_p Vread;
|
||||
static wbfunc_p VburstWrite;
|
||||
static rbfunc_p VburstRead;
|
||||
|
|
@ -56,6 +57,12 @@ static int BindToApiFuncs(void)
|
|||
fprintf(stderr, "***ERROR: failed to find symbol VWrite\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((VwriteBE = (wfunc_p)dlsym(hdl, "VWriteBE")) == NULL)
|
||||
{
|
||||
fprintf(stderr, "***ERROR: failed to find symbol VWriteBE\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((Vread = (rfunc_p)dlsym(hdl, "VRead")) == NULL)
|
||||
{
|
||||
|
|
@ -207,6 +214,15 @@ uint32_t PyWrite (const uint32_t addr, const uint32_t data, const int delta, con
|
|||
return Vwrite(addr, data, delta, node);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// VWriteBE wrapper function for Python
|
||||
// ------------------------------------------------------------
|
||||
|
||||
uint32_t PyWriteBE (const uint32_t addr, const uint32_t data, const uint32_t be, const int delta, const uint32_t node)
|
||||
{
|
||||
return VwriteBE(addr, data, be, delta, node);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------
|
||||
// VRead wrapper function for Python
|
||||
// ------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue