xref: /btstack/platform/daemon/src/daemon_cmds.h (revision 80e33422a96c028b3a9c308fc4b9b874712dafb4)
12531c97eSMatthias Ringwald /*
22531c97eSMatthias Ringwald  * Copyright (C) 2014 BlueKitchen GmbH
32531c97eSMatthias Ringwald  *
42531c97eSMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
52531c97eSMatthias Ringwald  * modification, are permitted provided that the following conditions
62531c97eSMatthias Ringwald  * are met:
72531c97eSMatthias Ringwald  *
82531c97eSMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
92531c97eSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
102531c97eSMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
112531c97eSMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
122531c97eSMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
132531c97eSMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
142531c97eSMatthias Ringwald  *    contributors may be used to endorse or promote products derived
152531c97eSMatthias Ringwald  *    from this software without specific prior written permission.
162531c97eSMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
172531c97eSMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
182531c97eSMatthias Ringwald  *    monetary gain.
192531c97eSMatthias Ringwald  *
202531c97eSMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
212531c97eSMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
222531c97eSMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
232531c97eSMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS
242531c97eSMatthias Ringwald  * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
252531c97eSMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
262531c97eSMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
272531c97eSMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
282531c97eSMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
292531c97eSMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
302531c97eSMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
312531c97eSMatthias Ringwald  * SUCH DAMAGE.
322531c97eSMatthias Ringwald  *
332531c97eSMatthias Ringwald  * Please inquire about commercial licensing options at
342531c97eSMatthias Ringwald  * [email protected]
352531c97eSMatthias Ringwald  *
362531c97eSMatthias Ringwald  */
372531c97eSMatthias Ringwald 
382531c97eSMatthias Ringwald /*
392531c97eSMatthias Ringwald  *  daemon_cmds.h
402531c97eSMatthias Ringwald  */
412531c97eSMatthias Ringwald 
42*80e33422SMatthias Ringwald #ifndef DAEMON_CMDS_H
43*80e33422SMatthias Ringwald #define DAEMON_CMDS_H
442531c97eSMatthias Ringwald 
452531c97eSMatthias Ringwald #include <stdint.h>
462531c97eSMatthias Ringwald 
472531c97eSMatthias Ringwald #include "bluetooth.h"
482531c97eSMatthias Ringwald #include "hci_cmd.h"
492531c97eSMatthias Ringwald 
502531c97eSMatthias Ringwald #if defined __cplusplus
512531c97eSMatthias Ringwald extern "C" {
522531c97eSMatthias Ringwald #endif
532531c97eSMatthias Ringwald 
542531c97eSMatthias Ringwald extern const hci_cmd_t btstack_get_state;
552531c97eSMatthias Ringwald extern const hci_cmd_t btstack_set_power_mode;
562531c97eSMatthias Ringwald extern const hci_cmd_t btstack_set_acl_capture_mode;
572531c97eSMatthias Ringwald extern const hci_cmd_t btstack_get_version;
582531c97eSMatthias Ringwald extern const hci_cmd_t btstack_get_system_bluetooth_enabled;
592531c97eSMatthias Ringwald extern const hci_cmd_t btstack_set_system_bluetooth_enabled;
602531c97eSMatthias Ringwald extern const hci_cmd_t btstack_set_discoverable;
612531c97eSMatthias Ringwald extern const hci_cmd_t btstack_set_bluetooth_enabled;    // only used by btstack config
622531c97eSMatthias Ringwald 
632531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_accept_connection_cmd;
642531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_create_channel_cmd;
652531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_create_channel_mtu_cmd;
662531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_decline_connection_cmd;
672531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_disconnect_cmd;
682531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_register_service_cmd;
692531c97eSMatthias Ringwald extern const hci_cmd_t l2cap_unregister_service_cmd;
702531c97eSMatthias Ringwald 
712531c97eSMatthias Ringwald extern const hci_cmd_t sdp_register_service_record_cmd;
722531c97eSMatthias Ringwald extern const hci_cmd_t sdp_unregister_service_record_cmd;
732531c97eSMatthias Ringwald extern const hci_cmd_t sdp_client_query_rfcomm_services_cmd;
742531c97eSMatthias Ringwald extern const hci_cmd_t sdp_client_query_services_cmd;
752531c97eSMatthias Ringwald 
762531c97eSMatthias Ringwald // accept connection @param bd_addr(48), rfcomm_cid (16)
772531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_accept_connection_cmd;
782531c97eSMatthias Ringwald // create rfcomm channel: @param bd_addr(48), channel (8)
792531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_create_channel_cmd;
802531c97eSMatthias Ringwald // create rfcomm channel: @param bd_addr(48), channel (8), mtu (16), credits (8)
812531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_create_channel_with_initial_credits_cmd;
822531c97eSMatthias Ringwald // decline rfcomm disconnect,@param bd_addr(48), rfcomm cid (16), reason(8)
832531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_decline_connection_cmd;
842531c97eSMatthias Ringwald // disconnect rfcomm disconnect, @param rfcomm_cid(8), reason(8)
852531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_disconnect_cmd;
862531c97eSMatthias Ringwald // register rfcomm service: @param channel(8), mtu (16)
872531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_register_service_cmd;
882531c97eSMatthias Ringwald // register rfcomm service: @param channel(8), mtu (16), initial credits (8)
892531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_register_service_with_initial_credits_cmd;
902531c97eSMatthias Ringwald // unregister rfcomm service, @param service_channel(16)
912531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_unregister_service_cmd;
922531c97eSMatthias Ringwald // request persisten rfcomm channel for service name: serive name (char*)
932531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_persistent_channel_for_service_cmd;
942531c97eSMatthias Ringwald extern const hci_cmd_t rfcomm_grants_credits_cmd;
952531c97eSMatthias Ringwald 
962531c97eSMatthias Ringwald extern const hci_cmd_t gap_disconnect_cmd;
972531c97eSMatthias Ringwald extern const hci_cmd_t gap_le_scan_start;
982531c97eSMatthias Ringwald extern const hci_cmd_t gap_le_scan_stop;
992531c97eSMatthias Ringwald extern const hci_cmd_t gap_le_set_scan_parameters;
1002531c97eSMatthias Ringwald extern const hci_cmd_t gap_le_connect_cmd;
1012531c97eSMatthias Ringwald extern const hci_cmd_t gap_le_connect_cancel_cmd;
1022531c97eSMatthias Ringwald extern const hci_cmd_t gatt_discover_primary_services_cmd;
1032531c97eSMatthias Ringwald 
1042531c97eSMatthias Ringwald extern const hci_cmd_t gatt_discover_primary_services_by_uuid16_cmd;
1052531c97eSMatthias Ringwald extern const hci_cmd_t gatt_discover_primary_services_by_uuid128_cmd;
1062531c97eSMatthias Ringwald extern const hci_cmd_t gatt_find_included_services_for_service_cmd;
1072531c97eSMatthias Ringwald extern const hci_cmd_t gatt_discover_characteristics_for_service_cmd;
1082531c97eSMatthias Ringwald extern const hci_cmd_t gatt_discover_characteristics_for_service_by_uuid128_cmd;
1092531c97eSMatthias Ringwald extern const hci_cmd_t gatt_discover_characteristic_descriptors_cmd;
1102531c97eSMatthias Ringwald extern const hci_cmd_t gatt_read_value_of_characteristic_cmd;
1112531c97eSMatthias Ringwald extern const hci_cmd_t gatt_read_long_value_of_characteristic_cmd;
1122531c97eSMatthias Ringwald extern const hci_cmd_t gatt_write_value_of_characteristic_without_response_cmd;
1132531c97eSMatthias Ringwald extern const hci_cmd_t gatt_write_value_of_characteristic_cmd;
1142531c97eSMatthias Ringwald extern const hci_cmd_t gatt_write_long_value_of_characteristic_cmd;
1152531c97eSMatthias Ringwald extern const hci_cmd_t gatt_reliable_write_long_value_of_characteristic_cmd;
1162531c97eSMatthias Ringwald extern const hci_cmd_t gatt_read_characteristic_descriptor_cmd;
1172531c97eSMatthias Ringwald extern const hci_cmd_t gatt_read_long_characteristic_descriptor_cmd;
1182531c97eSMatthias Ringwald extern const hci_cmd_t gatt_write_characteristic_descriptor_cmd;
1192531c97eSMatthias Ringwald extern const hci_cmd_t gatt_write_long_characteristic_descriptor_cmd;
1202531c97eSMatthias Ringwald extern const hci_cmd_t gatt_write_client_characteristic_configuration_cmd;
1212531c97eSMatthias Ringwald extern const hci_cmd_t gatt_get_mtu;
1222531c97eSMatthias Ringwald 
1231edc4fc7SMatthias Ringwald extern const hci_cmd_t sm_set_authentication_requirements_cmd;
1241edc4fc7SMatthias Ringwald extern const hci_cmd_t sm_set_io_capabilities_cmd;
1251edc4fc7SMatthias Ringwald extern const hci_cmd_t sm_bonding_decline_cmd;
1261edc4fc7SMatthias Ringwald extern const hci_cmd_t sm_just_works_confirm_cmd;
1271edc4fc7SMatthias Ringwald extern const hci_cmd_t sm_numeric_comparison_confirm_cmd;
1281edc4fc7SMatthias Ringwald extern const hci_cmd_t sm_passkey_input_cmd;
1292531c97eSMatthias Ringwald 
1302531c97eSMatthias Ringwald #if defined __cplusplus
1312531c97eSMatthias Ringwald }
1322531c97eSMatthias Ringwald #endif
1332531c97eSMatthias Ringwald 
134*80e33422SMatthias Ringwald #endif // DAEMON_CMDS_H
135