Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
bfcc82c6
Commit
bfcc82c6
authored
Nov 26, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libusbio_dummy added
parent
49ca0b16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
0 deletions
+86
-0
otherio/lib/usbio_dummy/src/os_linux/hw_x86/makefile
otherio/lib/usbio_dummy/src/os_linux/hw_x86/makefile
+15
-0
otherio/lib/usbio_dummy/src/usbio_dummy_functions.c
otherio/lib/usbio_dummy/src/usbio_dummy_functions.c
+71
-0
No files found.
otherio/lib/usbio_dummy/src/os_linux/hw_x86/makefile
0 → 100644
View file @
bfcc82c6
include
$(pwre_dir_symbols)
-include
$(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/$(type_name)_generic.mk
ifeq
($($(type_name)_generic_mk),)
-include
$(pwre_kroot)/tools/bld/src/$(os_name)/$(type_name)_generic.mk
endif
ifeq
($($(type_name)_generic_mk),)
include
$(pwre_kroot)/tools/bld/src/$(type_name)_generic.mk
endif
-include
../../special.mk
-include
../special.mk
-include
special.mk
otherio/lib/usbio_dummy/src/usbio_dummy_functions.c
0 → 100644
View file @
bfcc82c6
/*
Dummy for libusbio.a
*/
//Communication
int
USBIO_Open
(
int
*
Handle
)
{
return
-
1
;}
// int USBIO_OpenBySerialNr(int *Handle, int Serial[]);
// int USBIO_OpenByIdNr(int *Handle, int IdNr);
int
USBIO_Close
(
int
*
Handle
)
{
return
-
1
;}
int
USBIO_IsConnected
(
int
*
Handle
)
{
return
-
1
;}
// int USBIO_SetTimeOut(int *Handle, unsigned int TimeOut);
// int USBIO_ListAll(int *Antal, int IdNr[]); //Ändra, mer info
//Read
int
USBIO_ReadDI
(
int
*
Handle
,
int
Port
,
int
*
Value
)
{
return
-
1
;}
int
USBIO_ReadChannelDI
(
int
*
Handle
,
int
Port
,
int
Channel
,
int
*
Value
)
{
return
-
1
;}
int
USBIO_ReadAI
(
int
*
Handle
,
int
Channel
,
float
*
Value
)
{
return
-
1
;}
int
USBIO_ReadAllAI
(
int
*
Handle
,
float
AIValue
[])
{
return
-
1
;}
int
USBIO_ReadADVal
(
int
*
Handle
,
int
Channel
,
int
*
Value
)
{
return
-
1
;}
int
USBIO_ReadAllADVal
(
int
*
Handle
,
int
ADValue
[])
{
return
-
1
;}
int
USBIO_ReadCounter
(
int
*
Handle
,
unsigned
int
*
Value
,
int
*
Overflow
)
{
return
-
1
;}
int
USBIO_ReadUART
(
int
*
Handle
,
int
*
Nr
,
unsigned
char
Value
[],
int
*
Overflow
)
{
return
-
1
;}
// int USBIO_ReadFreq( int *Handle, float *Value, float *Width);
//Write
int
USBIO_WriteDO
(
int
*
Handle
,
int
Port
,
int
Value
)
{
return
-
1
;}
int
USBIO_WriteChannelDO
(
int
*
Handle
,
int
Port
,
int
Channel
,
int
Value
)
{
return
-
1
;}
int
USBIO_WriteAO
(
int
*
Handle
,
int
Channel
,
float
Value
)
{
return
-
1
;}
int
USBIO_WritePWM
(
int
*
Handle
,
int
Channel
,
int
Value
)
{
return
-
1
;}
int
USBIO_WriteLowFreq
(
int
*
Handle
,
int
Freq
,
unsigned
char
PortA
,
unsigned
char
PortB
,
unsigned
char
PortC
)
{
return
-
1
;}
int
USBIO_WriteUART
(
int
*
Handle
,
unsigned
char
Value
)
{
return
-
1
;}
int
USBIO_WriteLED
(
int
*
Handle
,
int
Value
)
{
return
-
1
;}
//Configure
int
USBIO_ConfigDIO
(
int
*
Handle
,
int
Port
,
int
Value
)
{
return
-
1
;}
int
USBIO_ConfigAI
(
int
*
Handle
,
int
Value
)
{
return
-
1
;}
int
USBIO_ConfigAO
(
int
*
Handle
,
int
Value
)
{
return
-
1
;}
int
USBIO_ConfigPWM
(
int
*
Handle
,
int
Value
,
int
Freq
)
{
return
-
1
;}
int
USBIO_ConfigCounter
(
int
*
Handle
,
int
Value
)
{
return
-
1
;}
int
USBIO_ConfigUART
(
int
*
Handle
,
int
BaudRate
)
{
return
-
1
;}
//int USBIO_Reset(int *Handle);
int
USBIO_SoftReset
(
int
*
Handle
)
{
return
-
1
;}
int
USBIO_SetIdNr
(
int
*
Handle
,
int
IdNr
,
char
Description
[])
{
return
-
1
;}
int
USBIO_ConfigWatchdog
(
int
*
Handle
,
int
Active
,
int
TimeOut
,
int
Reset
,
unsigned
char
PortMask
[],
unsigned
char
Port
[],
int
AOfunction
)
{
return
-
1
;}
int
USBIO_ResetWatchdog
(
int
*
Handle
)
{
return
-
1
;}
//Status
int
USBIO_GetStatus
(
int
*
Handle
,
int
Value
[])
{
return
-
1
;}
int
USBIO_GetFirmwareVersion
(
int
*
Handle
,
char
*
Version
)
{
return
-
1
;}
int
USBIO_GetHardwareVersion
(
int
*
Handle
,
char
*
Version
)
{
return
-
1
;}
int
USBIO_GetSerialNr
(
int
*
Handle
,
unsigned
int
*
Serial
)
{
return
-
1
;}
int
USBIO_GetLibVersion
(
char
*
Version
)
{
return
-
1
;}
int
USBIO_GetIdNr
(
int
*
Handle
,
int
*
IdNr
,
char
*
Description
)
{
return
-
1
;}
//Error
int
USBIO_GetErrorString
(
int
Error
,
char
*
ErrorMessage
,
int
*
StringLength
)
{
return
-
1
;}
//Advanced functions
int
USBIO_WriteAndRead
(
int
*
Handle
,
unsigned
char
WriteBuffer
[],
unsigned
char
ReadBuffer
[])
{
return
-
1
;}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment