MCBSP
Description
Example
4.11.17
MCBSP_MK_RCR
Macro
Arguments
4-98
Use this macro to make a value suitable for the receive channel enable
register.
The power-on default value is MCBSP_RCER_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 Rcer;
/* you can do this /
Rcer = MCBSP_MK_RCER(0x0000,0x0000);
/ or to be more readable, you can do this */
Rcer = MCBSP_MK_RCER(
MCBSP_RCER_RCEA_OF(0x0000),
MCBSP_RCER_RCEB_OF(0x0000)
);
Makes a value suitable for the receive control register
MCBSP_MK_RCR(
rwdrevrs,
rwdlen1,
rfrlen1,
rphase2,
rdatdly,
rfig,
rcompand,
rwdlen2,
rfrlen2,
rphase
)
Receive 32-bit reversal:
rwdrevrs
MCBSP_RCR_RWDREVRS_NA
MCBSP_RCR_RWDREVRS_DISABLE
MCBSP_RCR_RWDREVRS_ENABLE
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?
Questions and answers