29 lines
549 B
C
29 lines
549 B
C
//
|
|
// Created by xemon on 19.10.22.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_AUDIOCODEC_H
|
|
#define UVEOS_ON_NATION_AUDIOCODEC_H
|
|
|
|
#include "I2cIO.h"
|
|
#include "max9860.h"
|
|
|
|
typedef struct {
|
|
tI2cIO *codecIO;
|
|
MAX9860_ComplexAudioConfig *config;
|
|
} tAudioCodec;
|
|
|
|
void AudioCodecInit(
|
|
tAudioCodec *env,
|
|
tI2cIO *codecIO,
|
|
MAX9860_ComplexAudioConfig *config
|
|
);
|
|
|
|
bool AudioCodecEnable(tAudioCodec *env);
|
|
|
|
bool AudioCodecInvalidateSettings(tAudioCodec *env);
|
|
|
|
bool AudioCodecTestStatus(tAudioCodec *env);
|
|
|
|
#endif //UVEOS_ON_NATION_AUDIOCODEC_H
|