37 lines
869 B
C
37 lines
869 B
C
//
|
|
// Created by zemon on 24.07.24.
|
|
//
|
|
|
|
#ifndef SMART_COMPONENTS_COMINTCODEC_H
|
|
#define SMART_COMPONENTS_COMINTCODEC_H
|
|
|
|
|
|
#include "I2cIO.h"
|
|
#include "XfcProtProcessorUtilDefines.h"
|
|
#include "AudioCodec.h"
|
|
|
|
typedef enum {
|
|
ADR,
|
|
VALUE,
|
|
VOLUME_LEVEL
|
|
} tXfcCodecType;
|
|
|
|
typedef struct {
|
|
tAudioCodec *audioCodec;
|
|
|
|
uint16_t adr;
|
|
uint16_t data;
|
|
uint16_t volumeLevel;
|
|
} tXfcCodec;
|
|
|
|
void XfcProtMethodsAdd_Codec(tXfcProtTable *protTab, tXfcCodec *audioCodec);
|
|
|
|
void XfcProtMethodsAdd_CodecInit(tXfcCodec *env, tAudioCodec *audioCodec);
|
|
|
|
uint8_t XfcProtMethod_CodecGet(tXfcArray *request, tXfcArray *response, tXfcCodec *amplifier);
|
|
|
|
uint8_t XfcProtMethod_CodecSet(tXfcArray *request, tXfcArray *response, tXfcCodec *env);
|
|
|
|
uint8_t XfcProtMethod_CodecSave(tXfcArray *request, tXfcArray *response, tXfcCodec *env);
|
|
#endif //SMART_COMPONENTS_COMINTCODEC_H
|