mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 00:28:18 +00:00
16 lines
366 B
C
16 lines
366 B
C
// libbluetoothdrv.so wrapper around libbluetooth_mtk.so
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
// @returns fd for Bluetooth UART if successfull
|
|
int mtk_bt_enable(void);
|
|
|
|
// disables Bluetooth
|
|
void mtk_bt_disable(int fd);
|
|
|
|
//
|
|
int mtk_bt_write(int fd, uint8_t * buffer, size_t len);
|
|
|
|
// @returns number of bytes read
|
|
int mtk_bt_read(int fd, uint8_t * buffer, size_t len); |