![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
The wm8524 driver provides a codec control interface.
Data Structures | |
| struct | _wm8524_handle_t |
| WM8524 handler. More... | |
Typedefs | |
| typedef void(* | wm8524_setMuteIO )(uint32_t output) |
| < mute control io function pointer More... | |
| typedef enum _wm8524_protocol | wm8524_protocol_t |
| The audio data transfer protocol. More... | |
| typedef struct _wm8524_handle_t | wm8524_handle_t |
| WM8524 handler. | |
Enumerations | |
| enum | _wm8524_protocol { 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... | |
| struct _wm8524_handle_t |
Data Fields | |
| wm8524_config_t * | config |
| wm8524 config pointer | |
| #define FSL_WM8524_DRIVER_VERSION (MAKE_VERSION(2, 1, 1)) |
| typedef void(* wm8524_setMuteIO)(uint32_t output) |
format control io function pointer
| typedef enum _wm8524_protocol wm8524_protocol_t |
| enum _wm8524_protocol |
| enum _wm8524_mute_control |
| status_t WM8524_Init | ( | wm8524_handle_t * | handle, |
| wm8524_config_t * | config | ||
| ) |
| handle | WM8524 handle structure. |
| config | WM8524 configure structure. |
| void WM8524_ConfigFormat | ( | wm8524_handle_t * | handle, |
| wm8524_protocol_t | protocol | ||
| ) |
| handle | WM8524 handle structure. |
| protocol | WM8524 configuration structure. |
| void WM8524_SetMute | ( | wm8524_handle_t * | handle, |
| bool | isMute | ||
| ) |
| handle | WM8524 handle structure. |
| isMute | true means mute, false means normal. |