AM273x MCU+ SDK  08.02.00
MCASP_ChannelObj Struct Reference

Detailed Description

McASP Channel Object.

This structure maintains the current channel state. It also holds information on DMA channel being used and holds the application callback function to be called in case of an interrupt.

This structure is initialized by mdCreateChan and a pointer to this is passed down to all other channel related functions. Lifetime of the data structure is from its creation by mdCreateChan till it is invalidated by mdDeleteChan.

Data Fields

uint32_t drvState
 
uint32_t mode
 
void * devHandle
 
uint32_t frSyncCtl
 
uint32_t fmt
 
uint32_t noOfChannels
 
uint32_t indexOfSersRequested [16]
 
uint32_t channelMode
 
uint32_t wordBitsSelect
 
uint16_t noOfSerAllocated
 
uint16_t noOfSlots
 

Field Documentation

◆ drvState

uint32_t MCASP_ChannelObj::drvState

Current state of the driver (opened or closed)

◆ mode

uint32_t MCASP_ChannelObj::mode

mode for channel (i.e _INPUT or OUTPUT)

◆ devHandle

void* MCASP_ChannelObj::devHandle

Pointer to McASP device driver port structure

◆ frSyncCtl

uint32_t MCASP_ChannelObj::frSyncCtl

Frame Sync Control Register

◆ fmt

uint32_t MCASP_ChannelObj::fmt

Bit Stream Format Register

◆ noOfChannels

uint32_t MCASP_ChannelObj::noOfChannels

No of channels of data to be transmitted after the frame sync

◆ indexOfSersRequested

uint32_t MCASP_ChannelObj::indexOfSersRequested[16]

Multi Serializer numbers requested by channel

◆ channelMode

uint32_t MCASP_ChannelObj::channelMode

Mode of operation: Transmit(DIT/TDM) or Receive

◆ wordBitsSelect

uint32_t MCASP_ChannelObj::wordBitsSelect

Option to indicate word alignment (MSB/LSB) if word size < slot size. Mcasp_WordAlign_LSB = Select the LSW sized bits in the slot bits Mcasp_WordAlign_MSB = Select the MSW sized bits in the slot

◆ noOfSerAllocated

uint16_t MCASP_ChannelObj::noOfSerAllocated

no of Serializer(s) allocated

◆ noOfSlots

uint16_t MCASP_ChannelObj::noOfSlots

number of slots used by the mcasp