bt_app_sink.h 708 B

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