btstack/src/btstack.h

26 lines
530 B
C
Raw Normal View History

2009-07-01 21:55:08 +00:00
/*
* btstack.h
*
* Created by Matthias Ringwald on 7/1/09.
*
* BTstack client API
*
*/
// init BTstack library
int bt_open();
// stop using BTstack library
int bt_close();
// send hci cmd packet
int hci_send_cmd(hci_cmd_t *cmd, ...);
// send hci acl packet
int hci_send_acl_packet(uint8_t *packet, int size);
// register packet and event handler
void bt_register_event_packet_handler(void (*handler)(uint8_t *packet, int size));
void bt_register_acl_packet_handler (void (*handler)(uint8_t *packet, int size));