xref: /btstack/chipset/cinnamon/controller.h (revision 2fca4dad957cd7b88f4657ed51e89c12615dda72)
12c4f9bbbSMatthias Ringwald /*
22c4f9bbbSMatthias Ringwald  * Copyright (C) 2020 BlueKitchen GmbH
32c4f9bbbSMatthias Ringwald  *
42c4f9bbbSMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
52c4f9bbbSMatthias Ringwald  * modification, are permitted provided that the following conditions
62c4f9bbbSMatthias Ringwald  * are met:
72c4f9bbbSMatthias Ringwald  *
82c4f9bbbSMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
92c4f9bbbSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
102c4f9bbbSMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
112c4f9bbbSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
122c4f9bbbSMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
132c4f9bbbSMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
142c4f9bbbSMatthias Ringwald  *    contributors may be used to endorse or promote products derived
152c4f9bbbSMatthias Ringwald  *    from this software without specific prior written permission.
162c4f9bbbSMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
172c4f9bbbSMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
182c4f9bbbSMatthias Ringwald  *    monetary gain.
192c4f9bbbSMatthias Ringwald  *
202c4f9bbbSMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
212c4f9bbbSMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
222c4f9bbbSMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23*2fca4dadSMilanka Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN
24*2fca4dadSMilanka Ringwald  * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
252c4f9bbbSMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
262c4f9bbbSMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
272c4f9bbbSMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
282c4f9bbbSMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
292c4f9bbbSMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
302c4f9bbbSMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
312c4f9bbbSMatthias Ringwald  * SUCH DAMAGE.
322c4f9bbbSMatthias Ringwald  *
332c4f9bbbSMatthias Ringwald  * Please inquire about commercial licensing options at
342c4f9bbbSMatthias Ringwald  * [email protected]
352c4f9bbbSMatthias Ringwald  *
362c4f9bbbSMatthias Ringwald  */
372c4f9bbbSMatthias Ringwald 
382c4f9bbbSMatthias Ringwald /*
392c4f9bbbSMatthias Ringwald  *  controller.h
402c4f9bbbSMatthias Ringwald  */
412c4f9bbbSMatthias Ringwald 
422c4f9bbbSMatthias Ringwald #ifndef CONTROLLER_h
432c4f9bbbSMatthias Ringwald #define CONTROLLER_h
442c4f9bbbSMatthias Ringwald 
452c4f9bbbSMatthias Ringwald #include "bluetooth.h"
462c4f9bbbSMatthias Ringwald 
472c4f9bbbSMatthias Ringwald #include "hci_transport.h"
482c4f9bbbSMatthias Ringwald 
492c4f9bbbSMatthias Ringwald #if defined __cplusplus
502c4f9bbbSMatthias Ringwald extern "C" {
512c4f9bbbSMatthias Ringwald #endif
522c4f9bbbSMatthias Ringwald 
532c4f9bbbSMatthias Ringwald /*
542c4f9bbbSMatthias Ringwald  * @brief Initialize Controller
552c4f9bbbSMatthias Ringwald  */
562c4f9bbbSMatthias Ringwald void controller_init(void);
572c4f9bbbSMatthias Ringwald 
582c4f9bbbSMatthias Ringwald /*
592c4f9bbbSMatthias Ringwald  * @brief Get instance for virtual HCI transport of Controller
602c4f9bbbSMatthias Ringwald  */
612c4f9bbbSMatthias Ringwald const hci_transport_t * controller_get_hci_transport(void);
622c4f9bbbSMatthias Ringwald 
632c4f9bbbSMatthias Ringwald #if defined __cplusplus
642c4f9bbbSMatthias Ringwald }
652c4f9bbbSMatthias Ringwald #endif
662c4f9bbbSMatthias Ringwald 
672c4f9bbbSMatthias Ringwald #endif // CONTROLLER_h
68