TwiceAsNice  2019-02-18
Functions
Low level commands.

Low level commands offer the lowest level access to PowerDNx hardware. More...

Functions

int DAQLIB DqInitDAQLib (void)
 Initializes the PowerDNA library internal structures. More...
 
void DAQLIB DqCleanUpDAQLib (void)
 Cleans up the PowerDNA library internal structures. More...
 
char *DAQLIB DqTranslateError (int error)
 Converts error code to ASCIIZ string. More...
 
char * DqTranslateCommand (uint32 command)
 Converts low-level command code to ASCIIZ string. More...
 
uint32 DAQLIB DqGetLibVersion (void)
 Version of the library. More...
 
uint32 DAQLIB DqGetLibVersionBuild (void)
 Version of the library. More...
 

Detailed Description

Low level commands offer the lowest level access to PowerDNx hardware.

All modes of operation ACB, DMAP, MSG depend on those commands to control the hardware

Function Documentation

◆ DqCleanUpDAQLib()

void DqCleanUpDAQLib ( void  )

Cleans up the PowerDNA library internal structures.

Cleans up the PowerDNA library internal structures This function is implicitly called under Windows when the library is loaded. You do need to explicitly called under any other OS (Linux, QNX etc...)

◆ DqGetLibVersion()

uint32 DqGetLibVersion ( void  )

Version of the library.

Read the version of the PowerDNA library

Returns
The version coded in hexadecimal: 0x00MMmmxx

◆ DqGetLibVersionBuild()

uint32 DqGetLibVersionBuild ( void  )

Version of the library.

Read the version of the PowerDNA library, including the build number

Returns
The version coded in hexadecimal: 0x00MMmmxxbb

◆ DqInitDAQLib()

int DqInitDAQLib ( void  )

Initializes the PowerDNA library internal structures.

Initializes the PowerDNA library internal structures This function is implicitly called under Windows when the library is loaded. You do need to explicitly called under any other OS (Linux, QNX etc...)

Returns
  • DQ_SUCCESS if successful. Otherwise:
  • DQ_SOCK_LIB_ERROR - Windows WSAStartup() error
  • DQ_INIT_ERROR - Error allocating memory

◆ DqTranslateCommand()

char * DqTranslateCommand ( uint32  command)

Converts low-level command code to ASCIIZ string.

Converts low-level command code to human readable string

Parameters
commandthe command code to convert
Returns
pointer to command description zero-terminated string

◆ DqTranslateError()

char * DqTranslateError ( int  error)

Converts error code to ASCIIZ string.

Converts error code to human readable message string

Parameters
errorthe error code to convert
Returns
pointer to error message zero-terminated string