HPM SDK
HPMicro Software Development Kit
hpm_i2s_common.h File Reference

Go to the source code of this file.

Macros

#define I2S_PROTOCOL_I2S_PHILIPS   (0U)
 
#define I2S_PROTOCOL_MSB_JUSTIFIED   (1U)
 
#define I2S_PROTOCOL_LEFT_JUSTIFIED   (1U)
 
#define I2S_PROTOCOL_LSB_JUSTIFIED   (2U)
 
#define I2S_PROTOCOL_RIGHT_JUSTIFIED   (2U)
 
#define I2S_PROTOCOL_PCM   (3U)
 
#define I2S_CHANNEL_SLOT_MASK(x)   (1U << (x))
 
#define I2S_CFGR_DATASIZ(x)   ((x - 16) >> 3)
 
#define I2S_CFGR_CHSIZ(x)   ((x - 16) >> 4)
 

Enumerations

enum  { i2s_audio_depth_16_bits = 16 , i2s_audio_depth_24_bits = 24 , i2s_audio_depth_32_bits = 32 }
 I2S audio depth. More...
 
enum  { i2s_channel_length_16_bits = 16 , i2s_channel_length_32_bits = 32 }
 I2S channel length. More...
 
enum  { i2s_mono_left = 0 , i2s_mono_right = 1 , i2s_stereo = 2 }
 I2S stereo/mono channel. More...