MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Overview

Data Structures

struct  wm8524_handle_t
 WM8524 handler. More...
 

Typedefs

typedef void(* wm8524_setMuteIO )(uint32_t output)
 < mute control io function pointer More...
 

Enumerations

enum  wm8524_protocol_t {
  kWM8524_ProtocolLeftJustified = 0x0,
  kWM8524_ProtocolI2S = 0x1,
  kWM8524_ProtocolRightJustified = 0x2
}
 The audio data transfer protocol. More...
 
enum  _wm8524_mute_control {
  kWM8524_Mute = 0U,
  kWM8524_Unmute = 1U
}
 wm8524 mute operation More...
 

Functions

status_t WM8524_Init (wm8524_handle_t *handle, wm8524_config_t *config)
 Initializes WM8524. More...
 
void WM8524_ConfigFormat (wm8524_handle_t *handle, wm8524_protocol_t protocol)
 Configure WM8524 audio protocol. More...
 
void WM8524_SetMute (wm8524_handle_t *handle, bool isMute)
 Sets the codec mute state. More...
 

Driver version

#define FSL_WM8524_DRIVER_VERSION   (MAKE_VERSION(2, 1, 1))
 WM8524 driver version 2.1.1. More...
 

Data Structure Documentation

struct wm8524_handle_t

Data Fields

wm8524_config_t * config
 wm8524 config pointer
 

Macro Definition Documentation

#define FSL_WM8524_DRIVER_VERSION   (MAKE_VERSION(2, 1, 1))

Typedef Documentation

typedef void(* wm8524_setMuteIO)(uint32_t output)

format control io function pointer

Enumeration Type Documentation

Enumerator
kWM8524_ProtocolLeftJustified 

Left justified mode.

kWM8524_ProtocolI2S 

I2S mode.

kWM8524_ProtocolRightJustified 

Right justified mode.

Enumerator
kWM8524_Mute 

mute left and right channel DAC

kWM8524_Unmute 

unmute left and right channel DAC

Function Documentation

status_t WM8524_Init ( wm8524_handle_t handle,
wm8524_config_t *  config 
)
Parameters
handleWM8524 handle structure.
configWM8524 configure structure.
Returns
kStatus_Success.
void WM8524_ConfigFormat ( wm8524_handle_t handle,
wm8524_protocol_t  protocol 
)
Parameters
handleWM8524 handle structure.
protocolWM8524 configuration structure.
void WM8524_SetMute ( wm8524_handle_t handle,
bool  isMute 
)
Parameters
handleWM8524 handle structure.
isMutetrue means mute, false means normal.