McBSP.h File Reference


Detailed Description

McBSP module C header file.

REVISION

Definition in file McBSP.h.

#include "../feature.h"

Include dependency graph for McBSP.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  McBSP_OPTYPE
 McBSP operating mode definition.

Functions

void McBSP_init (int iPortNo, unsigned int iSpcr1_ctrl, unsigned int iSpcr2_ctrl, unsigned int iRcr1_ctrl, unsigned int iRcr2_ctrl, unsigned int iXcr1_ctrl, unsigned int iXcr2_ctrl, unsigned int iSrgr1_ctrl, unsigned int iSrgr2_ctrl, unsigned int iMcr1_ctrl, unsigned int iMcr2_ctrl, unsigned int iRcera_ctrl, unsigned int iRcerb_ctrl, unsigned int iXcera_ctrl, unsigned int iXcerb_ctrl, unsigned int iPcr_ctrl)
 Function initializes the McBSP interface.
void McBSP_rxReset (int iPortNo)
 This function will reset the receiver of the multi-channel buffered serial port and disable it.
void McBSP_txReset (int iPortNo)
 This function will reset the transmitter of the multi-channel buffered serial port and disable it.


Function Documentation

void McBSP_rxReset int  iPortNo  ) 
 

This function will reset the receiver of the multi-channel buffered serial port and disable it.

Parameters:
iPortNo Port number.

Definition at line 197 of file McBSP_manager.c.

00198 {
00199     /* Take the Sub-address register address and write index address of SPCR1 to it. */
00200     *(unsigned int*)MCBSP_SPSA_ADDR(iPortNo) =  MCBSP_SPCR1_SUBADDR;
00201                 
00202     /* Take the Sub-address Data register address and clear bit RRST. */
00203     *(unsigned int*)MCBSP_SPAD_ADDR(iPortNo) &= ~MASK_BIT(RRST);
00204 }

void McBSP_txReset int  iPortNo  ) 
 

This function will reset the transmitter of the multi-channel buffered serial port and disable it.

Parameters:
iPortNo Port number.

Definition at line 180 of file McBSP_manager.c.

00180                                  {
00181 
00182     /* Take the Sub-address register address and write index address of SPCR2 to it. */
00183     *(unsigned int*)MCBSP_SPSA_ADDR(iPortNo) = MCBSP_SPCR2_SUBADDR;
00184                 
00185     /* Take the Sub-address Data register address and clear bit XRST. */
00186     *(unsigned int*)MCBSP_SPAD_ADDR(iPortNo) &= ~MASK_BIT(XRST);
00187 }


Generated on Wed Jan 19 01:13:06 2005 for neuros-firmware by  doxygen 1.3.9.1