mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 02:37:41 +00:00
hci_transport: add config for linux bluetooth driver
This commit is contained in:
parent
02683cf1fc
commit
97f64e028b
@ -114,7 +114,8 @@ typedef struct {
|
||||
|
||||
typedef enum {
|
||||
HCI_TRANSPORT_CONFIG_UART,
|
||||
HCI_TRANSPORT_CONFIG_USB
|
||||
HCI_TRANSPORT_CONFIG_USB,
|
||||
HCI_TRANSPORT_CONFIG_LINUX,
|
||||
} hci_transport_config_type_t;
|
||||
|
||||
typedef struct {
|
||||
@ -123,13 +124,18 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
hci_transport_config_type_t type; // == HCI_TRANSPORT_CONFIG_UART
|
||||
uint32_t baudrate_init; // initial baud rate
|
||||
uint32_t baudrate_main; // = 0: same as initial baudrate
|
||||
int flowcontrol; //
|
||||
uint32_t baudrate_init; // initial baud rate
|
||||
uint32_t baudrate_main; // = 0: same as initial baudrate
|
||||
int flowcontrol; //
|
||||
const char *device_name;
|
||||
int parity; // see btstack_uart.h BTSTACK_UART_PARITY
|
||||
int parity; // see btstack_uart.h BTSTACK_UART_PARITY
|
||||
} hci_transport_config_uart_t;
|
||||
|
||||
typedef struct {
|
||||
hci_transport_config_type_t type; // == HCI_TRANSPORT_CONFIG_LINUX
|
||||
int device_id; // e.g. 0 for HCI0
|
||||
} hci_transport_config_linux_t;
|
||||
|
||||
/* API_END */
|
||||
|
||||
#if defined __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user