LibTiePie  0.4.4
Library for interfacing TiePie engineering instruments
 All Files Functions Typedefs Macros Groups Pages
Library

Functions

TpVersion_t LibGetVersion (void)
 Get library version number.
 
uint32_t LibGetConfig (uint8_t *pBuffer, uint32_t dwBufferLength)
 Get library configuration number.
 
LibTiePieStatus_t LibGetLastStatus (void)
 Get last status value, last status is set after each call to the library.
 
const char * LibGetLastStatusStr (void)
 Get last status value as text, last status is set after each call to the library.
 

Detailed Description

Function Documentation

TpVersion_t LibGetVersion ( void  )

Get library version number.

Returns
Library version number.
Example
uint16_t wMajor = TPVERSION_MAJOR( Version );
uint16_t wMinor = TPVERSION_MINOR( Version );
uint16_t wRelease = TPVERSION_RELEASE( Version );
uint16_t wBuild = TPVERSION_BUILD( Version );
printf( "LibGetVersion = %u.%u.%u.%u\n" , wMajor , wMinor , wRelease , wBuild );
Since
0.4.0
uint32_t LibGetConfig ( uint8_t *  pBuffer,
uint32_t  dwBufferLength 
)

Get library configuration number.

Parameters
pBuffer
dwBufferLength
Returns
Config number length.
Example
uint32_t dwLength = LibGetConfig( NULL , 0 );
uint8_t* pBuffer = malloc( sizeof( uint8_t ) * dwLength );
dwLength = LibGetConfig( Buffer , dwLength );
printf( "LibGetConfig = 0x" );
for( i = 0 ; i < dwLength ; i++ )
printf( "%02x" , pBuffer[ i ] );
printf( "\n" );
free( pBuffer );
Since
0.4.0
LibTiePieStatus_t LibGetLastStatus ( void  )

Get last status value, last status is set after each call to the library.

Returns
Status code.
See Also
LibGetLastStatusStr
Example
printf( "LibGetLastStatus = %d\n" , LibGetLastStatus() );
Since
0.4.0
const char* LibGetLastStatusStr ( void  )

Get last status value as text, last status is set after each call to the library.

Returns
Status code as text.
See Also
LibGetLastStatus
Example
printf( "LibGetLastStatusStr = %s\n" , LibGetLastStatusStr() );
Since
0.4.0