Atmel Software Framework

host/conf/conf_tlv320aic23b.h File Reference
#include "tlv320aic23b.h"
#include <avr32/io.h>
#include "intc.h"
#include "board.h"

Macros

#define AIC23B_CTRL_INTERFACE   AIC23B_CTRL_INTERFACE_TWI
 Control interface: AIC23B_CTRL_INTERFACE_TWI or AIC23B_CTRL_INTERFACE_SPI. More...
 
#define AIC23B_INPUT   AIC23B_INPUT_MIC
 
#define AIC23B_MCLK_HZ   11289600
 Master clock (in Hz): 12000000 or 11289600. More...
 
#define AIC23B_MODE   AIC23B_MODE_CODEC
 Mode Selected: AIC23B_MODE_DAC, AIC23B_MODE_ADC or AIC23B_MODE_CODEC. More...
 
TWI Connections
#define AIC23B_TWI   TLV320_TWI
 
#define AIC23B_TWI_ADDRESS   0x1A
 TWI address: 0x1A if /CS state is 0 or 0x1B if /CS state is 1. More...
 
#define AIC23B_TWI_MASTER_SPEED   400000
 
#define AIC23B_TWI_SCL_PIN   TLV320_TWI_SCL_PIN
 
#define AIC23B_TWI_SCL_FUNCTION   TLV320_TWI_SCL_FUNCTION
 
#define AIC23B_TWI_SDA_PIN   TLV320_TWI_SDA_PIN
 
#define AIC23B_TWI_SDA_FUNCTION   TLV320_TWI_SDA_FUNCTION
 
SSC Connections
#define AIC23B_SSC   (&AVR32_SSC)
 
#define AIC23B_SSC_TX_PDCA_PID   AVR32_PDCA_PID_SSC_TX
 
#define AIC23B_SSC_TX_PDCA_CHANNEL   0
 
#define AIC23B_SSC_TX_PDCA_IRQ   AVR32_PDCA_IRQ_0
 
#define AIC23B_SSC_TX_PDCA_INT_LEVEL   AVR32_INTC_INT3
 
#define AIC23B_SSC_TX_CLOCK_PIN   AVR32_SSC_TX_CLOCK_0_PIN
 
#define AIC23B_SSC_TX_CLOCK_FUNCTION   AVR32_SSC_TX_CLOCK_0_FUNCTION
 
#define AIC23B_SSC_TX_DATA_PIN   AVR32_SSC_TX_DATA_0_PIN
 
#define AIC23B_SSC_TX_DATA_FUNCTION   AVR32_SSC_TX_DATA_0_FUNCTION
 
#define AIC23B_SSC_TX_FRAME_SYNC_PIN   AVR32_SSC_TX_FRAME_SYNC_0_PIN
 
#define AIC23B_SSC_TX_FRAME_SYNC_FUNCTION   AVR32_SSC_TX_FRAME_SYNC_0_FUNCTION
 
#define AIC23B_SSC_RX_PDCA_PID   AVR32_PDCA_PID_SSC_RX
 
#define AIC23B_SSC_RX_PDCA_CHANNEL   1
 
#define AIC23B_SSC_RX_PDCA_IRQ   AVR32_PDCA_IRQ_1
 
#define AIC23B_SSC_RX_PDCA_INT_LEVEL   AVR32_INTC_INT3
 
#define AIC23B_SSC_RX_DATA_PIN   AVR32_SSC_RX_DATA_0_PIN
 
#define AIC23B_SSC_RX_DATA_FUNCTION   AVR32_SSC_RX_DATA_0_FUNCTION
 
#define AIC23B_SSC_RX_FRAME_SYNC_PIN   AVR32_SSC_RX_FRAME_SYNC_0_PIN
 
#define AIC23B_SSC_RX_FRAME_SYNC_FUNCTION   AVR32_SSC_RX_FRAME_SYNC_0_FUNCTION
 

#define AIC23B_CTRL_INTERFACE   AIC23B_CTRL_INTERFACE_TWI

Control interface: AIC23B_CTRL_INTERFACE_TWI or AIC23B_CTRL_INTERFACE_SPI.

#define AIC23B_INPUT   AIC23B_INPUT_MIC
#define AIC23B_MCLK_HZ   11289600

Master clock (in Hz): 12000000 or 11289600.

Referenced by aic23b_dac_setup().

#define AIC23B_MODE   AIC23B_MODE_CODEC

Mode Selected: AIC23B_MODE_DAC, AIC23B_MODE_ADC or AIC23B_MODE_CODEC.

#define AIC23B_SSC   (&AVR32_SSC)
#define AIC23B_SSC_RX_DATA_FUNCTION   AVR32_SSC_RX_DATA_0_FUNCTION
#define AIC23B_SSC_RX_DATA_PIN   AVR32_SSC_RX_DATA_0_PIN
#define AIC23B_SSC_RX_FRAME_SYNC_FUNCTION   AVR32_SSC_RX_FRAME_SYNC_0_FUNCTION
#define AIC23B_SSC_RX_FRAME_SYNC_PIN   AVR32_SSC_RX_FRAME_SYNC_0_PIN
#define AIC23B_SSC_RX_PDCA_CHANNEL   1
#define AIC23B_SSC_RX_PDCA_INT_LEVEL   AVR32_INTC_INT3
#define AIC23B_SSC_RX_PDCA_IRQ   AVR32_PDCA_IRQ_1
#define AIC23B_SSC_RX_PDCA_PID   AVR32_PDCA_PID_SSC_RX
#define AIC23B_SSC_TX_CLOCK_FUNCTION   AVR32_SSC_TX_CLOCK_0_FUNCTION
#define AIC23B_SSC_TX_CLOCK_PIN   AVR32_SSC_TX_CLOCK_0_PIN
#define AIC23B_SSC_TX_DATA_FUNCTION   AVR32_SSC_TX_DATA_0_FUNCTION
#define AIC23B_SSC_TX_DATA_PIN   AVR32_SSC_TX_DATA_0_PIN
#define AIC23B_SSC_TX_FRAME_SYNC_FUNCTION   AVR32_SSC_TX_FRAME_SYNC_0_FUNCTION
#define AIC23B_SSC_TX_FRAME_SYNC_PIN   AVR32_SSC_TX_FRAME_SYNC_0_PIN

Referenced by aic23b_dac_output().

#define AIC23B_SSC_TX_PDCA_INT_LEVEL   AVR32_INTC_INT3

Referenced by aic23b_dac_start().

#define AIC23B_SSC_TX_PDCA_IRQ   AVR32_PDCA_IRQ_0

Referenced by aic23b_dac_start().

#define AIC23B_SSC_TX_PDCA_PID   AVR32_PDCA_PID_SSC_TX

Referenced by aic23b_dac_setup().

#define AIC23B_TWI   TLV320_TWI
#define AIC23B_TWI_ADDRESS   0x1A

TWI address: 0x1A if /CS state is 0 or 0x1B if /CS state is 1.

Referenced by aic23b_write_control_word(), and init_twi().

#define AIC23B_TWI_MASTER_SPEED   400000

Referenced by init_twi().

#define AIC23B_TWI_SCL_FUNCTION   TLV320_TWI_SCL_FUNCTION

Referenced by init_twi().

#define AIC23B_TWI_SCL_PIN   TLV320_TWI_SCL_PIN

Referenced by init_twi().

#define AIC23B_TWI_SDA_FUNCTION   TLV320_TWI_SDA_FUNCTION

Referenced by init_twi().

#define AIC23B_TWI_SDA_PIN   TLV320_TWI_SDA_PIN

Referenced by init_twi().