mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-20 18:40:31 +00:00
added hci_set_class_of_device
This commit is contained in:
parent
ffb495ea4a
commit
9e61646f3e
@ -1,4 +1,4 @@
|
||||
// btstack-config.h created by configure for BTstack Sun Jan 19 17:44:59 CET 2014
|
||||
// btstack-config.h created by configure for BTstack Sun Jan 19 18:35:17 CET 2014
|
||||
#define HAVE_TRANSPORT_H4
|
||||
#define UART_DEVICE "/dev/ttyS0"
|
||||
#define UART_SPEED 115200
|
||||
@ -15,3 +15,4 @@
|
||||
#define ENABLE_LOG_INFO
|
||||
#define ENABLE_LOG_ERROR
|
||||
#define HCI_ACL_PAYLOAD_SIZE 1021
|
||||
#define SDP_DES_DUMP
|
||||
|
@ -965,6 +965,10 @@ void hci_close(){
|
||||
hci_stack = NULL;
|
||||
}
|
||||
|
||||
void hci_set_class_of_device(uint32_t class_of_device){
|
||||
hci_stack->class_of_device = class_of_device;
|
||||
}
|
||||
|
||||
// State-Module-Driver overview
|
||||
// state module low-level
|
||||
// HCI_STATE_OFF off close
|
||||
|
@ -419,9 +419,12 @@ void hci_disconnect_security_block(hci_con_handle_t con_handle);
|
||||
|
||||
/** Embedded API **/
|
||||
|
||||
// Set up HCI.
|
||||
// Set up HCI. Needs to be called before any other function
|
||||
void hci_init(hci_transport_t *transport, void *config, bt_control_t *control, remote_device_db_t const* remote_device_db);
|
||||
|
||||
// Set class of device that will be set during Bluetooth init
|
||||
void hci_set_class_of_device(uint32_t class_of_device);
|
||||
|
||||
// Registers a packet handler. Used if L2CAP is not used (rarely).
|
||||
void hci_register_packet_handler(void (*handler)(uint8_t packet_type, uint8_t *packet, uint16_t size));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user