[Next] [Previous] [Up] [Top] [Contents] [Index]

Chapter 5. ODEVs

5.3 ODEV Messages and Their Parameters


Most ODEV messages can be accepted through either the ODEV's main() function, or through a message table. Only two of the messages OPlay and OClear must be defined in a message table.

All ODEV messages, including OPlay and OClear, have their parameters passed in a parameter block pointed to by the msgData PSYX parameter. There is a parameter block type for each message declared in "PSYXs.h". Each type name is specified as <messagename>Params. There is also a union of all the types declared as ODEVparams. The union type allows the ODEV to declare main as

	short main(long msg, short mod, ODEVparams *msgData, long id);
 

and handle each message in the main procedure without having to typedef msgData differently for every message. Check the file "ODEVs.h" in the PSYX Developer's Kit for the typdef of ODEVparams.

5.3.1 - OConnect
5.3.2 - ODisconnect
5.3.3 - OInit
5.3.4 - OClose
5.3.5 - OTrialStart
5.3.6 - OTrialEnd
5.3.7 - OSuspend
5.3.8 - OResume
5.3.9 - OAlloc
5.3.10 - ONewStimOldAttribs
5.3.11 - OFree
5.3.12 - OLoad
5.3.13 - OUnLoad
5.3.14 - OPlay
5.3.15 - OClear
5.3.16 - OSplitStimRefNum
5.3.17 - OMakeStimRefNum
5.3.18 - OReadableToDisk
5.3.19 - OReadableFromDisk
5.3.20 - OQuickToDisk
5.3.21 - OQuickFromDisk

PSYX Programmer's Manual - 24 AUG 95
[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with CERN WebMaker