Data Structures | Typedefs
I2SCC32XX.h File Reference

Detailed Description

I2S driver implementation for a CC32XX I2S controller.

============================================================================


#include <ti/drivers/I2S.h>
#include <ti/drivers/dma/UDMACC32XX.h>
#include <ti/drivers/dpl/SemaphoreP.h>
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/utils/List.h>
#include <ti/drivers/Power.h>
Include dependency graph for I2SCC32XX.h:

Go to the source code of this file.

Data Structures

struct  I2SCC32XX_HWAttrs_
 I2S Hardware attributes. More...
 

Typedefs

typedef struct I2SCC32XX_HWAttrs_ I2SCC32XX_HWAttrs
 I2S Hardware attributes. More...
 
typedef void(* I2SCC32XX_FifoUpdate) (uintptr_t arg)
 The definition of a function used by the I2S driver to refresh the FIFO. More...
 

Typedef Documentation

§ I2SCC32XX_HWAttrs

I2S Hardware attributes.

intPriority is the I2S peripheral's interrupt priority, as defined by the TI-RTOS kernel. This value is passed unmodified to Hwi_create().

pinSD1 and pinSD0 define the SD0 and SD1 data pin mapping, respectively. pinSCK, pinMCLK and pinWS define the SCK, MCLK and WS clock pin mapping, respectively. All these pins are typically defined with a macro in a header file, which maps to an IOID.

rxChannelIndex and txChannelIndex are uDMA channels respectively used for the read and the write interface.

A sample structure is shown below:

const I2SCC32XX_HWAttrs i2sCC3220SHWAttrs[CC3220S_LAUNCHXL_I2SCOUNT] = {
{
.pinSD1 = I2SCC32XX_PIN_50_SD1,
.pinSD0 = I2SCC32XX_PIN_64_SD0,
.pinSCK = I2SCC32XX_PIN_53_SCK,
.pinSCKX = I2SCC32XX_PIN_UNUSED,
.pinWS = I2SCC32XX_PIN_63_WS,
.rxChannelIndex = UDMA_CH4_I2S_RX,
.txChannelIndex = UDMA_CH5_I2S_TX,
.intPriority = 0x40,
}
};

§ I2SCC32XX_FifoUpdate

typedef void(* I2SCC32XX_FifoUpdate) (uintptr_t arg)

The definition of a function used by the I2S driver to refresh the FIFO.

Parameters
I2S_HandleI2S_Handle
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale