/* * F2F.h * * Created on: 2021Äê11ÔÂ2ÈÕ * Author: graydon */ #ifndef F2F_H_ #define F2F_H_ #ifdef __cplusplus extern "C" { #endif #include "typedefs.h" typedef struct { s32* dataPtr[2]; u16 slot_num; u16 channel_num; u8 rx; u8 enable_sec; u16 follow_intr_no; }AudioCodec; //½Ó¿ÚÊý¾ÝÀàÐÍ. typedef enum IntDataType { TDM, LP0, LP1, COUNT, }eIntDataType; uvoid SetAudioCodec(eIntDataType type , u16 codec_num , const AudioCodec* pcodec); uvoid SetNumOfChannels(eIntDataType type ,u16 rxNum, u16 txNum); uvoid SetRxChannelPtr(eIntDataType type ,u32 channel, ufloat* rxBuffer); uvoid SetTxChannelPtr(eIntDataType type ,u32 channel, ufloat* txBuffer); uvoid UpdateInput(u32 iid ,u32 index); uvoid UpdateOutput(u32 iid ,u32 index); uvoid MuteOutput(); uvoid SetTxRxNullBufferPtr(); #ifdef __cplusplus } #endif #endif /* F2F_H_ */