📄 a2dp_sd_kalimba.c
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.5.2-release
FILE NAME
a2dp_sd_kalimba.c
DESCRIPTION
KAlimba related functions
NOTES
*/
/****************************************************************************
Header files
*/
#include "a2dp_sd_private.h"
#include "a2dp_sd_kalimba.h"
#include "a2dp_sd_interface.h"
#include <file.h>
#include <kalimba.h>
#include <kalimba_standard_messages.h>
#include <panic.h>
/****************************************************************************
NAME
a2dpSdKalimbaStart
DESCRIPTION
Initialise Kalimba and routing for SBC encoding
RETURNS
void
*/
void a2dpSdKalimbaStart(const a2dpSourceDongleTaskData *theApp)
{
A2dpAudioCodecEnable(theApp->a2dp, theApp->media_sink);
/* Plug Interface into Kalimba */
a2dpSdConnectInterfaceToKalimba();
/* Tell the DSP to go */
if (!KalimbaSendMessage(KALIMBA_MSG_GO, 0, 0, 0, 0))
/* If message fails to get through, abort */
Panic();
}
/****************************************************************************
NAME
a2dpSdKalimbaStop
DESCRIPTION
Stop Kalimba and power it down.
RETURNS
void
*/
void a2dpSdKalimbaStop(const a2dpSourceDongleTaskData *theApp)
{
A2dpAudioCodecDisable(theApp->a2dp, theApp->media_sink);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -