Ad535_getmcbsphandle, Ad535_id – Texas Instruments TMS320C6000 User Manual
Page 20

AD535_getMcbspHandle
2-8
Returns McBSP Handle
AD535_getMcbsp
Handle
Function
Mcbsp_Handle AD535_getMcbspHandle(
AD535_Handle hAD535,
);
Arguments
hAD535
Handle to codec channel, see AD535_open()
Return Value
Mcbsp_handle
Handle to the opened McBSP associated to the
number of McBSP.
Description
Returns the McBSP Handle associated with the McBSP used for AD535
communication.
Note: The Mcbsp_Handle type is defined in the Chip Suppport Library
(CSL) and created by the internal call of the
MCBSP_open()
function.
Example
Mcbsp_Handle hMcbsp;
hMcbsp = AD535_getHandleMcbsp(hAD535);
Allocates codec channel
AD535_Id
Structure
AD535_Id
Members
Typedef Struct {
Struct {
int mcbsp_no;
The typedef structure AD535_Id includes 2
substructures such as Id and Obj
structures
} Id;
Struct {
Boolean allocated;
MCBSP_Handle
The internal structure Id contains the field
mcbsp_no. The member mcbsp_no
contains the number of the serial port you
wish to use.
hMcbsp;
} Obj;
} AD535_Id
The internal structure Obj contains the
boolean field to allocate the codec and the
McBSP handle associated with the number
of the McBSP which will be open
“mcbsp_no”.