csl_aif2GetBaseAddress.c File Reference

File for functional layer of CSL API CSL_aif2GetBaseAddress (). More...

#include <ti/csl/soc.h>
#include <ti/csl/csl_aif2.h>

Functions

CSL_Status CSL_aif2GetBaseAddress (CSL_InstNum aif2Num, CSL_Aif2Param *paif2Param, CSL_Aif2BaseAddress *pBaseAddress)


Detailed Description

File for functional layer of CSL API CSL_aif2GetBaseAddress ().

===========================================================================

The CSL_aif2GetBaseAddress function definition.


Function Documentation

CSL_Status CSL_aif2GetBaseAddress ( CSL_InstNum  aif2Num,
CSL_Aif2Param paif2Param,
CSL_Aif2BaseAddress pBaseAddress 
)

============================================================================
CSL_aif2GetBaseAddress

Description
Function to get the base address of the peripheral instance. This function is used for getting the base address of the peripheral instance. This function will be called inside the CSL_aif2Open() function call. This function is open for re-implementing if the user wants to modify the base address of the peripheral object to point to a different location and there by allow CSL initiated write/reads into peripheral. MMR's go to an alternate location.

Arguments

            aif2Num        Specifies the instance of the bwmngmt to be opened.

            paif2Param     Module specific parameters.

            pBaseAddress      Pointer to baseaddress structure containing base
                              address details.

     

Return Value CSL_Status

Pre Condition
None

Post Condition
Base Address structure is populated

Affects
1. The status variable

2. Base address structure is modified.

Example

        CSL_Status              status;
        CSL_aif2BaseAddress  baseAddress;

       ...
      status = CSL_aif2GetBaseAddress(CSL_AIF2, NULL, &baseAddress);

     
===========================================================================


Copyright 2011, Texas Instruments Incorporated