1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openLuat-luatos-soc-air101

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
luat_audio_air101.h 1.2 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
Dozingfiretruck Отправлено 2 лет назад 1494db6
#ifndef _LUAT_AUDIOAIR101_H_
#define _LUAT_AUDIOAIR101_H_
struct audio_codec_opts;
typedef struct audio_codec_conf {
int samplerate; //16k
int bits; //16
int channels; //1ch/2ch
int pa_pin;
uint8_t vol;
uint8_t pa_on_level;
uint32_t dummy_time_len;
uint32_t pa_delay_time;
const struct audio_codec_opts* codec_opts;
} audio_codec_conf_t;
typedef struct audio_codec_opts{
const char* name;
int (*init)(audio_codec_conf_t* conf);
int (*deinit)(audio_codec_conf_t* conf);
int (*control)(audio_codec_conf_t* conf,uint8_t cmd,int data);
int (*start)(audio_codec_conf_t* conf);
int (*stop)(audio_codec_conf_t* conf);
} audio_codec_opts_t;
#define CODEC_MODE_MASTER 0x00
#define CODEC_MODE_SLAVE 0x01
#define CODEC_PA_OFF 0x00
#define CODEC_PA_ON 0x01
#define CODEC_CTL_MODE 0x00
#define CODEC_CTL_VOLUME 0x01
#define CODEC_CTL_RATE 0x02
#define CODEC_CTL_BITS 0x03
#define CODEC_CTL_CHANNEL 0x04
#define CODEC_CTL_PA 0x05
#endif

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/openLuat-luatos-soc-air101.git
git@gitlife.ru:oschina-mirror/openLuat-luatos-soc-air101.git
oschina-mirror
openLuat-luatos-soc-air101
openLuat-luatos-soc-air101
v1022.air601