Bluetooth: controller: Added HCI SCO header definition
Added HCI SCO header definition and included comments that refer to the Bluetooth core spec sections for the other HCI header types. Signed-off-by: Victor Chavez <chavez-bermudez@fh-aachen.de>
This commit is contained in:
parent
d2e420029b
commit
82222eb1ab
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,14 @@ extern "C" {
|
||||||
#define BT_HCI_SYNC_HANDLE_INVALID 0xffff
|
#define BT_HCI_SYNC_HANDLE_INVALID 0xffff
|
||||||
#define BT_HCI_PAWR_SUBEVENT_MAX 128
|
#define BT_HCI_PAWR_SUBEVENT_MAX 128
|
||||||
|
|
||||||
|
/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.3 HCI Synchronous Data Packets */
|
||||||
|
struct bt_hci_sco_hdr {
|
||||||
|
uint16_t handle; /* 12 bit handle, 2 bit Packet Status Flag, 1 bit RFU */
|
||||||
|
uint8_t len;
|
||||||
|
} __packed;
|
||||||
|
#define BT_HCI_SCO_HDR_SIZE 3
|
||||||
|
|
||||||
|
/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.4 HCI Event Packet */
|
||||||
struct bt_hci_evt_hdr {
|
struct bt_hci_evt_hdr {
|
||||||
uint8_t evt;
|
uint8_t evt;
|
||||||
uint8_t len;
|
uint8_t len;
|
||||||
|
@ -59,6 +67,7 @@ struct bt_hci_evt_hdr {
|
||||||
#define bt_acl_flags_bc(f) ((f) >> 2)
|
#define bt_acl_flags_bc(f) ((f) >> 2)
|
||||||
#define bt_acl_handle_pack(h, f) ((h) | ((f) << 12))
|
#define bt_acl_handle_pack(h, f) ((h) | ((f) << 12))
|
||||||
|
|
||||||
|
/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.2 ACL Data Packets */
|
||||||
struct bt_hci_acl_hdr {
|
struct bt_hci_acl_hdr {
|
||||||
uint16_t handle;
|
uint16_t handle;
|
||||||
uint16_t len;
|
uint16_t len;
|
||||||
|
@ -100,12 +109,14 @@ struct bt_hci_iso_ts_data_hdr {
|
||||||
} __packed;
|
} __packed;
|
||||||
#define BT_HCI_ISO_TS_DATA_HDR_SIZE 8
|
#define BT_HCI_ISO_TS_DATA_HDR_SIZE 8
|
||||||
|
|
||||||
|
/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.5 HCI ISO Data Packets */
|
||||||
struct bt_hci_iso_hdr {
|
struct bt_hci_iso_hdr {
|
||||||
uint16_t handle; /* 12 bit handle, 2 bit PB flags, 1 bit TS_Flag, 1 bit RFU */
|
uint16_t handle; /* 12 bit handle, 2 bit PB flags, 1 bit TS_Flag, 1 bit RFU */
|
||||||
uint16_t len; /* 14 bits, 2 bits RFU */
|
uint16_t len; /* 14 bits, 2 bits RFU */
|
||||||
} __packed;
|
} __packed;
|
||||||
#define BT_HCI_ISO_HDR_SIZE 4
|
#define BT_HCI_ISO_HDR_SIZE 4
|
||||||
|
|
||||||
|
/* Bluetooth spec v5.4 Vol 4, Part E - 5.4.1 HCI Command Packet */
|
||||||
struct bt_hci_cmd_hdr {
|
struct bt_hci_cmd_hdr {
|
||||||
uint16_t opcode;
|
uint16_t opcode;
|
||||||
uint8_t param_len;
|
uint8_t param_len;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue