MCBSP
Return Value
Description
Example
4-100
Receive frame length in phase 2:
rfrlen2
Receive phases:
rphase
Constructed register value
RCR Value
Use this macro to make a value suitable for the receive control register.
The power-on default value is MCBSP_RCR_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 Rcr;
/* you can do this /
Rcr = MCBSP_MK_RCR(0,0,0,0,0,0,0,0,0,0);
/ or to be more readable, you can do this */
Rcr = MCBSP_MK_RCR(
MCBSP_RCR_RWDREVRS_NA,
MCBSP_RCR_RWDLEN1_8BIT,
MCBSP_RCR_RFRLEN1_OF(0),
MCBSP_RCR_RPHASE2_NA,
MCBSP_RCR_RDATDLY_0BIT,
MCBSP_RCR_RFIG_YES,
MCBSP_RCR_RCOMPAND_MSB,
MCBSP_RCR_RWDLEN2_8BIT,
MCBSP_RCR_RFRLEN2_OF(0),
MCBSP_RCR_RPHASE_SINGLE
);
MCBSP_RCR_RFRLEN2_OF(x)
MCBSP_RCR_RPHASE_SINGLE
MCBSP_RCR_RPHASE_DUAL
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?