xref: /btstack/port/esp32/components/btstack/include/btstack_tlv_esp32.h (revision 2fca4dad957cd7b88f4657ed51e89c12615dda72)
16f952a23SMatthias Ringwald /*
26f952a23SMatthias Ringwald  * Copyright (C) 2017 BlueKitchen GmbH
36f952a23SMatthias Ringwald  *
46f952a23SMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
56f952a23SMatthias Ringwald  * modification, are permitted provided that the following conditions
66f952a23SMatthias Ringwald  * are met:
76f952a23SMatthias Ringwald  *
86f952a23SMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
96f952a23SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
106f952a23SMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
116f952a23SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
126f952a23SMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
136f952a23SMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
146f952a23SMatthias Ringwald  *    contributors may be used to endorse or promote products derived
156f952a23SMatthias Ringwald  *    from this software without specific prior written permission.
166f952a23SMatthias Ringwald  *
17*2fca4dadSMilanka Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
186f952a23SMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
196f952a23SMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20*2fca4dadSMilanka Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN
21*2fca4dadSMilanka Ringwald  * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
226f952a23SMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
236f952a23SMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
246f952a23SMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
256f952a23SMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
266f952a23SMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
276f952a23SMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
286f952a23SMatthias Ringwald  * SUCH DAMAGE.
296f952a23SMatthias Ringwald  *
306f952a23SMatthias Ringwald  */
316f952a23SMatthias Ringwald 
326f952a23SMatthias Ringwald /*
336f952a23SMatthias Ringwald  *  btstack_tlv_esp32.h
346f952a23SMatthias Ringwald  *
356f952a23SMatthias Ringwald  *  Implementation of BTstack's Tag Value Length Persistent Storage using similar esp-idf
366f952a23SMatthias Ringwald  */
376f952a23SMatthias Ringwald 
386f952a23SMatthias Ringwald #ifndef __BTSTACK_TLV_ESP32_H
396f952a23SMatthias Ringwald #define __BTSTACK_TLV_ESP32_H
406f952a23SMatthias Ringwald 
416f952a23SMatthias Ringwald #include <stdint.h>
426f952a23SMatthias Ringwald #include "btstack_tlv.h"
436f952a23SMatthias Ringwald 
446f952a23SMatthias Ringwald #if defined __cplusplus
456f952a23SMatthias Ringwald extern "C" {
466f952a23SMatthias Ringwald #endif
476f952a23SMatthias Ringwald 
486f952a23SMatthias Ringwald /**
496f952a23SMatthias Ringwald  * Init Tag Length Value Store
506f952a23SMatthias Ringwald  */
516f952a23SMatthias Ringwald const btstack_tlv_t * btstack_tlv_esp32_get_instance(void);
526f952a23SMatthias Ringwald 
536f952a23SMatthias Ringwald #if defined __cplusplus
546f952a23SMatthias Ringwald }
556f952a23SMatthias Ringwald #endif
566f952a23SMatthias Ringwald #endif // __BTSTACK_TLV_ESP32_H
57