LibDriver WT588E02B
Loading...
Searching...
No Matches
driver_wt588e02b.h File Reference

driver wt588e02b header file More...

#include <stdio.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for driver_wt588e02b.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  wt588e02b_handle_s
 wt588e02b handle structure definition More...
struct  wt588e02b_info_s
 wt588e02b information structure definition More...

Macros

#define DRIVER_WT588E02B_LINK_INIT(HANDLE, STRUCTURE)
 initialize wt588e02b_handle_t structure
#define DRIVER_WT588E02B_LINK_SCLK_GPIO_INIT(HANDLE, FUC)
 link sclk_gpio_init function
#define DRIVER_WT588E02B_LINK_SCLK_GPIO_DEINIT(HANDLE, FUC)
 link sclk_gpio_deinit function
#define DRIVER_WT588E02B_LINK_SCLK_GPIO_WRITE(HANDLE, FUC)
 link sclk_gpio_write function
#define DRIVER_WT588E02B_LINK_MOSI_GPIO_INIT(HANDLE, FUC)
 link mosi_gpio_init function
#define DRIVER_WT588E02B_LINK_MOSI_GPIO_DEINIT(HANDLE, FUC)
 link mosi_gpio_deinit function
#define DRIVER_WT588E02B_LINK_MOSI_GPIO_WRITE(HANDLE, FUC)
 link mosi_gpio_write function
#define DRIVER_WT588E02B_LINK_MISO_GPIO_INIT(HANDLE, FUC)
 link miso_gpio_init function
#define DRIVER_WT588E02B_LINK_MISO_GPIO_DEINIT(HANDLE, FUC)
 link miso_gpio_deinit function
#define DRIVER_WT588E02B_LINK_MISO_GPIO_READ(HANDLE, FUC)
 link miso_gpio_read function
#define DRIVER_WT588E02B_LINK_CS_GPIO_INIT(HANDLE, FUC)
 link cs_gpio_init function
#define DRIVER_WT588E02B_LINK_CS_GPIO_DEINIT(HANDLE, FUC)
 link cs_gpio_deinit function
#define DRIVER_WT588E02B_LINK_CS_GPIO_WRITE(HANDLE, FUC)
 link cs_gpio_write function
#define DRIVER_WT588E02B_LINK_BIN_READ_INIT(HANDLE, FUC)
 link bin_read_init function
#define DRIVER_WT588E02B_LINK_BIN_READ(HANDLE, FUC)
 link bin_read function
#define DRIVER_WT588E02B_LINK_BIN_READ_DEINIT(HANDLE, FUC)
 link bin_read_deinit function
#define DRIVER_WT588E02B_LINK_DELAY_MS(HANDLE, FUC)
 link delay_ms function
#define DRIVER_WT588E02B_LINK_DELAY_US(HANDLE, FUC)
 link delay_us function
#define DRIVER_WT588E02B_LINK_DEBUG_PRINT(HANDLE, FUC)
 link debug_print function

Typedefs

typedef struct wt588e02b_handle_s wt588e02b_handle_t
 wt588e02b handle structure definition
typedef struct wt588e02b_info_s wt588e02b_info_t
 wt588e02b information structure definition

Enumerations

enum  wt588e02b_bool_t { WT588E02B_BOOL_FALSE = 0x00 , WT588E02B_BOOL_TRUE = 0x01 }
 wt588e02b bool enumeration definition More...

Functions

uint8_t wt588e02b_info (wt588e02b_info_t *info)
 get chip's information
uint8_t wt588e02b_init (wt588e02b_handle_t *handle)
 initialize the chip
uint8_t wt588e02b_deinit (wt588e02b_handle_t *handle)
 deinit the chip
uint8_t wt588e02b_check_busy (wt588e02b_handle_t *handle, wt588e02b_bool_t *enable)
 check chip busy
uint8_t wt588e02b_play (wt588e02b_handle_t *handle, uint8_t ind)
 play audio
uint8_t wt588e02b_stop (wt588e02b_handle_t *handle)
 stop audio
uint8_t wt588e02b_set_vol (wt588e02b_handle_t *handle, uint8_t vol)
 set the volume
uint8_t wt588e02b_play_loop (wt588e02b_handle_t *handle, uint8_t ind)
 play loop
uint8_t wt588e02b_play_loop_advance (wt588e02b_handle_t *handle, uint8_t ind)
 play loop advance
uint8_t wt588e02b_play_loop_all (wt588e02b_handle_t *handle)
 play loop all
uint8_t wt588e02b_play_list (wt588e02b_handle_t *handle, uint8_t *list, uint8_t len)
 play list
uint8_t wt588e02b_update (wt588e02b_handle_t *handle, uint8_t ind, char *path)
 update audio
uint8_t wt588e02b_update_all (wt588e02b_handle_t *handle, char *path)
 update all audio
uint8_t wt588e02b_set_reg (wt588e02b_handle_t *handle, uint8_t *buf, uint16_t len, uint32_t us)
 set the chip register
uint8_t wt588e02b_get_reg (wt588e02b_handle_t *handle, uint8_t *buf, uint16_t len, uint32_t us)
 get the chip register

Detailed Description

driver wt588e02b header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2025-01-30

history

Date Version Author Description
2025/01/30 1.0 Shifeng Li first upload

Definition in file driver_wt588e02b.h.