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 |
uint32_t MCASP_ChannelObj::drvState |
Current state of the driver (opened or closed)
uint32_t MCASP_ChannelObj::mode |
mode for channel (i.e _INPUT or OUTPUT)
void* MCASP_ChannelObj::devHandle |
Pointer to McASP device driver port structure
uint32_t MCASP_ChannelObj::frSyncCtl |
Frame Sync Control Register
uint32_t MCASP_ChannelObj::fmt |
Bit Stream Format Register
uint32_t MCASP_ChannelObj::noOfChannels |
No of channels of data to be transmitted after the frame sync
uint32_t MCASP_ChannelObj::indexOfSersRequested[16] |
Multi Serializer numbers requested by channel
uint32_t MCASP_ChannelObj::channelMode |
Mode of operation: Transmit(DIT/TDM) or Receive
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
uint16_t MCASP_ChannelObj::noOfSerAllocated |
no of Serializer(s) allocated
uint16_t MCASP_ChannelObj::noOfSlots |
number of slots used by the mcasp