hci.h (08840d74f4ed5d00e72400b4d160b3ab08916229) hci.h (f50ed5accd466e0382c16bf576fa99242f1de3ed)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 882 unchanged lines hidden (view full) ---

891 HCI_HALTING_LE_SCAN_STOP,
892 HCI_HALTING_DISCONNECT_ALL,
893 HCI_HALTING_W4_CLOSE_TIMER,
894 HCI_HALTING_CLOSE,
895 HCI_HALTING_CLOSE_DISCARDING_CONNECTIONS,
896
897} hci_substate_t;
898
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 882 unchanged lines hidden (view full) ---

891 HCI_HALTING_LE_SCAN_STOP,
892 HCI_HALTING_DISCONNECT_ALL,
893 HCI_HALTING_W4_CLOSE_TIMER,
894 HCI_HALTING_CLOSE,
895 HCI_HALTING_CLOSE_DISCARDING_CONNECTIONS,
896
897} hci_substate_t;
898
899#define GAP_TASK_SET_LOCAL_NAME 0x01
900#define GAP_TASK_SET_EIR_DATA 0x02
901#define GAP_TASK_SET_CLASS_OF_DEVICE 0x04
902#define GAP_TASK_SET_DEFAULT_LINK_POLICY 0x08
903#define GAP_TASK_WRITE_SCAN_ENABLE 0x10
904#define GAP_TASK_WRITE_PAGE_SCAN_ACTIVITY 0x20
905#define GAP_TASK_WRITE_PAGE_SCAN_TYPE 0x40
906#define GAP_TASK_WRITE_PAGE_TIMEOUT 0x80
907#define GAP_TASK_WRITE_INQUIRY_SCAN_ACTIVITY 0x100
899#define GAP_TASK_SET_LOCAL_NAME 0x01
900#define GAP_TASK_SET_EIR_DATA 0x02
901#define GAP_TASK_SET_CLASS_OF_DEVICE 0x04
902#define GAP_TASK_SET_DEFAULT_LINK_POLICY 0x08
903#define GAP_TASK_WRITE_SCAN_ENABLE 0x10
904#define GAP_TASK_WRITE_PAGE_SCAN_ACTIVITY 0x20
905#define GAP_TASK_WRITE_PAGE_SCAN_TYPE 0x40
906#define GAP_TASK_WRITE_PAGE_TIMEOUT 0x80
907#define GAP_TASK_WRITE_INQUIRY_SCAN_ACTIVITY 0x100
908#define GAP_TASK_WRITE_INQUIRY_TX_POWER_LEVEL 0x200
908
909enum {
910 // Tasks
911 LE_ADVERTISEMENT_TASKS_SET_ADV_DATA = 1 << 0,
912 LE_ADVERTISEMENT_TASKS_SET_SCAN_DATA = 1 << 1,
913 LE_ADVERTISEMENT_TASKS_SET_PARAMS = 1 << 2,
914 LE_ADVERTISEMENT_TASKS_SET_PERIODIC_PARAMS = 1 << 3,
915 LE_ADVERTISEMENT_TASKS_SET_PERIODIC_DATA = 1 << 4,

--- 151 unchanged lines hidden (view full) ---

1067
1068 gap_security_level_t gap_security_level;
1069 gap_security_level_t gap_minimal_service_security_level;
1070 gap_security_mode_t gap_security_mode;
1071
1072 uint32_t inquiry_lap; // GAP_IAC_GENERAL_INQUIRY or GAP_IAC_LIMITED_INQUIRY
1073 uint16_t inquiry_scan_interval;
1074 uint16_t inquiry_scan_window;
909
910enum {
911 // Tasks
912 LE_ADVERTISEMENT_TASKS_SET_ADV_DATA = 1 << 0,
913 LE_ADVERTISEMENT_TASKS_SET_SCAN_DATA = 1 << 1,
914 LE_ADVERTISEMENT_TASKS_SET_PARAMS = 1 << 2,
915 LE_ADVERTISEMENT_TASKS_SET_PERIODIC_PARAMS = 1 << 3,
916 LE_ADVERTISEMENT_TASKS_SET_PERIODIC_DATA = 1 << 4,

--- 151 unchanged lines hidden (view full) ---

1068
1069 gap_security_level_t gap_security_level;
1070 gap_security_level_t gap_minimal_service_security_level;
1071 gap_security_mode_t gap_security_mode;
1072
1073 uint32_t inquiry_lap; // GAP_IAC_GENERAL_INQUIRY or GAP_IAC_LIMITED_INQUIRY
1074 uint16_t inquiry_scan_interval;
1075 uint16_t inquiry_scan_window;
1076 int8_t inquiry_tx_power_level;
1075
1076 bool gap_secure_connections_only_mode;
1077#endif
1078
1079 // single buffer for HCI packet assembly + additional prebuffer for H4 drivers
1080 uint8_t * hci_packet_buffer;
1081 uint8_t hci_packet_buffer_data[HCI_OUTGOING_PRE_BUFFER_SIZE + HCI_OUTGOING_PACKET_BUFFER_SIZE];
1082 bool hci_packet_buffer_reserved;

--- 713 unchanged lines hidden ---
1077
1078 bool gap_secure_connections_only_mode;
1079#endif
1080
1081 // single buffer for HCI packet assembly + additional prebuffer for H4 drivers
1082 uint8_t * hci_packet_buffer;
1083 uint8_t hci_packet_buffer_data[HCI_OUTGOING_PRE_BUFFER_SIZE + HCI_OUTGOING_PACKET_BUFFER_SIZE];
1084 bool hci_packet_buffer_reserved;

--- 713 unchanged lines hidden ---