add BT sink

This commit is contained in:
philippe44
2019-08-12 21:19:14 -07:00
parent cf6d9c0911
commit d97d9fb7c9
11 changed files with 682 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef __BT_APP_SINK_H__
#define __BT_APP_SINK_H__
#include <stdint.h>
typedef enum { BT_SINK_CONNECTED, BT_SINK_DISCONNECTED, BT_SINK_PLAY, BT_SINK_STOP, BT_SINK_PAUSE,
BT_SINK_RATE, BT_SINK_VOLUME, } bt_sink_cmd_t;
/**
* @brief init sink mode (need to be provided)
*/
void bt_sink_init(void (*cmd_cb)(bt_sink_cmd_t cmd, ...), void (*data_cb)(const uint8_t *data, uint32_t len));
#endif /* __BT_APP_SINK_H__*/