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

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

#include "ADC_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_adc_R_SC1_fields[5] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_R_SC1, COCO, COCO, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC1, AIEN, COCO, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC1, DIFF, AIEN, 0),
    PB_FIELD(  4, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC1, ADCH, DIFF, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_adc_R_CFG1_fields[6] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_R_CFG1, ADLPC, ADLPC, 0),
    PB_FIELD(  2, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG1, ADIV, ADLPC, 0),
    PB_FIELD(  3, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG1, ADLSMP, ADIV, 0),
    PB_FIELD(  4, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG1, MODE, ADLSMP, 0),
    PB_FIELD(  5, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG1, ADICLK, MODE, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_adc_R_CFG2_fields[5] = {
    PB_FIELD(  1, ENUM    , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_R_CFG2, MUXSEL, MUXSEL, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG2, ADACKEN, MUXSEL, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG2, ADHSC, ADACKEN, 0),
    PB_FIELD(  4, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_CFG2, ADLSTS, ADHSC, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_adc_R_SC2_fields[8] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_R_SC2, ADACT, ADACT, 0),
    PB_FIELD(  2, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC2, ADTRG, ADACT, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC2, ACFE, ADTRG, 0),
    PB_FIELD(  4, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC2, ACFGT, ACFE, 0),
    PB_FIELD(  5, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC2, ACREN, ACFGT, 0),
    PB_FIELD(  6, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC2, DMAEN, ACREN, 0),
    PB_FIELD(  7, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC2, REFSEL, DMAEN, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_adc_R_SC3_fields[6] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_R_SC3, CAL, CAL, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC3, CALF, CAL, 0),
    PB_FIELD(  3, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC3, ADCO, CALF, 0),
    PB_FIELD(  4, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC3, AVGE, ADCO, 0),
    PB_FIELD(  5, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_SC3, AVGS, AVGE, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_adc_R_PGA_fields[4] = {
    PB_FIELD(  1, BOOL    , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_R_PGA, PGAEN, PGAEN, 0),
    PB_FIELD(  2, BOOL    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_PGA, PGALPB, PGAEN, 0),
    PB_FIELD(  3, ENUM    , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_R_PGA, PGAG, PGALPB, 0),
    PB_LAST_FIELD
};

const pb_field_t teensy__3_1_adc_Registers_fields[29] = {
    PB_FIELD(  1, MESSAGE , OPTIONAL, STATIC  , FIRST, teensy__3_1_adc_Registers, SC1A, SC1A, &teensy__3_1_adc_R_SC1_fields),
    PB_FIELD(  2, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, SC1B, SC1A, &teensy__3_1_adc_R_SC1_fields),
    PB_FIELD(  3, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CFG1, SC1B, &teensy__3_1_adc_R_CFG1_fields),
    PB_FIELD(  4, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CFG2, CFG1, &teensy__3_1_adc_R_CFG2_fields),
    PB_FIELD(  5, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, RA, CFG2, 0),
    PB_FIELD(  6, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, RB, RA, 0),
    PB_FIELD(  7, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CV1, RB, 0),
    PB_FIELD(  8, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CV2, CV1, 0),
    PB_FIELD(  9, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, SC2, CV2, &teensy__3_1_adc_R_SC2_fields),
    PB_FIELD( 10, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, SC3, SC2, &teensy__3_1_adc_R_SC3_fields),
    PB_FIELD( 11, SINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, OFS, SC3, 0),
    PB_FIELD( 12, FIXED32 , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, PG, OFS, 0),
    PB_FIELD( 13, FIXED32 , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, MG, PG, 0),
    PB_FIELD( 14, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLPD, MG, 0),
    PB_FIELD( 15, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLPS, CLPD, 0),
    PB_FIELD( 16, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLP4, CLPS, 0),
    PB_FIELD( 17, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLP3, CLP4, 0),
    PB_FIELD( 18, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLP2, CLP3, 0),
    PB_FIELD( 19, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLP1, CLP2, 0),
    PB_FIELD( 20, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLP0, CLP1, 0),
    PB_FIELD( 21, MESSAGE , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, PGA, CLP0, &teensy__3_1_adc_R_PGA_fields),
    PB_FIELD( 22, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLMD, PGA, 0),
    PB_FIELD( 23, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLMS, CLMD, 0),
    PB_FIELD( 24, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLM4, CLMS, 0),
    PB_FIELD( 25, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLM3, CLM4, 0),
    PB_FIELD( 26, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLM2, CLM3, 0),
    PB_FIELD( 27, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLM1, CLM2, 0),
    PB_FIELD( 28, UINT32  , OPTIONAL, STATIC  , OTHER, teensy__3_1_adc_Registers, CLM0, CLM1, 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_adc_Registers, SC1A) < 65536 && pb_membersize(teensy__3_1_adc_Registers, SC1B) < 65536 && pb_membersize(teensy__3_1_adc_Registers, CFG1) < 65536 && pb_membersize(teensy__3_1_adc_Registers, CFG2) < 65536 && pb_membersize(teensy__3_1_adc_Registers, SC2) < 65536 && pb_membersize(teensy__3_1_adc_Registers, SC3) < 65536 && pb_membersize(teensy__3_1_adc_Registers, PGA) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_teensy__3_1_adc_R_SC1_teensy__3_1_adc_R_CFG1_teensy__3_1_adc_R_CFG2_teensy__3_1_adc_R_SC2_teensy__3_1_adc_R_SC3_teensy__3_1_adc_R_PGA_teensy__3_1_adc_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_adc_Registers, SC1A) < 256 && pb_membersize(teensy__3_1_adc_Registers, SC1B) < 256 && pb_membersize(teensy__3_1_adc_Registers, CFG1) < 256 && pb_membersize(teensy__3_1_adc_Registers, CFG2) < 256 && pb_membersize(teensy__3_1_adc_Registers, SC2) < 256 && pb_membersize(teensy__3_1_adc_Registers, SC3) < 256 && pb_membersize(teensy__3_1_adc_Registers, PGA) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_teensy__3_1_adc_R_SC1_teensy__3_1_adc_R_CFG1_teensy__3_1_adc_R_CFG2_teensy__3_1_adc_R_SC2_teensy__3_1_adc_R_SC3_teensy__3_1_adc_R_PGA_teensy__3_1_adc_Registers)
#endif


