;VLSI Solution microcontroller definitions for:
;VS1063, VS1053 (and VS8053), VS1033, VS1003, VS1103, VS1011.
;SCI registers
SCI_MODE = 0x00
SCI_STATUS = 0x01
SCI_BASS = 0x02
SCI_CLOCKF = 0x03
SCI_DECODE_TIME = 0x04
SCI_AUDATA = 0x05
SCI_WRAM = 0x06
SCI_WRAMADDR = 0x07
SCI_HDAT0 = 0x08 ;VS1063, VS1053, VS1033, VS1003, VS1011
SCI_IN0 = 0x08 ;VS1103
SCI_HDAT1 = 0x09 ;VS1063, VS1053, VS1033, VS1003, VS1011
SCI_IN1 = 0x09 ;VS1103
SCI_AIADDR = 0x0A
SCI_VOL = 0x0B
SCI_AICTRL0 = 0x0C ;VS1063, VS1053, VS1033, VS1003, VS1011
SCI_MIXERVOL = 0x0C ;VS1103
SCI_AICTRL1 = 0x0D ;VS1063, VS1053, VS1033, VS1003, VS1011
SCI_ADPCMRECCTL = 0x0D ;VS1103
SCI_AICTRL2 = 0x0E
SCI_AICTRL3 = 0x0F
;SCI register recording aliases
SCI_RECQUALITY = 0x07 ;(WRAMADDR) VS1063
SCI_RECDATA = 0x08 ;(HDAT0) VS1063
SCI_RECWORDS = 0x09 ;(HDAT1) VS1063
SCI_RECRATE = 0x0C ;(AICTRL0) VS1063, VS1053
SCI_RECDIV = 0x0C ;(AICTRL0) VS1033, VS1003
SCI_RECGAIN = 0x0D ;(AICTRL1) VS1063, VS1053, VS1033, VS1003
SCI_RECMAXAUTO = 0x0E ;(AICTRL2) VS1063, VS1053, VS1033
SCI_RECMODE = 0x0F ;(AICTRL3) VS1063, VS1053
;SCI_MODE bits
SM_DIFF_B = 0
SM_LAYER12_B = 1 ;VS1063, VS1053, VS1033, VS1011
SM_RECORD_PATH_B = 1 ;VS1103
SM_RESET_B = 2
SM_CANCEL_B = 3 ;VS1063, VS1053
SM_OUTOFWAV_B = 3 ;VS1033, VS1003, VS1011
SM_OUTOFMIDI_B = 3 ;VS1103
SM_EARSPEAKER_LO_B = 4 ;VS1053, VS1033
SM_PDOWN_B = 4 ;VS1003, VS1103
SM_TESTS_B = 5
SM_STREAM_B = 6 ;VS1053, VS1033, VS1003, VS1011
SM_ICONF_B = 6 ;VS1103
SM_EARSPEAKER_HI_B = 7 ;VS1053, VS1033
SM_DACT_B = 8
SM_SDIORD_B = 9
SM_SDISHARE_B = 10
SM_SDINEW_B = 11
SM_ENCODE_B = 12 ;VS1063
SM_ADPCM_B = 12 ;VS1053, VS1033, VS1003
SM_EARSPEAKER_1103_B = 12 ;VS1103
SM_ADPCM_HP_B = 13 ;VS1033, VS1003
SM_LINE1_B = 14 ;VS1063, VS1053
SM_LINE_IN_B = 14 ;VS1033, VS1003, VS1103
SM_CLK_RANGE_B = 15 ;VS1063, VS1053, VS1033
SM_ADPCM_1103_B = 15 ;VS1103
SM_DIFF = 1<< 0
SM_LAYER12 = 1<< 1 ;VS1063, VS1053, VS1033, VS1011
SM_RECORD_PATH = 1<< 1 ;VS1103
SM_RESET = 1<< 2
SM_CANCEL = 1<< 3 ;VS1063, VS1053
SM_OUTOFWAV = 1<< 3 ;VS1033, VS1003, VS1011
SM_OUTOFMIDI = 1<< 3 ;VS1103
SM_EARSPEAKER_LO = 1<< 4 ;VS1053, VS1033
SM_PDOWN = 1<< 4 ;VS1003, VS1103
SM_TESTS = 1<< 5
SM_STREAM = 1<< 6 ;VS1053, VS1033, VS1003, VS1011
SM_ICONF = 1<< 6 ;VS1103
SM_EARSPEAKER_HI = 1<< 7 ;VS1053, VS1033
SM_DACT = 1<< 8
SM_SDIORD = 1<< 9
SM_SDISHARE = 1<<10
SM_SDINEW = 1<<11
SM_ENCODE = 1<<12 ;VS1063
SM_ADPCM = 1<<12 ;VS1053, VS1033, VS1003
SM_EARSPEAKER1103 = 1<<12 ;VS1103
SM_ADPCM_HP = 1<<13 ;VS1033, VS1003
SM_LINE1 = 1<<14 ;VS1063, VS1053
SM_LINE_IN = 1<<14 ;VS1033, VS1003, VS1103
SM_CLK_RANGE = 1<<15 ;VS1063, VS1053, VS1033
SM_ADPCM_1103 = 1<<15 ;VS1103
SM_ICONF_BITS = 2
SM_ICONF_MASK = 0x00c0
SM_EARSPEAKER_1103_BITS = 2
SM_EARSPEAKER_1103_MASK = 0x3000
;SCI_STATUS bits
SS_REFERENCE_SEL_B = 0 ;VS1063, VS1053
SS_AVOL_B = 0 ;VS1033, VS1003, VS1103, VS1011
SS_AD_CLOCK_B = 1 ;VS1063, VS1053
SS_APDOWN1_B = 2
SS_APDOWN2_B = 3
SS_VER_B = 4
SS_VCM_DISABLE_B = 10 ;VS1063, VS1053
SS_VCM_OVERLOAD_B = 11 ;VS1063, VS1053
SS_SWING_B = 12 ;VS1063, VS1053
SS_DO_NOT_JUMP_B = 15 ;VS1063, VS1053
SS_REFERENCE_SEL = 1<< 0 ;VS1063, VS1053
SS_AVOL = 1<< 0 ;VS1033, VS1003, VS1103, VS1011
SS_AD_CLOCK = 1<< 1 ;VS1063, VS1053
SS_APDOWN1 = 1<< 2
SS_APDOWN2 = 1<< 3
SS_VER = 1<< 4
SS_VCM_DISABLE = 1<<10 ;VS1063, VS1053
SS_VCM_OVERLOAD = 1<<11 ;VS1063, VS1053
SS_SWING = 1<<12 ;VS1063, VS1053
SS_DO_NOT_JUMP = 1<<15 ;VS1063, VS1053
SS_SWING_BITS = 3
SS_SWING_MASK = 0x7000
SS_VER_BITS = 4
SS_VER_MASK = 0x00f0
SS_AVOL_BITS = 2
SS_AVOL_MASK = 0x0003
SS_VER_VS1001 = 0x00
SS_VER_VS1011 = 0x10
SS_VER_VS1002 = 0x20
SS_VER_VS1003 = 0x30
SS_VER_VS1053 = 0x40
SS_VER_VS8053 = 0x40
SS_VER_VS1033 = 0x50
SS_VER_VS1063 = 0x60
SS_VER_VS1103 = 0x70
;SCI_BASS bits
ST_AMPLITUDE_B = 12
ST_FREQLIMIT_B = 8
SB_AMPLITUDE_B = 4
SB_FREQLIMIT_B = 0
ST_AMPLITUDE = 1<<12
ST_FREQLIMIT = 1<< 8
SB_AMPLITUDE = 1<< 4
SB_FREQLIMIT = 1<< 0
ST_AMPLITUDE_BITS = 4
ST_AMPLITUDE_MASK = 0xf000
ST_FREQLIMIT_BITS = 4
ST_FREQLIMIT_MASK = 0x0f00
SB_AMPLITUDE_BITS = 4
SB_AMPLITUDE_MASK = 0x00f0
SB_FREQLIMIT_BITS = 4
SB_FREQLIMIT_MASK = 0x000f
; SCI_CLOCKF bits
SC_MULT_B = 13 ;VS1063, VS1053, VS1033, VS1103, VS1003
SC_ADD_B = 11 ;VS1063, VS1053, VS1033, VS1003
SC_FREQ_B = 0 ;VS1063, VS1053, VS1033, VS1103, VS1003
SC_MULT = 1<<13 ;VS1063, VS1053, VS1033, VS1103, VS1003
SC_ADD = 1<<11 ;VS1063, VS1053, VS1033, VS1003
SC_FREQ = 1<< 0 ;VS1063, VS1053, VS1033, VS1103, VS1003
SC_MULT_BITS = 3
SC_MULT_MASK = 0xe000
SC_ADD_BITS = 2
SC_ADD_MASK = 0x1800
SC_FREQ_BITS = 11
SC_FREQ_MASK = 0x07ff
;Following are for VS1003 and VS1033
SC_MULT_03_10X = 0x0000
SC_MULT_03_15X = 0x2000
SC_MULT_03_20X = 0x4000
SC_MULT_03_25X = 0x6000
SC_MULT_03_30X = 0x8000
SC_MULT_03_35X = 0xa000
SC_MULT_03_40X = 0xc000
SC_MULT_03_45X = 0xe000
;Following are for VS1053 and VS1063
SC_MULT_53_10X = 0x0000
SC_MULT_53_20X = 0x2000
SC_MULT_53_25X = 0x4000
SC_MULT_53_30X = 0x6000
SC_MULT_53_35X = 0x8000
SC_MULT_53_40X = 0xa000
SC_MULT_53_45X = 0xc000
SC_MULT_53_50X = 0xe000
;Following are for VS1003 and VS1033
SC_ADD_03_00X = 0x0000
SC_ADD_03_05X = 0x0800
SC_ADD_03_10X = 0x1000
SC_ADD_03_15X = 0x1800
;Following are for VS1053 and VS1063
SC_ADD_53_00X = 0x0000
SC_ADD_53_10X = 0x0800
SC_ADD_53_15X = 0x1000
SC_ADD_53_20X = 0x1800
;SCI_WRAMADDR bits
SCI_WRAM_X_START = 0x0000
SCI_WRAM_Y_START = 0x4000
SCI_WRAM_I_START = 0x8000
SCI_WRAM_IO_START = 0xC000
SCI_WRAM_PARAMETRIC_START = 0xC0C0 ;VS1063
SCI_WRAM_Y2_START = 0xE000 ;VS1063
SCI_WRAM_X_OFFSET = 0x0000
SCI_WRAM_Y_OFFSET = 0x4000
SCI_WRAM_I_OFFSET = 0x8000
SCI_WRAM_IO_OFFSET = 0x0000 ;I/O addresses are @0xC000 -> no offset
SCI_WRAM_PARAMETRIC_OFFSET = 0xC0C0-0x1E00 ;VS1063
SCI_WRAM_Y2_OFFSET = 0x0000 ;VS1063
;SCI_VOL bits
SV_LEFT_B = 8
SV_RIGHT_B = 0
SV_LEFT = 1<<8
SV_RIGHT = 1<<0
SV_LEFT_BITS = 8
SV_LEFT_MASK = 0xFF00
SV_RIGHT_BITS = 8
SV_RIGHT_MASK = 0x00FF
SV_SILENCE = 0xfefe
SV_APOWERDOWN = 0xffff
;SCI_MIXERVOL bits for VS1103
SMV_ACTIVE_B = 15
SMV_GAIN3_B = 10
SMV_GAIN2_B = 5
SMV_GAIN1_B = 0
SMV_ACTIVE = 1<<15
SMV_GAIN3 = 1<<10
SMV_GAIN2 = 1<< 5
SMV_GAIN1 = 1<< 0
SMV_GAIN3_BITS = 5
SMV_GAIN3_MASK = 0x7c00
SMV_GAIN2_BITS = 5
SMV_GAIN2_MASK = 0x04e0
SMV_GAIN1_BITS = 5
SMV_GAIN1_MASK = 0x001f
;SCI_ADPCMRECCTL bits for VS1103
SARC_DREQ512_B = 8
SARC_OUTODADPCM_B = 7
SARC_MANUALGAIN_B = 6
SARC_GAIN4_B = 0
SARC_DREQ512 = 1<<8
SARC_OUTODADPCM = 1<<7
SARC_MANUALGAIN = 1<<6
SARC_GAIN4 = 1<<0
SARC_GAIN4_BITS = 6
SARC_GAIN4_MASK = 0x003f
;SCI_RECQUALITY bits for VS1063
RQ_MODE_B = 14
RQ_MULT_B = 12
RQ_OGG_PAR_SERIAL_NUMBER_B = 11
RQ_OGG_LIMIT_FRAME_LENGTH_B = 10
RQ_MP3_NO_BIT_RESERVOIR_B = 10
RQ_BITRATE_BASE_B = 0
RQ_MODE = 1<<14
RQ_MULT = 1<<12
RQ_OGG_PAR_SERIAL_NUMBER = 1<<11
RQ_OGG_LIMIT_FRAME_LENGTH = 1<<10
RQ_MP3_NO_BIT_RESERVOIR = 1<<10
RQ_BITRATE_BASE = 1<< 0
RQ_MODE_BITS = 2
RQ_MODE_MASK = 0xc000
RQ_MULT_BITS = 2
RQ_MULT_MASK = 0x3000
RQ_BITRATE_BASE_BITS = 9
RQ_BITRATE_BASE_MASK = 0x01ff
RQ_MODE_QUALITY = 0x0000
RQ_MODE_VBR = 0x4000
RQ_MODE_ABR = 0x8000
RQ_MODE_CBR = 0xc000
RQ_MULT_10 = 0x0000
RQ_MULT_100 = 0x1000
RQ_MULT_1000 = 0x2000
RQ_MULT_10000 = 0x3000
;SCI_RECMODE bits for VS1063
RM_63_CODEC_B = 15
RM_63_AEC_B = 14
RM_63_UART_TX_B = 13
RM_63_PAUSE_B = 11
RM_63_NO_RIFF_B = 10
RM_63_FORMAT_B = 4
RM_63_ADC_MODE_B = 0
RM_63_CODEC = 1<<15
RM_63_AEC = 1<<14
RM_63_UART_TX = 1<<13
RM_63_PAUSE = 1<<11
RM_63_NO_RIFF = 1<<10
RM_63_FORMAT = 1<< 4
RM_63_ADC_MODE = 1<< 0
RM_63_FORMAT_BITS = 4
RM_63_FORMAT_MASK = 0x00f0
RM_63_ADCMODE_BITS = 3
RM_63_ADCMODE_MASK = 0x0007
RM_63_FORMAT_IMA_ADPCM = 0x0000
RM_63_FORMAT_PCM = 0x0010
RM_63_FORMAT_G711_ULAW = 0x0020
RM_63_FORMAT_G711_ALAW = 0x0030
RM_63_FORMAT_G722_ADPCM = 0x0040
RM_63_FORMAT_OGG_VORBIS = 0x0050
RM_63_FORMAT_MP3 = 0x0060
RM_63_ADC_MODE_JOINT_AGC_STEREO = 0x0000
RM_63_ADC_MODE_DUAL_AGC_STEREO = 0x0001
RM_63_ADC_MODE_LEFT = 0x0002
RM_63_ADC_MODE_RIGHT = 0x0003
RM_63_ADC_MODE_MONO = 0x0004
;SCI_RECMODE bits for VS1053
RM_53_FORMAT_B = 2
RM_53_ADC_MODE_B = 0
RM_53_FORMAT = 1<< 2
RM_53_ADC_MODE = 1<< 0
RM_53_ADCMODE_BITS = 2
RM_53_ADCMODE_MASK = 0x0003
RM_53_FORMAT_IMA_ADPCM = 0x0000
RM_53_FORMAT_PCM = 0x0004
RM_53_ADC_MODE_JOINT_AGC_STEREO = 0x0000
RM_53_ADC_MODE_DUAL_AGC_STEREO = 0x0001
RM_53_ADC_MODE_LEFT = 0x0002
RM_53_ADC_MODE_RIGHT = 0x0003
;VS1063 definitions
;VS1063 / VS1053 Parametric
PAR_CHIP_ID = 0x1e00 ;VS1063, VS1053, 32 bits
PAR_VERSION = 0x1e02 ;VS1063, VS1053
PAR_CONFIG1 = 0x1e03 ;VS1063, VS1053
PAR_PLAY_SPEED = 0x1e04 ;VS1063, VS1053
PAR_BITRATE_PER_100 = 0x1e05 ;VS1063
PAR_BYTERATE = 0x1e05 ;VS1053
PAR_END_FILL_BYTE = 0x1e06 ;VS1063, VS1053
PAR_RATE_TUNE = 0x1e07 ;VS1063, 32 bits
PAR_PLAY_MODE = 0x1e09 ;VS1063
PAR_SAMPLE_COUNTER = 0x1e0a ;VS1063, 32 bits
PAR_VU_METER = 0x1e0c ;VS1063
PAR_AD_MIXER_GAIN = 0x1e0d ;VS1063
PAR_AD_MIXER_CONFIG = 0x1e0e ;VS1063
PAR_PCM_MIXER_RATE = 0x1e0f ;VS1063
PAR_PCM_MIXER_FREE = 0x1e10 ;VS1063
PAR_PCM_MIXER_VOL = 0x1e11 ;VS1063
PAR_EQ5_DUMMY = 0x1e12 ;VS1063
PAR_EQ5_LEVEL1 = 0x1e13 ;VS1063
PAR_EQ5_FREQ1 = 0x1e14 ;VS1063
PAR_EQ5_LEVEL2 = 0x1e15 ;VS1063
PAR_EQ5_FREQ2 = 0x1e16 ;VS1063
PAR_JUMP_POINTS = 0x1e16 ; VS1053
PAR_EQ5_LEVEL3 = 0x1e17 ;VS1063
PAR_EQ5_FREQ3 = 0x1e18 ;VS1063
PAR_EQ5_LEVEL4 = 0x1e19 ;VS1063
PAR_EQ5_FREQ4 = 0x1e1a ;VS1063
PAR_EQ5_LEVEL5 = 0x1e1b ;VS1063
PAR_EQ5_UPDATED = 0x1e1c ;VS1063
PAR_SPEED_SHIFTER = 0x1e1d ;VS1063
PAR_EARSPEAKER_LEVEL = 0x1e1e ;VS1063
PAR_SDI_FREE = 0x1e1f ;VS1063
PAR_AUDIO_FILL = 0x1e20 ;VS1063
PAR_RESERVED0 = 0x1e21 ;VS1063
PAR_RESERVED1 = 0x1e22 ;VS1063
PAR_RESERVED2 = 0x1e23 ;VS1063
PAR_RESERVED3 = 0x1e24 ;VS1063
PAR_LATEST_SOF = 0x1e25 ;VS1063, 32 bits
PAR_LATEST_JUMP = 0x1e26 ; VS1053
PAR_POSITION_MSEC = 0x1e27 ;VS1063, VS1053, 32 bits
PAR_RESYNC = 0x1e29 ;VS1063, VS1053
;The following addresses are shared between modes.
;Generic pointer
PAR_GENERIC = 0x1e2a ;VS1063, VS1053
;Encoder mode
PAR_ENC_TX_UART_DIV = 0x1e2a ;VS1063
PAR_ENC_TX_UART_BYTE_SPEED = 0x1e2b ;VS1063
PAR_ENC_TX_PAUSE_GPIO = 0x1e2c ;VS1063
PAR_ENC_AEC_ADAPT_MULTIPLIER = 0x1e2d ;VS1063
PAR_ENC_RESERVED = 0x1e2e ;VS1063
PAR_ENC_CHANNEL_MAX = 0x1e3c ;VS1063
PAR_ENC_SERIAL_NUMBER = 0x1e3e ;VS1063
;Decoding WMA
PAR_WMA_CUR_PACKET_SIZE = 0x1e2a ;VS1063, VS1053, 32 bits
PAR_WMA_PACKET_SIZE = 0x1e2c ;VS1063, VS1053, 32 bits
;Decoding AAC
PAR_AAC_SCE_FOUND_MASK = 0x1e2a ;VS1063, VS1053
PAR_AAC_CPE_FOUND_MASK = 0x1e2b ;VS1063, VS1053
PAR_AAC_LFE_FOUND_MASK = 0x1e2c ;VS1063, VS1053
PAR_AAC_PLAY_SELECT = 0x1e2d ;VS1063, VS1053
PAR_AAC_DYN_COMPRESS = 0x1e2e ;VS1063, VS1053
PAR_AAC_DYN_BOOST = 0x1e2f ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS = 0x1e30 ;VS1063, VS1053
PAR_AAC_SBR_PS_FLAGS = 0x1e31 ;VS1063
;Decoding MIDI (VS1053)
PAR_MIDI_BYTES_LEFT = 0x1e2a ;VS1053, 32 bits
;Decoding Vorbis
PAR_VORBIS_GAIN = 0x1e30 ;VS1063, VS1053
;Bit definitions for parametric registers with bitfields
PAR_CONFIG1_DIS_WMA_B = 15 ;VS1063
PAR_CONFIG1_DIS_AAC_B = 14 ;VS1063
PAR_CONFIG1_DIS_MP3_B = 13 ;VS1063
PAR_CONFIG1_DIS_FLAC_B = 12 ;VS1063
PAR_CONFIG1_DIS_CRC_B = 8 ;VS1063
PAR_CONFIG1_AAC_PS_B = 6 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_B = 4 ;VS1063, VS1053
PAR_CONFIG1_MIDI_REVERB_B = 0 ; VS1053
PAR_CONFIG1_DIS_WMA = 1<<15 ;VS1063
PAR_CONFIG1_DIS_AAC = 1<<14 ;VS1063
PAR_CONFIG1_DIS_MP3 = 1<<13 ;VS1063
PAR_CONFIG1_DIS_FLAC = 1<<12 ;VS1063
PAR_CONFIG1_DIS_CRC = 1<< 8 ;VS1063
PAR_CONFIG1_AAC_PS = 1<< 6 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR = 1<< 4 ;VS1063, VS1053
PAR_CONFIG1_MIDI_REVERB = 1<< 0 ; VS1053
PAR_CONFIG1_AAC_PS_BITS = 2 ;VS1063, VS1053
PAR_CONFIG1_AAC_PS_MASK = 0x00c0 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_BITS = 2 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_MASK = 0x0030 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_ALWAYS_UPSAMPLE = 0x0000 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_SELECTIVE_UPSAMPLE = 0x0010 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_NEVER_UPSAMPLE = 0x0020 ;VS1063, VS1053
PAR_CONFIG1_AAC_SBR_DISABLE = 0x0030 ;VS1063, VS1053
PAR_CONFIG1_AAC_PS_NORMAL = 0x0000 ;VS1063, VS1053
PAR_CONFIG1_AAC_PS_DOWNSAMPLED = 0x0040 ;VS1063, VS1053
PAR_CONFIG1_AAC_PS_DISABLE = 0x00c0 ;VS1063, VS1053
PAR_PLAY_MODE_SPEED_SHIFTER_ENA_B = 6 ;VS1063
PAR_PLAY_MODE_EQ5_ENA_B = 5 ;VS1063
PAR_PLAY_MODE_PCM_MIXER_ENA_B = 4 ;VS1063
PAR_PLAY_MODE_AD_MIXER_ENA_B = 3 ;VS1063
PAR_PLAY_MODE_VU_METER_ENA_B = 2 ;VS1063
PAR_PLAY_MODE_PAUSE_ENA_B = 1 ;VS1063
PAR_PLAY_MODE_MONO_ENA_B = 0 ;VS1063
PAR_PLAY_MODE_SPEED_SHIFTER_ENA = 1<<6 ;VS1063
PAR_PLAY_MODE_EQ5_ENA = 1<<5 ;VS1063
PAR_PLAY_MODE_PCM_MIXER_ENA = 1<<4 ;VS1063
PAR_PLAY_MODE_AD_MIXER_ENA = 1<<3 ;VS1063
PAR_PLAY_MODE_VU_METER_ENA = 1<<2 ;VS1063
PAR_PLAY_MODE_PAUSE_ENA = 1<<1 ;VS1063
PAR_PLAY_MODE_MONO_ENA = 1<<0 ;VS1063
PAR_VU_METER_LEFT_BITS = 8 ;VS1063
PAR_VU_METER_LEFT_MASK = 0xFF00 ;VS1063
PAR_VU_METER_RIGHT_BITS = 8 ;VS1063
PAR_VU_METER_RIGHT_MASK = 0x00FF ;VS1063
PAR_AD_MIXER_CONFIG_MODE_B = 2 ;VS1063
PAR_AD_MIXER_CONFIG_RATE_B = 2 ;VS1063
PAR_AD_MIXER_CONFIG_MODE_BITS = 2 ;VS1063
PAR_AD_MIXER_CONFIG_MODE_MASK = 0x000c ;VS1063
PAR_AD_MIXER_CONFIG_RATE_BITS = 2 ;VS1063
PAR_AD_MIXER_CONFIG_RATE_MASK = 0x0003 ;VS1063
PAR_AD_MIXER_CONFIG_RATE_192K = 0x0000 ;VS1063
PAR_AD_MIXER_CONFIG_RATE_96K = 0x0001 ;VS1063
PAR_AD_MIXER_CONFIG_RATE_48K = 0x0002 ;VS1063
PAR_AD_MIXER_CONFIG_RATE_24K = 0x0003 ;VS1063
PAR_AD_MIXER_CONFIG_MODE_STEREO = 0x0000 ;VS1063
PAR_AD_MIXER_CONFIG_MODE_MONO = 0x0040 ;VS1063
PAR_AD_MIXER_CONFIG_MODE_LEFT = 0x0080 ;VS1063
PAR_AD_MIXER_CONFIG_MODE_RIGHT = 0x00c0 ;VS1063
PAR_AAC_SBR_AND_PS_STATUS_SBR_PRESENT_B = 0 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_UPSAMPLING_ACTIVE_B = 1 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_PS_PRESENT_B = 2 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_PS_ACTIVE_B = 3 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_SBR_PRESENT = 1<<0 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_UPSAMPLING_ACTIVE = 1<<1 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_PS_PRESENT = 1<<2 ;VS1063, VS1053
PAR_AAC_SBR_AND_PS_STATUS_PS_ACTIVE = 1<<3 ;VS1063, VS1053