openVSM  1.0
 All Data Structures Files Functions Variables Pages
Data Structures | Typedefs | Functions | Variables
vsm_api.c File Reference

The main C wrapper of official API. More...

#include "vsm_api.h"

Go to the source code of this file.

Data Structures

struct  lua_global_func
 

Typedefs

typedef struct lua_global_func lua_global_func
 

Functions

IDSIMMODEL *__cdecl createdsimmodel (char *device, ILICENCESERVER *ils)
 
void __cdecl deletedsimmodel (IDSIMMODEL *model)
 
int32_t __attribute__ ((fastcall))
 [brief description] More...
 
bool APIENTRY DllMain (HINSTANCE hInstDLL, uint32_t fdwReason, LPVOID lpvReserved)
 [brief description] More...
 

Variables

lua_State * luactx = NULL
 
VSM_PIN device_pins [32]
 
IDSIMMODEL_vtable VSM_DEVICE_vtable
 
IDSIMMODEL VSM_DEVICE
 
ICPU_vtable ICPU_DEVICE_vtable
 
ICPU ICPU_DEVICE
 
bool global_device_init = false
 
bool global_device_simulate = false
 
bool global_timer_callback = false
 
bool global_on_stop = false
 
bool global_on_suspend = false
 

Detailed Description

The main C wrapper of official API.

Author
Lavrentiy Ivanov (ookam.nosp@m.i@ma.nosp@m.il.ru)
Date
22.09.2014 This file is part of OpenVSM. OpenVSM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

OpenVSM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with OpenVSM. If not, see http://www.gnu.org/licenses/.

Definition in file vsm_api.c.

Function Documentation

bool __attribute__ ( (fastcall)  )

[brief description]

[long description]

Parameters
l[description]
edx[description]
atime[description]
newstate[description]
Returns
[description]

[long description]

Parameters
l[description]
edx[description]
atime[description]
mode[description]

[long description]

Parameters
l[description]
edx[description]
atime[description]
eventid[description]

Model name

Definition at line 115 of file vsm_api.c.

bool APIENTRY DllMain ( HINSTANCE  hInstDLL,
uint32_t  fdwReason,
LPVOID  lpvReserved 
)

[brief description]

[long description]

Parameters
hInstDLL[description]
fdwReason[description]
lpvReserved[description]
Returns
[description]

Definition at line 319 of file vsm_api.c.

Variable Documentation

ICPU ICPU_DEVICE
Initial value:
=
{
.vtable = &ICPU_DEVICE_vtable,
}

Definition at line 53 of file vsm_api.c.

ICPU_vtable ICPU_DEVICE_vtable
Initial value:
=
{
.vdmhlr = icpu_vdmhlr,
.loaddata = icpu_loaddata,
.disassemble = icpu_disassemble,
.getvardata = icpu_getvardata,
}

Definition at line 45 of file vsm_api.c.

IDSIMMODEL VSM_DEVICE
Initial value:
=
{
.vtable = &VSM_DEVICE_vtable,
}

Definition at line 40 of file vsm_api.c.

IDSIMMODEL_vtable VSM_DEVICE_vtable
Initial value:
=
{
.isdigital = vsm_isdigital,
.setup = vsm_setup,
.runctrl = vsm_runctrl,
.actuate = vsm_actuate,
.indicate = vsm_indicate,
.simulate = vsm_simulate,
.callback = vsm_callback,
}

Definition at line 29 of file vsm_api.c.