#ifndef __DEV_SRC_FIELD_H__
#define __DEV_SRC_FIELD_H__

#include "sp2cw3.h"

/*******************************************************************************
 * Auto-generated Content
 ******************************************************************************/


/***********************************CHNn_LSR***********************************/
typedef struct
{

    __IO uint32_t LSR                 : 32;
} DEV_SRC_CHNn_LSR_Field;
/****DEV_SRCCHNn_LSR end****/

/***********************************CHNn_USR***********************************/
typedef struct
{

    __IO uint32_t USR                 : 32;
} DEV_SRC_CHNn_USR_Field;
/****DEV_SRCCHNn_USR end****/

/***********************************CHNn_LTH***********************************/
typedef struct
{

    __IO uint32_t LTH                 : 12;
    uint32_t RESERVED0           : 20;
} DEV_SRC_CHNn_LTH_Field;
/****DEV_SRCCHNn_LTH end****/

/***********************************CHNn_UTH***********************************/
typedef struct
{

    __IO uint32_t UTH                 : 12;
    uint32_t RESERVED0           : 20;
} DEV_SRC_CHNn_UTH_Field;
/****DEV_SRCCHNn_UTH end****/

/***********************************CHNn_CFG***********************************/
typedef struct
{

    __IO uint32_t Enable              : 1;
    __IO uint32_t MODE_SEL            : 1;
    __IO uint32_t CBUF_EN             : 1;
    __IO uint32_t MONO                : 1;
    __IO uint32_t TX_DEV_SEL          : 3;
    uint32_t RESERVED0           : 1;
    __IO uint32_t RX_DEV_SEL          : 3;
    uint32_t RESERVED1           : 1;
    __IO uint32_t WBUF_HALF_LVL       : 2;
    uint32_t RESERVED2           : 2;
    __IO uint32_t SHIFT_SEL0          : 2;
    __IO uint32_t SHIFT_SEL1          : 2;
    __IO uint32_t SHIFT_SEL2          : 2;
    __IO uint32_t SHIFT_SEL3          : 2;
    __IO uint32_t INPUT_FMT           : 2;
    __IO uint32_t OUTPUT_FMT          : 2;
    uint32_t RESERVED3           : 4;
} DEV_SRC_CHNn_CFG_Field;
/****DEV_SRCCHNn_CFG end****/

/***********************************CHNn_IE***********************************/
typedef struct
{

    __IO uint32_t TX_FIFO_HEMP        : 1;
    __IO uint32_t RX_FIFO_HFUL        : 1;
    __IO uint32_t TX_FIFO_OF          : 1;
    __IO uint32_t RX_FIFO_UF          : 1;
    __IO uint32_t WBUF_AF             : 1;
    __IO uint32_t WBUF_AE             : 1;
    uint32_t RESERVED0           : 26;
} DEV_SRC_CHNn_IE_Field;
/****DEV_SRCCHNn_IE end****/

/***********************************CHNn_PD***********************************/
typedef struct
{

    __IO uint32_t TX_FIFO_HEMP        : 1;
    __IO uint32_t RX_FIFO_HFUL        : 1;
    __IO uint32_t TX_FIFO_OF          : 1;
    __IO uint32_t RX_FIFO_UF          : 1;
    __IO uint32_t WBUF_AF             : 1;
    __IO uint32_t WBUF_AE             : 1;
    uint32_t RESERVED0           : 26;
} DEV_SRC_CHNn_PD_Field;
/****DEV_SRCCHNn_PD end****/

/***********************************CHNn_STA***********************************/
typedef struct
{

    __I  uint32_t WBUF_WLVL           : 12;
    __I  uint32_t WBUF_AF             : 1;
    __I  uint32_t WBUF_AE             : 1;
    uint32_t RESERVED0           : 2;
    __I  uint32_t TX_FIFO_WLVL        : 3;
    uint32_t RESERVED1           : 1;
    __I  uint32_t RX_FIFO_RLVL        : 3;
    uint32_t RESERVED2           : 1;
    uint32_t RESERVED3           : 8;
} DEV_SRC_CHNn_STA_Field;
/****DEV_SRCCHNn_STA end****/

/***********************************CHNn_CBUF***********************************/
typedef struct
{

    uint32_t RESERVED0           : 8;
    __O  uint32_t CBUF                : 24;
} DEV_SRC_CHNn_CBUF_Field;
/****DEV_SRCCHNn_CBUF end****/

/***********************************CHNn_WBUF***********************************/
typedef struct
{

    __O  uint32_t WBUF                : 32;
} DEV_SRC_CHNn_WBUF_Field;
/****DEV_SRCCHNn_WBUF end****/

/***********************************CHNn_RBUF***********************************/
typedef struct
{

    __I  uint32_t RBUF                : 32;
} DEV_SRC_CHNn_RBUF_Field;
/****DEV_SRCCHNn_RBUF end****/

/***********************************BIST_RM***********************************/
typedef struct
{

    __IO uint32_t CHN0_CBUF_RM        : 4;
    __IO uint32_t CHN0_RBUF_RM        : 4;
    __IO uint32_t CHN0_FBUF_RM        : 4;
    uint32_t RESERVED0           : 4;
    __IO uint32_t CHN1_CBUF_RM        : 4;
    __IO uint32_t CHN1_RBUF_RM        : 4;
    __IO uint32_t CHN1_FBUF_RM        : 4;
    uint32_t RESERVED1           : 4;
} DEV_SRC_BIST_RM_Field;
/****DEV_SRCBIST_RM end****/

/***********************************BIST_EN***********************************/
typedef struct
{

    __IO uint32_t CHN0_CBUF_EN        : 1;
    __IO uint32_t CHN0_CBUF_RME       : 1;
    __IO uint32_t CHN0_WBUF_EN        : 1;
    __IO uint32_t CHN0_WBUF_RME       : 1;
    __IO uint32_t CHN0_FBUF_EN        : 1;
    __IO uint32_t CHN0_FBUF_RME       : 1;
    uint32_t RESERVED0           : 2;
    __IO uint32_t CHN0_CBUF_LS        : 1;
    __IO uint32_t CHN0_WBUF_LS        : 1;
    __IO uint32_t CHN0_FBUF_LS        : 1;
    uint32_t RESERVED1           : 5;
    __IO uint32_t CHN1_CBUF_EN        : 1;
    __IO uint32_t CHN1_CBUF_RME       : 1;
    __IO uint32_t CHN1_RBUF_EN        : 1;
    __IO uint32_t CHN1_RBUF_RME       : 1;
    __IO uint32_t CHN1_FBUF_EN        : 1;
    __IO uint32_t CHN1_FBUF_RME       : 1;
    uint32_t RESERVED2           : 2;
    __IO uint32_t CHN1_CBUF_LS        : 1;
    __IO uint32_t CHN1_RBUF_LS        : 1;
    __IO uint32_t CHN1_FBUF_LS        : 1;
    uint32_t RESERVED3           : 5;
} DEV_SRC_BIST_EN_Field;
/****DEV_SRCBIST_EN end****/

/***********************************BIST_DONE***********************************/
typedef struct
{

    __I  uint32_t CHN0_CBUF_DONE      : 1;
    __I  uint32_t CHN0_DBUF_DONE      : 1;
    __I  uint32_t CHN0_FBUF_DONE      : 1;
    uint32_t RESERVED0           : 13;
    __I  uint32_t CHN1_CBUF_DONE      : 1;
    __I  uint32_t CHN1_DBUF_DONE      : 1;
    __I  uint32_t CHN1_FBUF_DONE      : 1;
    uint32_t RESERVED1           : 13;
} DEV_SRC_BIST_DONE_Field;
/****DEV_SRCBIST_DONE end****/

/***********************************BIST_FAIL***********************************/
typedef struct
{

    __I  uint32_t CHN0_CBUF_FAIL      : 1;
    __I  uint32_t CHN0_DBUF_FAIL      : 1;
    __I  uint32_t CHN0_FBUF_FAIL      : 1;
    uint32_t RESERVED0           : 13;
    __I  uint32_t CHN1_CBUF_FAIL      : 1;
    __I  uint32_t CHN1_DBUF_FAIL      : 1;
    __I  uint32_t CHN1_FBUF_FAIL      : 1;
    uint32_t RESERVED1           : 13;
} DEV_SRC_BIST_FAIL_Field;
/****DEV_SRCBIST_FAIL end****/

/***********************************SRC_CHN register***********************************/
typedef struct
{

    union
    {
        __IO    uint32_t    LSR;                                     /* 0x0    SRC CHNn Lower Sample-Rate Ratio */
        DEV_SRC_CHNn_LSR_Field    LSR_f;
    };
    union
    {
        __IO    uint32_t    USR;                                     /* 0x4    SRC CHNn Upper Sample-Rate Ratio */
        DEV_SRC_CHNn_USR_Field    USR_f;
    };
    union
    {
        __IO    uint32_t    LTH;                                     /* 0x8    SRC CHNn Lower Threshold */
        DEV_SRC_CHNn_LTH_Field    LTH_f;
    };
    union
    {
        __IO    uint32_t    UTH;                                     /* 0xc    SRC CHNn Upper Threshold */
        DEV_SRC_CHNn_UTH_Field    UTH_f;
    };
    union
    {
        __IO    uint32_t    CFG;                                     /* 0x10    SRC CHNn Configure */
        DEV_SRC_CHNn_CFG_Field    CFG_f;
    };
    union
    {
        __IO    uint32_t    IE;                                      /* 0x14    SRC CHNn Interrupt Enable */
        DEV_SRC_CHNn_IE_Field    IE_f;
    };
    union
    {
        __IO    uint32_t    PD;                                      /* 0x18    SRC CHNn Interrupt Pending */
        DEV_SRC_CHNn_PD_Field    PD_f;
    };
    union
    {
        __I     uint32_t    STA;                                     /* 0x1c    SRC CHNn Status */
        DEV_SRC_CHNn_STA_Field    STA_f;
    };
    union
    {
        __IO    uint32_t    CBUF;                                    /* 0x20    SRC CHNn COE buffer */
        DEV_SRC_CHNn_CBUF_Field    CBUF_f;
    };
    union
    {
        __O     uint32_t    WBUF;                                    /* 0x24    SRC CHNn Data Input buffer */
        DEV_SRC_CHNn_WBUF_Field    WBUF_f;
    };
    union
    {
        __I     uint32_t    RBUF;                                    /* 0x28    SRC CHNn Data Output buffer */
        DEV_SRC_CHNn_RBUF_Field    RBUF_f;
    };
    uint32_t    RESERVED0[53];
} SRC_CHN_RegDef_f;
/****SRC_CHN end****/

/***********************************DEV_SRC register***********************************/
typedef struct
{

    union
    {
        SRC_CHN_RegDef_f    CHN[2];                                  /* 0x0    SRC CHNn Lower Sample-Rate Ratio */
    };
    uint32_t    RESERVED0[896];
    union
    {
        __IO    uint32_t    BIST_RM;                                 /* 0x1000    SRC CHNn Configure */
        DEV_SRC_BIST_RM_Field    BIST_RM_f;
    };
    union
    {
        __IO    uint32_t    BIST_EN;                                 /* 0x1004    SRC CHNn Interrupt Pending */
        DEV_SRC_BIST_EN_Field    BIST_EN_f;
    };
    union
    {
        __I     uint32_t    BIST_DONE;                               /* 0x1008    SRC CHNn COE buffer */
        DEV_SRC_BIST_DONE_Field    BIST_DONE_f;
    };
    union
    {
        __I     uint32_t    BIST_FAIL;                               /* 0x100c    SRC CHNn Data Output buffer */
        DEV_SRC_BIST_FAIL_Field    BIST_FAIL_f;
    };
} DEV_SRC_RegDef_f;
/****DEV_SRC end****/

/*******************************************************************************
 * User-defined Contents
 ******************************************************************************/



#endif
