1*8caefee3SMatthias Ringwald // libbluetoothdrv.so wrapper around libbluetooth_mtk.so 2*8caefee3SMatthias Ringwald #pragma once 3*8caefee3SMatthias Ringwald 4*8caefee3SMatthias Ringwald #include <stdint.h> 5*8caefee3SMatthias Ringwald 6*8caefee3SMatthias Ringwald // @returns fd for Bluetooth UART if successfull 7*8caefee3SMatthias Ringwald int mtk_bt_enable(void); 8*8caefee3SMatthias Ringwald 9*8caefee3SMatthias Ringwald // disables Bluetooth 10*8caefee3SMatthias Ringwald void mtk_bt_disable(int fd); 11*8caefee3SMatthias Ringwald 12*8caefee3SMatthias Ringwald // 13*8caefee3SMatthias Ringwald int mtk_bt_write(int fd, uint8_t * buffer, size_t len); 14*8caefee3SMatthias Ringwald 15*8caefee3SMatthias Ringwald // @returns number of bytes read 16*8caefee3SMatthias Ringwald int mtk_bt_read(int fd, uint8_t * buffer, size_t len);