Classes | |
struct | _wm8904_audio_format |
Audio format configuration. More... | |
struct | _wm8904_config |
Configuration structure of WM8904. More... | |
struct | _wm8904_fll_config |
wm8904 fll configuration More... | |
struct | _wm8904_handle |
wm8904 codec handler More... | |
#define FSL_WM8904_DRIVER_VERSION (MAKE_VERSION(2, 4, 1)) |
WM8904 driver version 2.4.1.
Definition at line 25 of file fsl_wm8904.h.
#define WM8904_ADC_DIGITAL_VOLUME_LEFT (0x24) |
Definition at line 69 of file fsl_wm8904.h.
#define WM8904_ADC_DIGITAL_VOLUME_RIGHT (0x25) |
Definition at line 70 of file fsl_wm8904.h.
#define WM8904_ANALOG_ADC_0 (0x0A) |
Definition at line 39 of file fsl_wm8904.h.
#define WM8904_ANALOG_HP_0 (0x5A) |
Definition at line 61 of file fsl_wm8904.h.
#define WM8904_ANALOG_LEFT_IN_0 (0x2C) |
Definition at line 53 of file fsl_wm8904.h.
#define WM8904_ANALOG_LEFT_IN_1 (0x2E) |
Definition at line 55 of file fsl_wm8904.h.
#define WM8904_ANALOG_OUT12_ZC (0x3D) |
Definition at line 59 of file fsl_wm8904.h.
#define WM8904_ANALOG_OUT1_LEFT (0x39) |
Definition at line 57 of file fsl_wm8904.h.
#define WM8904_ANALOG_OUT1_RIGHT (0x3A) |
Definition at line 58 of file fsl_wm8904.h.
#define WM8904_ANALOG_OUT2_LEFT (0x3B) |
Definition at line 71 of file fsl_wm8904.h.
#define WM8904_ANALOG_OUT2_RIGHT (0x3C) |
Definition at line 72 of file fsl_wm8904.h.
#define WM8904_ANALOG_RIGHT_IN_0 (0x2D) |
Definition at line 54 of file fsl_wm8904.h.
#define WM8904_ANALOG_RIGHT_IN_1 (0x2F) |
Definition at line 56 of file fsl_wm8904.h.
#define WM8904_AUDIO_IF_0 (0x18) |
Definition at line 47 of file fsl_wm8904.h.
#define WM8904_AUDIO_IF_1 (0x19) |
Definition at line 48 of file fsl_wm8904.h.
#define WM8904_AUDIO_IF_2 (0x1A) |
Definition at line 49 of file fsl_wm8904.h.
#define WM8904_AUDIO_IF_3 (0x1B) |
Definition at line 50 of file fsl_wm8904.h.
#define WM8904_CHRG_PUMP_0 (0x62) |
Definition at line 62 of file fsl_wm8904.h.
#define WM8904_CLK_RATES_0 (0x14) |
Definition at line 44 of file fsl_wm8904.h.
#define WM8904_CLK_RATES_1 (0x15) |
Definition at line 45 of file fsl_wm8904.h.
#define WM8904_CLK_RATES_2 (0x16) |
Definition at line 46 of file fsl_wm8904.h.
#define WM8904_CLS_W_0 (0x68) |
Definition at line 63 of file fsl_wm8904.h.
#define WM8904_DAC_DIG_0 (0x27) |
Definition at line 52 of file fsl_wm8904.h.
#define WM8904_DAC_DIG_1 (0x21) |
Definition at line 51 of file fsl_wm8904.h.
#define WM8904_DAC_DIGITAL_VOLUME_LEFT (0x1E) |
Definition at line 67 of file fsl_wm8904.h.
#define WM8904_DAC_DIGITAL_VOLUME_RIGHT (0x1F) |
Definition at line 68 of file fsl_wm8904.h.
#define WM8904_DC_SERVO_0 (0x43) |
Definition at line 60 of file fsl_wm8904.h.
#define WM8904_DEBUG_REGISTER 0 |
wm8904 debug macro
Definition at line 34 of file fsl_wm8904.h.
#define WM8904_FLL_CONTROL_1 (0x74) |
Definition at line 75 of file fsl_wm8904.h.
#define WM8904_FLL_CONTROL_2 (0x75) |
Definition at line 76 of file fsl_wm8904.h.
#define WM8904_FLL_CONTROL_3 (0x76) |
Definition at line 77 of file fsl_wm8904.h.
#define WM8904_FLL_CONTROL_4 (0x77) |
Definition at line 78 of file fsl_wm8904.h.
#define WM8904_FLL_CONTROL_5 (0x78) |
Definition at line 79 of file fsl_wm8904.h.
#define WM8904_FLL_NCO_TEST_0 (0xF7U) |
Definition at line 86 of file fsl_wm8904.h.
#define WM8904_FLL_NCO_TEST_1 (0xF8U) |
Definition at line 87 of file fsl_wm8904.h.
#define WM8904_GPIO_CONTROL_1 (0x79) |
Definition at line 81 of file fsl_wm8904.h.
#define WM8904_GPIO_CONTROL_2 (0x7A) |
Definition at line 82 of file fsl_wm8904.h.
#define WM8904_GPIO_CONTROL_3 (0x7B) |
Definition at line 83 of file fsl_wm8904.h.
#define WM8904_GPIO_CONTROL_4 (0x7C) |
Definition at line 84 of file fsl_wm8904.h.
#define WM8904_GPIO_CONTROL_4 (0x7C) |
Definition at line 84 of file fsl_wm8904.h.
#define WM8904_I2C_ADDRESS (0x1A) |
WM8904 I2C address.
Definition at line 90 of file fsl_wm8904.h.
#define WM8904_I2C_BITRATE (400000U) |
WM8904 I2C bit rate.
Definition at line 93 of file fsl_wm8904.h.
#define WM8904_I2C_HANDLER_SIZE (CODEC_I2C_MASTER_HANDLER_SIZE) |
wm8904 handle size
Definition at line 30 of file fsl_wm8904.h.
#define WM8904_POWER_MGMT_0 (0x0C) |
Definition at line 40 of file fsl_wm8904.h.
#define WM8904_POWER_MGMT_2 (0x0E) |
Definition at line 41 of file fsl_wm8904.h.
#define WM8904_POWER_MGMT_3 (0x0F) |
Definition at line 42 of file fsl_wm8904.h.
#define WM8904_POWER_MGMT_6 (0x12) |
Definition at line 43 of file fsl_wm8904.h.
#define WM8904_RESET (0x00) |
WM8904 register map.
Definition at line 38 of file fsl_wm8904.h.
#define WM8904_WRT_SEQUENCER_0 (0x6C) |
Definition at line 64 of file fsl_wm8904.h.
#define WM8904_WRT_SEQUENCER_3 (0x6F) |
Definition at line 65 of file fsl_wm8904.h.
#define WM8904_WRT_SEQUENCER_4 (0x70) |
Definition at line 66 of file fsl_wm8904.h.
typedef struct _wm8904_audio_format wm8904_audio_format_t |
Audio format configuration.
typedef enum _wm8904_bit_width wm8904_bit_width_t |
Bit width.
typedef struct _wm8904_config wm8904_config_t |
Configuration structure of WM8904.
typedef enum _wm8904_fll_clk_source wm8904_fll_clk_source_t |
wm8904 fll clock source
typedef struct _wm8904_fll_config wm8904_fll_config_t |
wm8904 fll configuration
typedef enum _wm8904_fs_ratio wm8904_fs_ratio_t |
The SYSCLK / fs ratio.
typedef struct _wm8904_handle wm8904_handle_t |
wm8904 codec handler
typedef enum _wm8904_module wm8904_module_t |
wm8904 module value
typedef enum _wm8904_protocol wm8904_protocol_t |
The audio data transfer protocol.
typedef enum _wm8904_sample_rate wm8904_sample_rate_t |
Sample rate.
typedef enum _wm8904_sys_clk_source wm8904_sys_clk_source_t |
wm8904 system clock source
typedef enum _wm8904_timeslot wm8904_timeslot_t |
WM8904 time slot.
enum _wm8904_bit_width |
Bit width.
Enumerator | |
---|---|
kWM8904_BitWidth16 | 16 bits |
kWM8904_BitWidth20 | 20 bits |
kWM8904_BitWidth24 | 24 bits |
kWM8904_BitWidth32 | 32 bits |
Definition at line 172 of file fsl_wm8904.h.
wm8904 fll clock source
Enumerator | |
---|---|
kWM8904_FLLClkSourceMCLK | wm8904 FLL clock source from MCLK |
Definition at line 221 of file fsl_wm8904.h.
enum _wm8904_fs_ratio |
The SYSCLK / fs ratio.
Definition at line 146 of file fsl_wm8904.h.
enum _wm8904_lrc_polarity |
WM8904 lrc polarity.
Enumerator | |
---|---|
kWM8904_LRCPolarityNormal | LRC polarity normal |
kWM8904_LRCPolarityInverted | LRC polarity inverted |
Definition at line 103 of file fsl_wm8904.h.
enum _wm8904_module |
wm8904 module value
Enumerator | |
---|---|
kWM8904_ModuleADC | moduel ADC |
kWM8904_ModuleDAC | module DAC |
kWM8904_ModulePGA | module PGA |
kWM8904_ModuleHeadphone | module headphone |
kWM8904_ModuleLineout | module line out |
Definition at line 110 of file fsl_wm8904.h.
enum _wm8904_play_channel |
wm8904 play channel
Enumerator | |
---|---|
kWM8904_HeadphoneLeft | |
kWM8904_HeadphoneRight | |
kWM8904_LineoutLeft | |
kWM8904_LineoutRight |
Definition at line 120 of file fsl_wm8904.h.
enum _wm8904_play_source |
wm8904 play source
Enumerator | |
---|---|
kWM8904_PlaySourcePGA | play source PGA, bypass ADC |
kWM8904_PlaySourceDAC | play source Input3 |
Definition at line 207 of file fsl_wm8904.h.
enum _wm8904_protocol |
The audio data transfer protocol.
Definition at line 136 of file fsl_wm8904.h.
wm8904 record channel
Definition at line 190 of file fsl_wm8904.h.
wm8904 record source
Definition at line 181 of file fsl_wm8904.h.
enum _wm8904_sample_rate |
Sample rate.
Definition at line 161 of file fsl_wm8904.h.
enum _wm8904_status |
WM8904 status return codes.
Enumerator | |
---|---|
kStatus_WM8904_Success | Success |
kStatus_WM8904_Fail | Failure |
Definition at line 96 of file fsl_wm8904.h.
wm8904 system clock source
Enumerator | |
---|---|
kWM8904_SysClkSourceMCLK | wm8904 system clock soure from MCLK |
kWM8904_SysClkSourceFLL | wm8904 system clock soure from FLL |
Definition at line 214 of file fsl_wm8904.h.
enum _wm8904_timeslot |
WM8904 time slot.
Enumerator | |
---|---|
kWM8904_TimeSlot0 | time slot0 |
kWM8904_TimeSlot1 | time slot1 |
Definition at line 129 of file fsl_wm8904.h.
status_t WM8904_CheckAudioFormat | ( | wm8904_handle_t * | handle, |
wm8904_audio_format_t * | format, | ||
uint32_t | mclkFreq | ||
) |
check and update the audio data format. This api is used check the fsRatio setting based on the mclk and sample rate, if fsRatio setting is not correct, it will correct it according to mclk and sample rate.
handle | WM8904 handle structure. |
format | audio data format |
mclkFreq | mclk frequency |
brief check and update the audio data format. This api is used check the fsRatio setting based on the mclk and sample rate, if fsRatio setting is not correct, it will correct it according to mclk and sample rate. param handle WM8904 handle structure. param format audio data format param mclkFreq mclk frequency
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 769 of file fsl_wm8904.c.
status_t WM8904_Deinit | ( | wm8904_handle_t * | handle | ) |
Deinitializes the WM8904 codec.
This function resets WM8904.
handle | WM8904 handle structure. |
brief Deinitializes the WM8904 codec.
This function resets WM8904.
param handle WM8904 handle structure.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 432 of file fsl_wm8904.c.
status_t WM8904_EnableADCTDMMode | ( | wm8904_handle_t * | handle, |
wm8904_timeslot_t | timeSlot | ||
) |
Enable WM8904 ADC time slot.
handle | WM8904 handle structure. |
timeSlot | timeslot number. |
brief Enable WM8904 ADC time slot.
param handle WM8904 handle structure. param timeslot timeslot number.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 754 of file fsl_wm8904.c.
status_t WM8904_EnableDACTDMMode | ( | wm8904_handle_t * | handle, |
wm8904_timeslot_t | timeSlot | ||
) |
Enable WM8904 DAC time slot.
handle | WM8904 handle structure. |
timeSlot | timeslot number. |
brief Enable WM8904 DAC time slot.
param handle WM8904 handle structure. param timeslot timeslot number.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 741 of file fsl_wm8904.c.
void WM8904_GetDefaultConfig | ( | wm8904_config_t * | config | ) |
Fills the configuration structure with default values.
The default values are:
master = false; protocol = kWM8904_ProtocolI2S; format.fsRatio = kWM8904_FsRatio64X; format.sampleRate = kWM8904_SampleRate48kHz; format.bitWidth = kWM8904_BitWidth16;
config | default configurations of wm8904. |
brief Fills the configuration structure with default values.
The default values are:
master = false; protocol = kWM8904_ProtocolI2S; format.fsRatio = kWM8904_FsRatio64X; format.sampleRate = kWM8904_SampleRate48kHz; format.bitWidth = kWM8904_BitWidth16;
param handle WM8904 handle structure to be filled with default values.
Definition at line 456 of file fsl_wm8904.c.
status_t WM8904_Init | ( | wm8904_handle_t * | handle, |
wm8904_config_t * | wm8904Config | ||
) |
Initializes WM8904.
handle | WM8904 handle structure. |
wm8904_config | WM8904 configuration structure. |
brief Initializes WM8904.
param handle WM8904 handle structure. param codec_config WM8904 configuration structure.
Definition at line 194 of file fsl_wm8904.c.
status_t WM8904_ModifyRegister | ( | wm8904_handle_t * | handle, |
uint8_t | reg, | ||
uint16_t | mask, | ||
uint16_t | value | ||
) |
WM8904 modify register.
handle | WM8904 handle structure. |
reg | register address. |
mask | register bits mask. |
value | value to write. |
brief WM8904 modify register.
param handle WM8904 handle structure. param reg register address. oaram mask register bits mask. param value value to write. return kStatus_Success, else failed.
Definition at line 171 of file fsl_wm8904.c.
status_t WM8904_ReadRegister | ( | wm8904_handle_t * | handle, |
uint8_t | reg, | ||
uint16_t * | value | ||
) |
WM8904 write register.
handle | WM8904 handle structure. |
reg | register address. |
value | value to read. |
brief WM8904 write register.
param handle WM8904 handle structure. param reg register address. param value value to read. return kStatus_Success, else failed.
Definition at line 147 of file fsl_wm8904.c.
status_t WM8904_SelectLRCPolarity | ( | wm8904_handle_t * | handle, |
uint32_t | polarity | ||
) |
Select LRC polarity.
handle | WM8904 handle structure. |
polarity | LRC clock polarity. |
brief Select LRC polarity.
param handle WM8904 handle structure. param polarity LRC clock polarity.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 728 of file fsl_wm8904.c.
status_t WM8904_SeMasterClock | ( | wm8904_handle_t * | handle, |
uint32_t | sysclk, | ||
uint32_t | sampleRate, | ||
uint32_t | bitWidth | ||
) |
Sets WM8904 master clock configuration.
handle | WM8904 handle structure. |
sysclk | system clock rate. |
sampleRate | sample rate |
bitWidth | bit width |
Definition at line 485 of file fsl_wm8904.c.
status_t WM8904_SetAudioFormat | ( | wm8904_handle_t * | handle, |
uint32_t | sysclk, | ||
uint32_t | sampleRate, | ||
uint32_t | bitWidth | ||
) |
Sets the audio data format.
handle | WM8904 handle structure. |
sysclk | System clock frequency for codec, user should pay attention to this parater, sysclk is caculate as SYSCLK = MCLK / MCLKDIV, MCLKDIV is bit0 of WM8904_CLK_RATES_0. |
sampleRate | Sample rate frequency in Hz. |
bitWidth | Audio data bit width. |
brief Sets the audio data format.
param handle WM8904 handle structure. param sysclk System clock frequency for codec, user should pay attention to this parater, sysclk is caculate as SYSCLK = MCLK / MCLKDIV, MCLKDIV is bit0 of WM8904_CLK_RATES_0. param sampleRate Sample rate frequency in Hz. param bitWidth Audio data bit width.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 860 of file fsl_wm8904.c.
status_t WM8904_SetChannelMute | ( | wm8904_handle_t * | handle, |
uint32_t | channel, | ||
bool | isMute | ||
) |
Sets the channel mute.
handle | codec handle structure. |
channel | codec module name. |
isMute | true is mute, false unmute. |
brief Sets the channel mute.
param handle codec handle structure. param channel codec module name. param isMute true is mute, false unmute.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 1101 of file fsl_wm8904.c.
status_t WM8904_SetChannelVolume | ( | wm8904_handle_t * | handle, |
uint32_t | channel, | ||
uint32_t | volume | ||
) |
Sets the channel output volume.
The parameter should be from 0 to 100. The resulting volume will be. 0 for mute, 100 for maximum volume value.
handle | codec handle structure. |
channel | codec channel. |
volume | volume value. |
brief Sets the channel output volume.
The parameter should be from 0 to 100. The resulting volume will be. 0 for mute, 100 for maximum volume value.
param handle codec handle structure. param channel codec channel. param volume volume value.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 1059 of file fsl_wm8904.c.
status_t WM8904_SetFLLConfig | ( | wm8904_handle_t * | handle, |
wm8904_fll_config_t * | config | ||
) |
WM8904 set PLL configuration This function will enable the GPIO1 FLL clock output function, so user can see the generated fll output clock frequency from WM8904 GPIO1.
handle | wm8904 handler pointer. |
config | FLL configuration pointer. |
Definition at line 591 of file fsl_wm8904.c.
status_t WM8904_SetMasterSlave | ( | wm8904_handle_t * | handle, |
bool | master | ||
) |
Sets WM8904 as master or slave.
handle | WM8904 handle structure. |
master | true for master, false for slave. |
brief Sets WM8904 as master or slave. deprecated DO NOT USE THIS API ANYMORE. IT HAS BEEN SUPERCEDED BY WM8904_SeMasterClock param handle WM8904 handle structure. param master true for master, false for slave.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 474 of file fsl_wm8904.c.
status_t WM8904_SetModulePower | ( | wm8904_handle_t * | handle, |
wm8904_module_t | module, | ||
bool | isEnabled | ||
) |
brief SET the module output power.
param handle WM8904 handle structure. param module wm8904 module. param isEnabled, true is power on, false is power down.
return kStatus_WM8904_Success if successful, different code otherwise..
Definition at line 1145 of file fsl_wm8904.c.
status_t WM8904_SetMute | ( | wm8904_handle_t * | handle, |
bool | muteLeft, | ||
bool | muteRight | ||
) |
Sets the headphone output mute.
handle | WM8904 handle structure. |
muteLeft | true to mute left channel, false to unmute. |
muteRight | true to mute right channel, false to unmute. |
brief Sets the headphone output mute.
param handle WM8904 handle structure. param muteLeft true to mute left channel, false to unmute. param muteRight true to mute right channel, false to unmute.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 994 of file fsl_wm8904.c.
status_t WM8904_SetPlay | ( | wm8904_handle_t * | handle, |
uint32_t | playSource | ||
) |
SET the WM8904 play source.
handle | WM8904 handle structure. |
playSource | play source , can be a value of kCODEC_ModuleHeadphoneSourcePGA, kCODEC_ModuleHeadphoneSourceDAC, kCODEC_ModuleLineoutSourcePGA, kCODEC_ModuleLineoutSourceDAC. |
brief SET the WM8904 play source.
param handle WM8904 handle structure. param playSource play source , can be a value of kWM8904_PlaySourcePGA/kWM8904_PlaySourceDAC.
return kStatus_WM8904_Success if successful, different code otherwise..
Definition at line 1339 of file fsl_wm8904.c.
status_t WM8904_SetProtocol | ( | wm8904_handle_t * | handle, |
wm8904_protocol_t | protocol | ||
) |
Sets the audio data transfer protocol.
handle | WM8904 handle structure. |
protocol | Audio transfer protocol. |
brief Sets the audio data transfer protocol.
param handle WM8904 handle structure. param protocol Audio transfer protocol.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 715 of file fsl_wm8904.c.
status_t WM8904_SetRecord | ( | wm8904_handle_t * | handle, |
uint32_t | recordSource | ||
) |
SET the WM8904 record source.
handle | WM8904 handle structure. |
recordSource | record source , can be a value of kCODEC_ModuleRecordSourceDifferentialLine, kCODEC_ModuleRecordSourceDifferentialMic, kCODEC_ModuleRecordSourceSingleEndMic, kCODEC_ModuleRecordSourceDigitalMic. |
brief SET the WM8904 record source.
param handle WM8904 handle structure. param recordSource record source , can be a value of kWM8904_ModuleRecordSourceDifferentialLine, kWM8904_ModuleRecordSourceDifferentialMic, kWM8904_ModuleRecordSourceSingleEndMic, kWM8904_ModuleRecordSourceDigitalMic.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 1195 of file fsl_wm8904.c.
status_t WM8904_SetRecordChannel | ( | wm8904_handle_t * | handle, |
uint32_t | leftRecordChannel, | ||
uint32_t | rightRecordChannel | ||
) |
SET the WM8904 record source.
handle | WM8904 handle structure. |
leftRecordChannel | channel number of left record channel when using differential source, channel number of single end left channel when using single end source, channel number of digital mic when using digital mic source. |
rightRecordChannel | channel number of right record channel when using differential source, channel number of single end right channel when using single end source. |
brief SET the WM8904 record source.
param handle WM8904 handle structure. param leftRecordChannel channel number of left record channel when using differential source, channel number of single end left channel when using single end source, channel number of digital mic when using digital mic source. param rightRecordChannel channel number of right record channel when using differential source, channel number of single end right channel when using single end source.
return kStatus_WM8904_Success if successful, different code otherwise..
Definition at line 1250 of file fsl_wm8904.c.
status_t WM8904_SetVolume | ( | wm8904_handle_t * | handle, |
uint16_t | volumeLeft, | ||
uint16_t | volumeRight | ||
) |
Sets the module output volume.
The parameter should be from 0 to 100. The resulting volume will be. 0 for mute, 100 for maximum volume value.
handle | WM8904 handle structure. |
volumeLeft | left channel volume. |
volumeRight | right channel volume. |
brief Sets the headphone output volume.
The parameter should be from 0 to 63. The resulting volume will be (parameter - 57 dB). 0 for -57 dB, 57 for 0 dB, 63 for +6 dB etc.
param handle WM8904 handle structure. param volumeLeft Volume of the left channel. param volumeRight Volume of the right channel.
return kStatus_WM8904_Success if successful, different code otherwise.
Definition at line 966 of file fsl_wm8904.c.
status_t WM8904_WriteRegister | ( | wm8904_handle_t * | handle, |
uint8_t | reg, | ||
uint16_t | value | ||
) |
WM8904 write register.
handle | WM8904 handle structure. |
reg | register address. |
value | value to write. |
brief WM8904 write register.
param handle WM8904 handle structure. param reg register address. param value value to write. return kStatus_Success, else failed.
Definition at line 129 of file fsl_wm8904.c.
wm8904_bit_width_t _wm8904_audio_format::bitWidth |
Bit width
Definition at line 239 of file fsl_wm8904.h.
wm8904_config_t* _wm8904_handle::config |
wm8904 config pointer
Definition at line 265 of file fsl_wm8904.h.
wm8904_fll_config_t* _wm8904_config::fll |
fll configuration
Definition at line 247 of file fsl_wm8904.h.
wm8904_audio_format_t _wm8904_config::format |
Audio format
Definition at line 249 of file fsl_wm8904.h.
wm8904_fs_ratio_t _wm8904_audio_format::fsRatio |
SYSCLK / fs ratio
Definition at line 237 of file fsl_wm8904.h.
codec_i2c_config_t _wm8904_config::i2cConfig |
i2c bus configuration
Definition at line 258 of file fsl_wm8904.h.
uint8_t _wm8904_handle::i2cHandle[WM8904_I2C_HANDLER_SIZE] |
i2c handle
Definition at line 266 of file fsl_wm8904.h.
bool _wm8904_config::master |
Master or slave
Definition at line 245 of file fsl_wm8904.h.
uint32_t _wm8904_config::mclk_HZ |
MCLK frequency value
Definition at line 250 of file fsl_wm8904.h.
uint32_t _wm8904_fll_config::outputClock_HZ |
fll output clock frequency
Definition at line 231 of file fsl_wm8904.h.
uint16_t _wm8904_config::playSource |
play source
Definition at line 255 of file fsl_wm8904.h.
wm8904_protocol_t _wm8904_config::protocol |
Audio transfer protocol
Definition at line 248 of file fsl_wm8904.h.
uint16_t _wm8904_config::recordChannelLeft |
record channel
Definition at line 253 of file fsl_wm8904.h.
uint16_t _wm8904_config::recordChannelRight |
record channel
Definition at line 254 of file fsl_wm8904.h.
uint16_t _wm8904_config::recordSource |
record source
Definition at line 252 of file fsl_wm8904.h.
uint32_t _wm8904_fll_config::refClock_HZ |
fll reference clock frequency
Definition at line 230 of file fsl_wm8904.h.
wm8904_sample_rate_t _wm8904_audio_format::sampleRate |
Sample rate
Definition at line 238 of file fsl_wm8904.h.
uint8_t _wm8904_config::slaveAddress |
code device slave address
Definition at line 257 of file fsl_wm8904.h.
wm8904_fll_clk_source_t _wm8904_fll_config::source |
fll reference clock source
Definition at line 229 of file fsl_wm8904.h.
wm8904_sys_clk_source_t _wm8904_config::sysClkSource |
system clock source
Definition at line 246 of file fsl_wm8904.h.