]> granicus.if.org Git - esp-idf/blob - components/bt/bluedroid/hci/include/hci/hci_packet_factory.h
Merge branch 'docs/sdio_slave_protocol_comb' into 'master'
[esp-idf] / components / bt / bluedroid / hci / include / hci / hci_packet_factory.h
1 /******************************************************************************
2  *
3  *  Copyright (C) 2014 Google, Inc.
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18
19 #ifndef _HCI_PACKET_FACTORY_H_
20 #define _HCI_PACKET_FACTORY_H_
21
22 #include "stack/bt_types.h"
23 #include "device/event_mask.h"
24
25 typedef struct {
26     BT_HDR *(*make_reset)(void);
27     BT_HDR *(*make_read_buffer_size)(void);
28     BT_HDR *(*make_set_c2h_flow_control)(uint8_t enable);
29     BT_HDR *(*make_host_buffer_size)(uint16_t acl_size, uint8_t sco_size, uint16_t acl_count, uint16_t sco_count);
30     BT_HDR *(*make_read_local_version_info)(void);
31     BT_HDR *(*make_read_bd_addr)(void);
32     BT_HDR *(*make_read_local_supported_commands)(void);
33     BT_HDR *(*make_read_local_extended_features)(uint8_t page_number);
34     BT_HDR *(*make_write_simple_pairing_mode)(uint8_t mode);
35     BT_HDR *(*make_write_secure_connections_host_support)(uint8_t mode);
36     BT_HDR *(*make_set_event_mask)(const bt_event_mask_t *event_mask);
37     BT_HDR *(*make_ble_write_host_support)(uint8_t supported_host, uint8_t simultaneous_host);
38     BT_HDR *(*make_ble_read_white_list_size)(void);
39     BT_HDR *(*make_ble_read_buffer_size)(void);
40     BT_HDR *(*make_ble_read_supported_states)(void);
41     BT_HDR *(*make_ble_read_local_supported_features)(void);
42     BT_HDR *(*make_ble_read_resolving_list_size)(void);
43     BT_HDR *(*make_ble_read_suggested_default_data_length)(void);
44     BT_HDR *(*make_ble_write_suggested_default_data_length)(uint16_t SuggestedMaxTxOctets, uint16_t SuggestedMaxTxTime);
45     BT_HDR *(*make_ble_set_event_mask)(const bt_event_mask_t *event_mask);
46     BT_HDR *(*make_write_sync_flow_control_enable)(uint8_t enable);
47 } hci_packet_factory_t;
48
49 const hci_packet_factory_t *hci_packet_factory_get_interface();
50
51 #endif /*_HCI_PACKET_FACTORY_H_*/