cpi_get_resources

Identifies the available TX boards.

Prototype

#include txcpi.h

S16 cpi_get_resources ( S16 max_cps, S32 *cps[])

Argument

Description

max_cps

Maximum CP number for which to return resource information.

cps

Pointer to an array of entries where CP types are returned.


Return values

Return value

Description

CPI_SUCCESS

Board types identified in cps array.

CPI_ERROR

Call cpi_get_last_error to obtain the error code.


Details

If a CP of the corresponding index does not exist, each element of the array cps is filled with 0. If a CP for that index does exist, the array is filled with the TX board types. The parameter max_cps indicates the number of CPs to check. The cps array should have max_cps + 1 elements since the array is filled according to board number. There is no board number 0 and this element is not used by this routine.