1 /* 2 * btstack.h 3 * 4 * Created by Matthias Ringwald on 7/1/09. 5 * 6 * BTstack client API 7 * 8 */ 9 10 // init BTstack library 11 int bt_open(); 12 13 // stop using BTstack library 14 int bt_close(); 15 16 // send hci cmd packet 17 int hci_send_cmd(hci_cmd_t *cmd, ...); 18 19 // send hci acl packet 20 int hci_send_acl_packet(uint8_t *packet, int size); 21 22 // register packet and event handler 23 void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size)); 24 void bt_register_acl_packet_handler (void (*handler)(uint8_t *packet, int size)); 25 26