AD535_open
2-12
Opens codec channel
AD535_open
Function AD535_Handle AD535_open (
AD535_Id *myId
);
Arguments myId Pointer to an object of type AD535_Id. This object
contains the McBSP channel number and a McBSP
handle.
C6711 DSK
If you want to use the local codec, you may pass
the predefined pointer AD535_ON_6711DSK. If you
want
to use another codec you must create your own
AD535_Id.
Return Value AD535_Handle Handle to newly opened codec channel
Note: If the board does not support this function, it will
return the invalid handle INV.
Description Before a codec channel can be used, it must first be opened by this
function. Once opened, it cannot be opened again until closed. See
AD535_close().
Example To use the local codec:
AD535_Handle hAD535;
hAD535 = AD535_open(AD535_ON_6711DSK);
To set up your own AD535_Id, for example:
/* set up a codec using McBSP 1 */
AD535_Handle hAD535;
AD535_Id myId;
myId.Id.mcbsp_no = 1;
hAD535 = AD535_open(*myId);