Description
Example
4.11.16
MCBSP_MK_RCER
Macro
Arguments
Return Value
Use this macro to make a value suitable for the pin control register.
The power-on default value is MCBSP_PCR_DEFAULT.
Use of the MCBSP_MK macros makes it simpler to construct register
values based on field values. You have a choice of using integer
constants, integer variables, or the symbolic constants for arguments.
All field values are right justified.
Refer to the TMS320C6000 Peripherals Reference Guide (literature
number SPRU190) for descriptions of the arguments.
UINT32 Pcr;
/* you can do this /
Pcr = MCBSP_MK_PCR(0,0,0,0,0,0,0,0,0,0,0,0);
/ or to be more readable, you can do this */
Pcr = MCBSP_MK_PCR(
MCBSP_PCR_CLKRP_FALLING,
MCBSP_PCR_CLKXP_RISING,
MCBSP_PCR_FSRP_ACTIVEHIGH,
MCBSP_PCR_FSXP_ACTIVEHIGH,
MCBSP_PCR_DXSTAT_0,
MCBSP_PCR_CLKSSTAT_0,
MCBSP_PCR_CLKRM_INPUT,
MCBSP_PCR_CLKXM_INPUT,
MCBSP_PCR_FSRM_EXTERNAL,
MCBSP_PCR_FSXM_EXTERNAL,
MCBSP_PCR_RIOEN_SP,
MCBSP_PCR_XIOEN_SP
);
Makes a value suitable for the receive channel enable
register
MCBSP_MK_RCER(
rcea,
rceb
)
Receive channel enable bit-mask A:
rcea
Receive channel enable bit-mask B:
rceb
Constructed register value
RCER Value
MCBSP_RCER_RCEA_OF(x)
MCBSP_RCER_RCEB_OF(x)
CSL API Reference
MCBSP
4-97
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?
Questions and answers