This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to understand this sentence on device driver?

Hi,

I am learning device driver from SPRA677.PDF. When I read the following (page 5, 2. Architecture), I do not understand the read line. From the blue line, it seems that mbBindDev() and mdCreateChan() are two codec specific functions. But what is the "These functions" in the red line?

Could you explain it to me?

Thanks.

.............................

The codec specific portion of the mini-driver inherits the features of the generic TMS320C6x1x

EDMA McBSP driver. It uses two codec specific functions, mbBindDev() and mdCreateChan(),

to do the 6713 DSK and AIC23 specific setup. These functions then call mbBindDev() and

mdCreateChan() in the generic driver to complete generic portions of the driver initialization. The

only thing the codec-specific part does is to set up the codec and leaves the transfers of

samples to the generic device driver. The fact that this device driver uses the generic device

driver is hidden from the user in all aspects except that the generic device driver library has to

be linked into the application.

The AIC23 has a control channel which is used to configure the codec as well as a bidirectional

data channel. On the DSK, McBSP0 is used to generate the SPI format control channel signals

while McBSP1 is used for audio data.

  • This is trying to say that one driver is using another driver.   The AIC driver uses the generic serial port driver to do most of it's work.    The AIC driver's mdBindDev() and mdCreateChan() do a little work before/after calling the generic serial port driver's function of same name.    The source code should be provided.  Hopefully, the source code will help. 

    -Karl-