
/* #########################################################################
 * [2015-11-30 12:17:29.273000] THIS FILE IS AUTOGENERATED - DO NOT EDIT!
 * ######################################################################### */

/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.3.2 at Mon Nov 30 12:17:29 2015. */

#include "DMA_pb.h"

#if PB_PROTO_HEADER_VERSION != 30
#error Regenerate this file with the current version of nanopb generator.
#endif



const pb_field_t teensy__3_1_dma_R_TCD_ATTR_fields[5] = {
    PB_FIELD(  1, UINT32  , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_TCD_ATTR, SMOD, SMOD, 0),
    PB_FIELD(  2, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_ATTR, SSIZE, SMOD, 0),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_ATTR, DMOD, SSIZE, 0),
    PB_FIELD(  4, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_ATTR, DSIZE, DMOD, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO_fields[4] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO, SMLOE, SMLOE, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO, DMLOE, SMLOE, 0),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO, NBYTES, DMLOE, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES_fields[5] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES, SMLOE, SMLOE, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES, DMLOE, SMLOE, 0),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES, MLOFF, DMLOE, 0),
    PB_FIELD(  4, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES, NBYTES, MLOFF, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_TCD_ITER_ELINKYES_fields[4] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_TCD_ITER_ELINKYES, ELINK, ELINK, 0),
    PB_FIELD(  2, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_ITER_ELINKYES, LINKCH, ELINK, 0),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_ITER_ELINKYES, ITER, LINKCH, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_TCD_ITER_ELINKNO_fields[3] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_TCD_ITER_ELINKNO, ELINK, ELINK, 0),
    PB_FIELD(  2, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_ITER_ELINKNO, ITER, ELINK, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_TCD_CSR_fields[11] = {
    PB_FIELD(  1, ENUM    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_TCD_CSR, BWC, BWC, 0),
    PB_FIELD(  2, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, MAJORLINKCH, BWC, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, DONE, MAJORLINKCH, 0),
    PB_FIELD(  4, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, ACTIVE, DONE, 0),
    PB_FIELD(  5, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, MAJORELINK, ACTIVE, 0),
    PB_FIELD(  6, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, ESG, MAJORELINK, 0),
    PB_FIELD(  7, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, DREQ, ESG, 0),
    PB_FIELD(  8, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, INTHALF, DREQ, 0),
    PB_FIELD(  9, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, INTMAJOR, INTHALF, 0),
    PB_FIELD( 10, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_TCD_CSR, START, INTMAJOR, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_TCD_fields[16] = {
    PB_FIELD(  1, UINT32  , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_TCD, SADDR, SADDR, 0),
    PB_FIELD(  2, SINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, SOFF, SADDR, 0),
    PB_FIELD(  3, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, ATTR, SOFF, &teensy__3_1_dma_R_TCD_ATTR_fields),
    PB_FIELD(  4, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, NBYTES_MLNO, ATTR, 0),
    PB_FIELD(  5, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, NBYTES_MLOFFNO, NBYTES_MLNO, &teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO_fields),
    PB_FIELD(  6, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, NBYTES_MLOFFYES, NBYTES_MLOFFNO, &teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES_fields),
    PB_FIELD(  7, SINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, SLAST, NBYTES_MLOFFYES, 0),
    PB_FIELD(  8, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, DADDR, SLAST, 0),
    PB_FIELD(  9, SINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, DOFF, DADDR, 0),
    PB_FIELD( 10, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, CITER_ELINKYES, DOFF, &teensy__3_1_dma_R_TCD_ITER_ELINKYES_fields),
    PB_FIELD( 11, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, CITER_ELINKNO, CITER_ELINKYES, &teensy__3_1_dma_R_TCD_ITER_ELINKNO_fields),
    PB_FIELD( 12, SINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, DLASTSGA, CITER_ELINKNO, 0),
    PB_FIELD( 13, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, CSR, DLASTSGA, &teensy__3_1_dma_R_TCD_CSR_fields),
    PB_FIELD( 14, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, BITER_ELINKYES, CSR, &teensy__3_1_dma_R_TCD_ITER_ELINKYES_fields),
    PB_FIELD( 15, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_TCD, BITER_ELINKNO, BITER_ELINKYES, &teensy__3_1_dma_R_TCD_ITER_ELINKNO_fields),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_DCHPRI_fields[4] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_DCHPRI, ECP, ECP, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_DCHPRI, DPA, ECP, 0),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_DCHPRI, CHPRI, DPA, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_CR_fields[9] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_CR, CX, CX, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, ECX, CX, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, EMLM, ECX, 0),
    PB_FIELD(  4, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, CLM, EMLM, 0),
    PB_FIELD(  5, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, HALT, CLM, 0),
    PB_FIELD(  6, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, HOE, HALT, 0),
    PB_FIELD(  7, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, ERCA, HOE, 0),
    PB_FIELD(  8, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_CR, EDBG, ERCA, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_MUX_CHCFG_fields[4] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_MUX_CHCFG, ENBL, ENBL, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_MUX_CHCFG, TRIG, ENBL, 0),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_MUX_CHCFG, SOURCE, TRIG, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_R_ES_fields[13] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_R_ES, VLD, VLD, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, ECX, VLD, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, CPE, ECX, 0),
    PB_FIELD(  4, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, ERRCHN, CPE, 0),
    PB_FIELD(  5, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, SAE, ERRCHN, 0),
    PB_FIELD(  6, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, SOE, SAE, 0),
    PB_FIELD(  7, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, DAE, SOE, 0),
    PB_FIELD(  8, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, DOE, DAE, 0),
    PB_FIELD(  9, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, NCE, DOE, 0),
    PB_FIELD( 10, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, SGE, NCE, 0),
    PB_FIELD( 11, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, SBE, SGE, 0),
    PB_FIELD( 12, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_R_ES, DBE, SBE, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_dma_Registers_fields[16] = {
    PB_FIELD(  1, MESSAGE , OPTIONAL, STATIC  , FIRST, teensy__3_1_dma_Registers, CR, CR, &teensy__3_1_dma_R_CR_fields),
    PB_FIELD(  2, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, ES, CR, &teensy__3_1_dma_R_ES_fields),
    PB_FIELD(  3, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, ERQ, ES, 0),
    PB_FIELD(  4, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, EEI, ERQ, 0),
    PB_FIELD(  5, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, CEEI, EEI, 0),
    PB_FIELD(  6, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, SEEI, CEEI, 0),
    PB_FIELD(  7, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, CERQ, SEEI, 0),
    PB_FIELD(  8, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, SERQ, CERQ, 0),
    PB_FIELD(  9, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, CDNE, SERQ, 0),
    PB_FIELD( 10, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, SSRT, CDNE, 0),
    PB_FIELD( 11, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, CERR, SSRT, 0),
    PB_FIELD( 12, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, CINT, CERR, 0),
    PB_FIELD( 13, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, INT, CINT, 0),
    PB_FIELD( 14, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, ERR, INT, 0),
    PB_FIELD( 15, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_dma_Registers, HRS, ERR, 0),
    PB_LAST_FIELD
};


/* Check that field information fits in pb_field_t */
#if !defined(PB_FIELD_32BIT)
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
 * compile-time option. You can do that in pb.h or on compiler command line.
 * 
 * The reason you need to do this is that some of your messages contain tag
 * numbers or field sizes that are larger than what can fit in 8 or 16 bit
 * field descriptors.
 */
PB_STATIC_ASSERT((pb_membersize(teensy__3_1_dma_TCD, ATTR) < 65536 && pb_membersize(teensy__3_1_dma_TCD, NBYTES_MLOFFNO) < 65536 && pb_membersize(teensy__3_1_dma_TCD, NBYTES_MLOFFYES) < 65536 && pb_membersize(teensy__3_1_dma_TCD, CITER_ELINKYES) < 65536 && pb_membersize(teensy__3_1_dma_TCD, CITER_ELINKNO) < 65536 && pb_membersize(teensy__3_1_dma_TCD, CSR) < 65536 && pb_membersize(teensy__3_1_dma_TCD, BITER_ELINKYES) < 65536 && pb_membersize(teensy__3_1_dma_TCD, BITER_ELINKNO) < 65536 && pb_membersize(teensy__3_1_dma_Registers, CR) < 65536 && pb_membersize(teensy__3_1_dma_Registers, ES) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_teensy__3_1_dma_R_TCD_ATTR_teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO_teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES_teensy__3_1_dma_R_TCD_ITER_ELINKYES_teensy__3_1_dma_R_TCD_ITER_ELINKNO_teensy__3_1_dma_R_TCD_CSR_teensy__3_1_dma_TCD_teensy__3_1_dma_DCHPRI_teensy__3_1_dma_R_CR_teensy__3_1_dma_MUX_CHCFG_teensy__3_1_dma_R_ES_teensy__3_1_dma_Registers)
#endif

#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
 * compile-time option. You can do that in pb.h or on compiler command line.
 * 
 * The reason you need to do this is that some of your messages contain tag
 * numbers or field sizes that are larger than what can fit in the default
 * 8 bit descriptors.
 */
PB_STATIC_ASSERT((pb_membersize(teensy__3_1_dma_TCD, ATTR) < 256 && pb_membersize(teensy__3_1_dma_TCD, NBYTES_MLOFFNO) < 256 && pb_membersize(teensy__3_1_dma_TCD, NBYTES_MLOFFYES) < 256 && pb_membersize(teensy__3_1_dma_TCD, CITER_ELINKYES) < 256 && pb_membersize(teensy__3_1_dma_TCD, CITER_ELINKNO) < 256 && pb_membersize(teensy__3_1_dma_TCD, CSR) < 256 && pb_membersize(teensy__3_1_dma_TCD, BITER_ELINKYES) < 256 && pb_membersize(teensy__3_1_dma_TCD, BITER_ELINKNO) < 256 && pb_membersize(teensy__3_1_dma_Registers, CR) < 256 && pb_membersize(teensy__3_1_dma_Registers, ES) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_teensy__3_1_dma_R_TCD_ATTR_teensy__3_1_dma_R_TCD_NBYTES_MLOFFNO_teensy__3_1_dma_R_TCD_NBYTES_MLOFFYES_teensy__3_1_dma_R_TCD_ITER_ELINKYES_teensy__3_1_dma_R_TCD_ITER_ELINKNO_teensy__3_1_dma_R_TCD_CSR_teensy__3_1_dma_TCD_teensy__3_1_dma_DCHPRI_teensy__3_1_dma_R_CR_teensy__3_1_dma_MUX_CHCFG_teensy__3_1_dma_R_ES_teensy__3_1_dma_Registers)
#endif


