btstack Struct Reference

#include <bt_defs.h>


Detailed Description

Represents one entity of a running stack (more possible) Keeps all data for one stack, like devices, buffers, states, ...

See also:
struct bt_hci_uart for definition of uart-transport.
Examples:

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.


Data Fields

void * acl_data
bt_hci_pkt_acl acl_init
u_short acl_max_len
bt_hci_pkt_aclacl_pkt
u_short acl_pkt_types
bt_hci_pkt_aclacl_self
bt_semaphore acl_write
bt_hci_con_handle_t acl_write_hdl
u_short acl_write_len
u_short acl_written
bt_addr_t bt_addr
bt_hci_pkt_cmd cmd
void * con_change_cb_arg
void * con_rqst_cb_arg
u_char conn_request
bt_hci_connection connection [BT_HCI_MAX_NUM_CON]
bt_hci_pkt_evt evt
 HCI_ACL_CB
void * hci_acl_cb_arg
bt_semaphore hci_cmd_queue
 HCI_CON_RQST_CB
 HCI_CON_TABLE_CB
 HCI_SCO_CB
u_short host_acl_len
NUTTHREADINFOhw_reset
bt_semaphore inquiry
u_char latest_cmd
bt_semaphore nr_acl_pkts
bt_semaphore nr_hci_cmds
bt_semaphore nr_sco_pkts
param_list params
u_char parser_bytes_read
u_char parser_bytes_to_read
u_char parser_state
u_charpin_code
u_char pin_request
u_char reset
void * sco_data
bt_hci_pkt_sco sco_init
u_char sco_max_len
bt_hci_pkt_scosco_pkt
bt_semaphore single_cmd
bt_hci_uart transport
bt_hci_cmd_responsewaitqueue [BT_HCI_NR_WAIT_QUEUES]


Field Documentation

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

u_short btstack::acl_max_len

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

bt_hci_con_handle_t btstack::acl_write_hdl

Currently locked ACL connection

u_short btstack::acl_write_len

Amount of data that is going to be sent over the currently locked ACL connection

u_short btstack::acl_written

Amount of data written to the currentely locked ACL connection

struct bt_hci_pkt_cmd btstack::cmd

Only one command at a time

void* btstack::con_rqst_cb_arg

custom argument for accept filter callback

u_char btstack::conn_request

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

btstack::HCI_ACL_CB

Callback for acl-data pkts

void* btstack::hci_acl_cb_arg

argument that will be passed to the callback

struct bt_semaphore btstack::hci_cmd_queue

Semaphore for the waiting commands. After one command is sent, the next thread is woken up.

btstack::HCI_CON_RQST_CB

Callback to filter out connection requests

btstack::HCI_CON_TABLE_CB

Callback for changes in the connection-table

btstack::HCI_SCO_CB

Callback for sco-data pkts

NUTTHREADINFO* btstack::hw_reset

Thread context from hw_reset caller

u_char btstack::latest_cmd

Index of cmd in waitqueue waiting for Command Status Event, 0xff == none

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

u_char* btstack::pin_code

Pin Code

u_char btstack::pin_request

Flag to indicate if a pincode request is pending (handled by the main thread)

u_char btstack::reset

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

u_char btstack::sco_max_len

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


Generated on Tue Jan 23 21:12:31 2007 for BTnut System Software by doxygen 1.4.7