Atmel Software Framework

ssc_i2s.h File Reference
#include <avr32/io.h>

Macros

#define SSC_I2S_TIMEOUT_VALUE   10000
 

Enumerations

enum  {
  SSC_I2S_ERROR = -1,
  SSC_I2S_OK = 0,
  SSC_I2S_TIMEOUT = 1,
  SSC_I2S_ERROR_ARGUMENT,
  SSC_I2S_ERROR_RX,
  SSC_I2S_ERROR_TX
}
 Error codes used by SSC I2S driver. More...
 
enum  {
  SSC_I2S_MODE_STEREO_OUT = 1,
  SSC_I2S_MODE_STEREO_OUT_EXT_CLK,
  SSC_I2S_MODE_SLAVE_STEREO_OUT,
  SSC_I2S_MODE_SLAVE_STEREO_IN,
  SSC_I2S_MODE_STEREO_OUT_MONO_IN,
  SSC_I2S_MODE_RIGHT_IN,
  SSC_I2S_MODE_STEREO_IN,
  SSC_I2S_MODE_STEREO_OUT_STEREO_IN
}
 SSC I2S modes. More...
 

Functions

void ssc_i2s_disable_interrupts (volatile avr32_ssc_t *ssc, unsigned long int_mask)
 Disables the specified SSC interrupts. More...
 
void ssc_i2s_enable_interrupts (volatile avr32_ssc_t *ssc, unsigned long int_mask)
 Enables the specified SSC interrupts. More...
 
unsigned long ssc_i2s_get_status (volatile avr32_ssc_t *ssc)
 Returns the SSC status. More...
 
int ssc_i2s_init (volatile avr32_ssc_t *ssc, unsigned int sample_frequency, unsigned int data_bit_res, unsigned int frame_bit_res, unsigned char mode, unsigned int pba_hz)
 Sets up registers and initializes SSC for use as I2S. More...
 
void ssc_i2s_reset (volatile avr32_ssc_t *ssc)
 Resets the SSC module. More...
 
int ssc_i2s_transfer (volatile avr32_ssc_t *ssc, unsigned int data)
 Transfers a single message of data. More...