chipset.h File Reference

Driver list handling functions. More...


Functions

const DrvInt_tDriverFirst (void)
 Returns the first driver in the list.
const DrvInt_tDriverNext (void)
 Returns the next driver in the list.
const DrvInt_tDriverSearch (const char *DrvName)
 Serach for a specific driver.
void DriverPrintInfo (const DrvInt_t *DrvPtr, int Mode)
 Print driver informations to stdout.
int DriverMaxBlock (void)
 Give the size of larger data block in the driver list.
int DriverMaxSize (void)
 Give the size of larger total data block in the driver list.


Detailed Description

Driver list handling functions.

Author:
Alessandro Accattini
Date:
9 Gen 2018 The full driver list and all list handling functions are implemented in this file.

Function Documentation

const DrvInt_t* DriverFirst ( void   ) 

Returns the first driver in the list.

Returns:
The first driver in the list.
This function, together with DriverNext(), constitutes the way to access the driver list. A call to DriverFirst() always returns the first list entry, but also resets a list pointer used by DriverNext() to browse the list.

int DriverMaxBlock ( void   ) 

Give the size of larger data block in the driver list.

Returns:
The size of the bigger data block.

int DriverMaxSize ( void   ) 

Give the size of larger total data block in the driver list.

Returns:
The size of the bigger total data block.

const DrvInt_t* DriverNext ( void   ) 

Returns the next driver in the list.

Returns:
The next driver in the list or NULL if list ended.
The driver list scan is alway started calling DriverFirst(). DriverNext() returns the next list entry if it exist or NULL if the end of list is encountered.

void DriverPrintInfo ( const DrvInt_t DrvPtr,
int  Mode 
)

Print driver informations to stdout.

Parameters:
DrvPtr A driver pointer.
Mode Can be one value between: SHORT_INFO_MODE, LONG_INFO_MODE, FULL_INFO_MODE.

const DrvInt_t* DriverSearch ( const char *  DrvName  ) 

Serach for a specific driver.

Parameters:
DrvName The driver name to search for.
Returns:
A driver pointer or NULL if the driver is unknown.
This function let you search for a specific driver without browsing the full driver list.

WARNING: this functions makes use of DriverFirst() and DriverNext() to browse the driver list, so it is not a good idea calling DriverSearch() in the middle of a driver list scan.


Generated on Tue Jan 9 21:37:16 2018 for libdrivers by  doxygen 1.5.6