forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: controller: Add skeleton for vendor HCI commands
Signed-off-by: Marcel Holtmann <[email protected]>
- Loading branch information
Showing
2 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* hci_vs.h - Bluetooth Host Control Interface Vendor Specific definitions */ | ||
|
||
/* | ||
* Copyright (c) 2015-2016 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#ifndef __BT_HCI_VS_H | ||
#define __BT_HCI_VS_H | ||
|
||
#include <bluetooth/hci.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define BT_HCI_OP_VS_READ_VERSION_INFO BT_OP(BT_OGF_VS, 0x0001) | ||
struct bt_hci_rp_vs_read_version_info { | ||
u8_t status; | ||
u16_t hw_platform; | ||
u16_t hw_variant; | ||
u8_t fw_variant; | ||
u8_t fw_version; | ||
u16_t fw_revision; | ||
u32_t fw_build; | ||
} __packed; | ||
|
||
#define BT_HCI_OP_VS_READ_SUPPORTED_COMMANDS BT_OP(BT_OGF_VS, 0x0002) | ||
struct bt_hci_rp_vs_read_supported_commands { | ||
u8_t status; | ||
u8_t commands[64]; | ||
} __packed; | ||
|
||
#define BT_HCI_OP_VS_READ_SUPPORTED_FEATURES BT_OP(BT_OGF_VS, 0x0003) | ||
struct bt_hci_rp_vs_read_supported_features { | ||
u8_t status; | ||
u8_t features[8]; | ||
} __packed; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __BT_HCI_VS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters