| AD535_Id |
Description | This AD535_Id structure is used to allocate a codec channel. You create |
| and initialize this structure, then pass its address to the AD535_open() |
| function. Also, this structure allows you to access to the McBSP handle |
| through the AD535_getMcbspHandle() function after calling |
| AD535_open(). |
| If you wish to use the AD535 codec implemented on C6711DSK you can |
| pass the predefined pointer AD535_ON_6711DSK. |
| The predefined pointer AD535_locald associates the codec to the |
| mcbsp0 directly. It’s not necessary to define AD535_Id pointer. |
| mcbsp_no variable is set to 0 (mcbsp0) |
| See source file bsl_ad535.c |
Example | /* the codec of C6711DSK use the predfined pointer |
| AD535_ON_6711DSK*/ |
| AD535_Handle hAD535; |
| Mcbsp_Handle hMcbsp; |
| hAD535 = AD535_open(AD535_ON_6711DSK); |
| hMcbsp = AD535_getHandleMcbsp(hAD535); |
| 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; |
| Mcbsp_Handle hMcbsp1; |
| hAD535 = AD535_open(*myId); |
| hMcbsp1 = AD535_getHandleMcbsp(hAD535); |
| Note: You can also use the Mcbsp1 if you haven;t opened an AD535 |
| handle with the predefined AD535_ON_6711DSK object. |
AD535 API Module |