
TPMC500-SW-42 - VxWorks Device Driver
Page 19 of 19
5 Appendix
This chapter describes the symbols which are defined in the file
tpmc500h
.
5.1 Predefined Symbols
Ioctl Function Codes
FIOSTARTSEQ
0x00000100
Start and setup the sequencer
FIOSTOPSEQ
0x00000101
Stop the sequencer
Module Types
TPMC500_10
10 TPMC500-10
TPMC500_11
11 TPMC500-11
TPMC500_12
12 TPMC500-12
TPMC500_13
13 TPMC500-13
TPMC500_20
20 TPMC500-20
TPMC500_21
21 TPMC500-21
TPMC500_22
22 TPMC500-22
TPMC500_23
23 TPMC500-23
5.2 Error Codes
If the device driver creates an error the error codes are stored in the
errno
. They can be read with the
VxWorks function
errnoGet()
or
printErrno().
S_tp500Drv_ICHAN
0x05000001
Illegal channel number specified
S_tp500Drv_IGAIN
0x05000002 Illegal
gain
specified
S_tp500Drv_MODBUSY
0x05000003
Module is busy (the sequencer is running)
S_tp500Drv_TIMEOUT
0x05000004
Hardware timed out
S_tp500Drv_ICMD
0x05000005
Illegal I/O command
S_tp500Drv_DBLCHAN
0x05000006
Channel is already in use
S_tp500Drv_NOMEM
0x05000007
Can’t allocate memory
S_tp500Drv_NXIO
0x05000008
No module or specified module number not
found
S_tp500Drv_NODRV
0x05000009
Driver has not been started
S_tp500Drv_ILLTYPE
0x0500000A
Illegal model type specified