Download PowerDNA API Reference Manual
Transcript
PowerDNA API Reference Manual, Release 4.0 DaqBIOS Command API The DaqBIOS Command API is a direct copy of DaqBIOS commands to the IOM. Every DaqBIOS command has its equivalent in the PowerDNA (PDNALib) library. Any code using the PowerDNA Library must include the file, PDNA.h, which itself includes all necessary additional header files. 2.1 Pre-defined Types and Error Codes 2.1.1 Pre-defined Types These types are defined for use within the library. DAQLIB is omitted from this document for the sake of readability. Under Microsoft Windows, it is used for functions that are exported from the DAQLib dll for the user. #define DAQLIB __declspec(dllexport) __stdcall The following types keep the API call format similar across wide range of operating systems. typedef unsigned long typedef unsigned short typedef unsigned char u32; u16; u8; typedef unsigned long typedef unsigned short typedef unsigned char uint32; uint16; uint8; typedef long typedef short typedef char int32; int16; int8; typedef unsigned long typedef LPTSTR char*; DWORD_PTR; 2.1.2 Devices and subsystems DaqBIOS defines a maximum of 16 layers (devices) inside an IOM and eight subsystems per layer. #define #define #define #define #define #define #define #define #define #define DQ_MAXDEVN DQ_MAXSS DQ_SS0IN DQ_SS0OUT DQ_SS1IN DQ_SS1OUT DQ_SS2IN DQ_SS2OUT DQ_SS3IN DQ_SS3OUT 16 8 0 1 2 3 4 5 6 7 // // // // // // // // // // sixteen layers on the bus maximum maximum number of subsystems (four input and four output) Subsystem 0 input (main and often only device SS) Subsystem 0 output (main and often only device SS) Subsystem 1 input Subsystem 1 output Subsystem 2 input Subsystem 2 output Subsystem 3 input Subsystem 3 output -2-