#include <bt_hci_api.h>
bt-lego/bt-lego.c, bt-remoteprog/demo-rprog.c, btstreamer/receiver/btreceiver.c, btstreamer/streamer/btstreamer.c, l2cap-cmd/l2cap-cmd.c, mhop_blink/mhop_blink.c, and rfcomm-cmd/rfcomm-cmd.c.
struct bt_hci_pkt_acl* btstack::acl_cl_pkt |
Pointer to the acl-buffer for connection-less data (local to the hci-layer)
struct bt_hci_pkt_acl* btstack::acl_co_pkt |
Pointer to the acl-buffer for connection-oriented data (local to the hci-layer)
void* btstack::acl_data |
acl data (state of the acl-layer aka l2cap)
struct bt_hci_pkt_acl btstack::acl_init |
Initial acl pkt. from this time on, the stack always gets one from the higher level
Max. length of an acl-data-pkt the bt-controller will ever send
struct bt_hci_pkt_acl* btstack::acl_pkt |
Pointer to the acl-buffer (local to the hci-layer)
struct bt_hci_pkt_acl* btstack::acl_self |
Pointer to acl-buffer used for self-delivery
struct bt_semaphore btstack::acl_write |
Semaphore for writing ACL data
Currently locked ACL connection
Amount of data that is going to be sent over the currently locked ACL connection
Amount of data written to the currentely locked ACL connection
local bt addr
hci_acl_cb_t btstack::cl_acl_cb |
Callback for connection-less acl-data pkts (channel id = 2)
void* btstack::cl_acl_cb_arg |
argument that will be passed to the callback
struct bt_hci_pkt_cmd btstack::cmd |
Only one command at a time
hci_acl_cb_t btstack::co_acl_cb |
Callback for connection-oriented acl-data pkts
void* btstack::co_acl_cb_arg |
argument that will be passed to the callback
void* btstack::con_rqst_cb_arg |
custom argument for accept filter callback
con_table_cb_t btstack::con_table_cb[BTN_NR_CONNECT_CALLBACK] |
Callbacks for changes in the connection-table
Flag to indicate if a conn. request is pending (handled by the main thread)
struct bt_hci_connection btstack::connection[BT_HCI_MAX_NUM_CON] |
Keeps track on open connections
struct bt_hci_pkt_evt btstack::evt |
Only one event at a time
Thread context of current exclusive bt stack user
Semaphore for the waiting commands. After one command is sent, the next thread is woken up.
Callback to filter out connection requests
Callback to store agreed link keys
Callback to respond to PIN Code Requests
Callback for sco-data pkts
Thread context from hw_reset caller
Flag to indicate if a link key request is pending (handled by the main thread)
used to filter duplicate bt clock values from Zeevo
Index of cmd in waitqueue waiting for Command Status Event, 0xff == none
custom argument for link key available callback
struct bt_semaphore btstack::nr_acl_pkts |
Semaphore for the max. number of acl pkts the bt-controller can handle
struct bt_semaphore btstack::nr_hci_cmds |
Number of hci cmds we can send to the controller until it runs out of buffer
struct bt_semaphore btstack::nr_sco_pkts |
Semaphore for the max. number of sco pkts, the bt-controller can handle
general packet counter, is increased by one for every packet (acl,sco,event)
struct param_list btstack::params |
bt module parameters used for module reset
char* btstack::pin_code |
Pin Code
custom argument for pin code request callback
Flag to indicate if a pincode request is pending (handled by the main thread)
Reset flag
void* btstack::sco_data |
sco data (state of the sco-layer)
struct bt_hci_pkt_sco btstack::sco_init |
Initial sco pkt. from this time on, the stack always gets one from the higher level
Max. length of a sco-data-pkt the bt-controller will ever send
struct bt_hci_pkt_sco* btstack::sco_pkt |
Pointer to the sco-buffer (local to the hci-layer)
struct bt_semaphore btstack::single_cmd |
Ensure at most one Command is sent without a received Command Status Event
struct bt_hci_uart btstack::transport |
UART-Transport definitions
struct bt_hci_cmd_response* btstack::waitqueue[BT_HCI_NR_WAIT_QUEUES] |
Keeps an eye on running pkts