xref: /btstack/src/hci.h (revision 475c8125ef8bd08f640a384990d9a8403144ebf4)
11f504dbdSmatthias.ringwald /*
21f504dbdSmatthias.ringwald  *  hci.h
31f504dbdSmatthias.ringwald  *
41f504dbdSmatthias.ringwald  *  Created by Matthias Ringwald on 4/29/09.
51f504dbdSmatthias.ringwald  *
61f504dbdSmatthias.ringwald  */
71f504dbdSmatthias.ringwald 
81f504dbdSmatthias.ringwald #pragma once
91f504dbdSmatthias.ringwald 
101f504dbdSmatthias.ringwald #include "hci_transport.h"
111f504dbdSmatthias.ringwald 
12*475c8125Smatthias.ringwald typedef enum {
13*475c8125Smatthias.ringwald     HCI_POWER_OFF = 0,
14*475c8125Smatthias.ringwald     HCI_POWER_ON
15*475c8125Smatthias.ringwald } HCI_POWER_MODE;
16*475c8125Smatthias.ringwald 
17*475c8125Smatthias.ringwald // set up HCI
18*475c8125Smatthias.ringwald void hci_init(hci_transport_t *transport, void *config);
19*475c8125Smatthias.ringwald 
20*475c8125Smatthias.ringwald // power control
21*475c8125Smatthias.ringwald int hci_power_control(HCI_POWER_MODE mode);
22*475c8125Smatthias.ringwald 
231f504dbdSmatthias.ringwald // run the hci daemon loop
24*475c8125Smatthias.ringwald void hci_run();
251f504dbdSmatthias.ringwald 
26