![]() |
LibDriver WM8978
|
wav simple player modules More...
Data Structures | |
| struct | wav_header_s |
| wav header structure definition More... | |
| struct | wav_handle_s |
| wav handle structure definition More... | |
Macros | |
| #define | WAV_BUFFER_SIZE (1024 * 32) |
| wav buffer size definition | |
| #define | WAV_LINK_INIT(HANDLE, STRUCTURE) |
| initialize wav_handle_t structure | |
| #define | WAV_LINK_AUDIO_INIT(HANDLE, FUC) |
| link audio_init function | |
| #define | WAV_LINK_AUDIO_DEINIT(HANDLE, FUC) |
| link audio_deinit function | |
| #define | WAV_LINK_AUDIO_READ(HANDLE, FUC) |
| link audio_read function | |
| #define | WAV_LINK_AUDIO_WRITE(HANDLE, FUC) |
| link audio_write function | |
| #define | WAV_LINK_IIS_INIT(HANDLE, FUC) |
| link iis_init function | |
| #define | WAV_LINK_IIS_DEINIT(HANDLE, FUC) |
| link iis_deinit function | |
| #define | WAV_LINK_IIS_STOP(HANDLE, FUC) |
| link iis_stop function | |
| #define | WAV_LINK_IIS_PAUSE(HANDLE, FUC) |
| link iis_pause function | |
| #define | WAV_LINK_IIS_RESUME(HANDLE, FUC) |
| link iis_resume function | |
| #define | WAV_LINK_IIS_SET_FREQ(HANDLE, FUC) |
| link iis_set_freq function | |
| #define | WAV_LINK_IIS_WRITE(HANDLE, FUC) |
| link iis_write function | |
| #define | WAV_LINK_IIS_READ(HANDLE, FUC) |
| link iis_read function | |
| #define | WAV_LINK_DELAY_MS(HANDLE, FUC) |
| link delay_ms function | |
| #define | WAV_LINK_DEBUG_PRINT(HANDLE, FUC) |
| link debug_print function | |
Typedefs | |
| typedef struct wav_header_s | wav_header_t |
| wav header structure definition | |
| typedef struct wav_handle_s | wav_handle_t |
| wav handle structure definition | |
Enumerations | |
| enum | wav_status_t { WAV_STATUS_STOP = 0x00 , WAV_STATUS_PLAY = 0x01 } |
| wav status enumeration definition More... | |
Functions | |
| uint8_t | wav_init (wav_handle_t *handle) |
| initialize the wav | |
| uint8_t | wav_deinit (wav_handle_t *handle) |
| wav deinit | |
| uint8_t | wav_player_init (wav_handle_t *handle, char *path) |
| initialize the wav player | |
| uint8_t | wav_player_buffer_fill (wav_handle_t *handle, uint8_t index) |
| wav player buffer fill | |
| uint8_t | wav_record_file_fill (wav_handle_t *handle, uint8_t index) |
| wav record file fill | |
| uint8_t | wav_player_get_status (wav_handle_t *handle, wav_status_t *status) |
| wav get status | |
| uint8_t | wav_player_config (wav_handle_t *handle, uint32_t standard, uint32_t mode, uint32_t polarity, uint32_t format, uint32_t enable, uint32_t freq) |
| wav player config | |
| uint8_t | wav_record_start (wav_handle_t *handle, uint32_t sample_rate, char *path) |
| wav record start | |
| uint8_t | wav_record_stop (wav_handle_t *handle) |
| wav record stop | |
| uint8_t | wav_player_start (wav_handle_t *handle) |
| wav player start | |
| uint8_t | wav_player_stop (wav_handle_t *handle) |
| wav player stop | |
| uint8_t | wav_player_pause (wav_handle_t *handle) |
| wav player pause | |
| uint8_t | wav_player_resume (wav_handle_t *handle) |
| wav player resume | |
wav simple player modules
| #define WAV_BUFFER_SIZE (1024 * 32) |
wav buffer size definition
Definition at line 59 of file wav_player.h.
| #define WAV_LINK_AUDIO_DEINIT | ( | HANDLE, | |
| FUC ) |
link audio_deinit function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an audio_deinit function address |
Definition at line 141 of file wav_player.h.
| #define WAV_LINK_AUDIO_INIT | ( | HANDLE, | |
| FUC ) |
link audio_init function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an audio_init function address |
Definition at line 133 of file wav_player.h.
| #define WAV_LINK_AUDIO_READ | ( | HANDLE, | |
| FUC ) |
link audio_read function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an audio_read function address |
Definition at line 149 of file wav_player.h.
| #define WAV_LINK_AUDIO_WRITE | ( | HANDLE, | |
| FUC ) |
link audio_write function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an audio_write function address |
Definition at line 157 of file wav_player.h.
| #define WAV_LINK_DEBUG_PRINT | ( | HANDLE, | |
| FUC ) |
link debug_print function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to a debug_print function address |
Definition at line 237 of file wav_player.h.
| #define WAV_LINK_DELAY_MS | ( | HANDLE, | |
| FUC ) |
link delay_ms function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to a delay_ms function address |
Definition at line 229 of file wav_player.h.
| #define WAV_LINK_IIS_DEINIT | ( | HANDLE, | |
| FUC ) |
link iis_deinit function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_deinit function address |
Definition at line 173 of file wav_player.h.
| #define WAV_LINK_IIS_INIT | ( | HANDLE, | |
| FUC ) |
link iis_init function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_init function address |
Definition at line 165 of file wav_player.h.
| #define WAV_LINK_IIS_PAUSE | ( | HANDLE, | |
| FUC ) |
link iis_pause function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_pause function address |
Definition at line 189 of file wav_player.h.
| #define WAV_LINK_IIS_READ | ( | HANDLE, | |
| FUC ) |
link iis_read function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_write function address |
Definition at line 221 of file wav_player.h.
| #define WAV_LINK_IIS_RESUME | ( | HANDLE, | |
| FUC ) |
link iis_resume function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_resume function address |
Definition at line 197 of file wav_player.h.
| #define WAV_LINK_IIS_SET_FREQ | ( | HANDLE, | |
| FUC ) |
link iis_set_freq function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_set_freq function address |
Definition at line 205 of file wav_player.h.
| #define WAV_LINK_IIS_STOP | ( | HANDLE, | |
| FUC ) |
link iis_stop function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_stop function address |
Definition at line 181 of file wav_player.h.
| #define WAV_LINK_IIS_WRITE | ( | HANDLE, | |
| FUC ) |
link iis_write function
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | FUC | pointer to an iis_write function address |
Definition at line 213 of file wav_player.h.
| #define WAV_LINK_INIT | ( | HANDLE, | |
| STRUCTURE ) |
initialize wav_handle_t structure
| [in] | HANDLE | pointer to a wav handle structure |
| [in] | STRUCTURE | wav_handle_t |
Definition at line 125 of file wav_player.h.
| typedef struct wav_handle_s wav_handle_t |
wav handle structure definition
| typedef struct wav_header_s wav_header_t |
wav header structure definition
| enum wav_status_t |
wav status enumeration definition
| Enumerator | |
|---|---|
| WAV_STATUS_STOP | stop status |
| WAV_STATUS_PLAY | play status |
Definition at line 65 of file wav_player.h.
| uint8_t wav_deinit | ( | wav_handle_t * | handle | ) |
wav deinit
| [in] | *handle | pointer to a wav handle structure |
Definition at line 221 of file wav_player.c.
| uint8_t wav_init | ( | wav_handle_t * | handle | ) |
initialize the wav
| [in] | *handle | pointer to a wav handle structure |
Definition at line 117 of file wav_player.c.
| uint8_t wav_player_buffer_fill | ( | wav_handle_t * | handle, |
| uint8_t | index ) |
wav player buffer fill
| [in] | *handle | pointer to a wav handle structure |
| [in] | index | fill index |
Definition at line 825 of file wav_player.c.
| uint8_t wav_player_config | ( | wav_handle_t * | handle, |
| uint32_t | standard, | ||
| uint32_t | mode, | ||
| uint32_t | polarity, | ||
| uint32_t | format, | ||
| uint32_t | enable, | ||
| uint32_t | freq ) |
wav player config
| [in] | *handle | pointer to a wav handle structure |
| [in] | standard | iis standard |
| [in] | mode | iis mode |
| [in] | polarity | iis polarity |
| [in] | format | iis format |
| [in] | enable | mclk output |
| [in] | freq | set freq |
Definition at line 391 of file wav_player.c.
| uint8_t wav_player_get_status | ( | wav_handle_t * | handle, |
| wav_status_t * | status ) |
wav get status
| [in] | *handle | pointer to a wav handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 797 of file wav_player.c.
| uint8_t wav_player_init | ( | wav_handle_t * | handle, |
| char * | path ) |
initialize the wav player
| [in] | *handle | pointer to a wav handle structure |
| [in] | *path | pointer to a path buffer |
Definition at line 249 of file wav_player.c.
| uint8_t wav_player_pause | ( | wav_handle_t * | handle | ) |
wav player pause
| [in] | *handle | pointer to a wav handle structure |
Definition at line 721 of file wav_player.c.
| uint8_t wav_player_resume | ( | wav_handle_t * | handle | ) |
wav player resume
| [in] | *handle | pointer to a wav handle structure |
Definition at line 759 of file wav_player.c.
| uint8_t wav_player_start | ( | wav_handle_t * | handle | ) |
wav player start
| [in] | *handle | pointer to a wav handle structure |
Definition at line 431 of file wav_player.c.
| uint8_t wav_player_stop | ( | wav_handle_t * | handle | ) |
wav player stop
| [in] | *handle | pointer to a wav handle structure |
Definition at line 670 of file wav_player.c.
| uint8_t wav_record_file_fill | ( | wav_handle_t * | handle, |
| uint8_t | index ) |
wav record file fill
| [in] | *handle | pointer to a wav handle structure |
| [in] | index | fill index |
Definition at line 558 of file wav_player.c.
| uint8_t wav_record_start | ( | wav_handle_t * | handle, |
| uint32_t | sample_rate, | ||
| char * | path ) |
wav record start
| [in] | *handle | pointer to a wav handle structure |
| [in] | sample_rate | sample rate |
| [in] | *path | pointer to a path buffer |
Definition at line 479 of file wav_player.c.
| uint8_t wav_record_stop | ( | wav_handle_t * | handle | ) |
wav record stop
| [in] | *handle | pointer to a wav handle structure |
Definition at line 611 of file wav_player.c.