XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
bt.h File Reference
#include <stdint.h>
Include dependency graph for bt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _bt_scan_ent_
 
struct  _bt_info_
 
struct  _au_bt_usb_ops_
 

Macros

#define BT_GET_INFO   0x4201
 
#define BT_SCAN   0x4202
 
#define BT_CONNECT   0x4203
 
#define BT_DISCONNECT   0x4204
 
#define BT_READ_NAME   0x4205
 
#define BT_PAIR   0x4206
 
#define BT_PASSKEY   0x4207
 
#define BT_CONFIRM   0x4208
 
#define BT_AUDIO   0x4209
 
#define BT_A2DP   0x420A
 
#define BT_FORGET   0x420B
 
#define BT_OK   0
 
#define BT_ERR   1
 
#define BT_NEED_CONFIRM   2
 
#define BT_NO_AUDIO   3
 
#define BT_MAX_SCAN   64
 
#define BT_ADDR_BREDR   2
 
#define BT_NAME_LEN   32
 

Typedefs

typedef struct _bt_scan_ent_ BtScanEnt
 
typedef struct _bt_info_ BtInfo
 
typedef struct _au_bt_usb_ops_ AuBtUsbOps
 

Functions

void AuBtUsbReady (const AuBtUsbOps *ops)
 
void AuVirtioBtInitialize (uint64_t device, int bus, int dev, int func)
 

Macro Definition Documentation

◆ BT_A2DP

#define BT_A2DP   0x420A

◆ BT_ADDR_BREDR

#define BT_ADDR_BREDR   2

◆ BT_AUDIO

#define BT_AUDIO   0x4209

◆ BT_CONFIRM

#define BT_CONFIRM   0x4208

◆ BT_CONNECT

#define BT_CONNECT   0x4203

◆ BT_DISCONNECT

#define BT_DISCONNECT   0x4204

◆ BT_ERR

#define BT_ERR   1

◆ BT_FORGET

#define BT_FORGET   0x420B

◆ BT_GET_INFO

#define BT_GET_INFO   0x4201

BSD 2-Clause License

Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ BT_MAX_SCAN

#define BT_MAX_SCAN   64

◆ BT_NAME_LEN

#define BT_NAME_LEN   32

◆ BT_NEED_CONFIRM

#define BT_NEED_CONFIRM   2

◆ BT_NO_AUDIO

#define BT_NO_AUDIO   3

◆ BT_OK

#define BT_OK   0

◆ BT_PAIR

#define BT_PAIR   0x4206

◆ BT_PASSKEY

#define BT_PASSKEY   0x4207

◆ BT_READ_NAME

#define BT_READ_NAME   0x4205

◆ BT_SCAN

#define BT_SCAN   0x4202

Typedef Documentation

◆ AuBtUsbOps

typedef struct _au_bt_usb_ops_ AuBtUsbOps

◆ BtInfo

typedef struct _bt_info_ BtInfo

◆ BtScanEnt

typedef struct _bt_scan_ent_ BtScanEnt

Function Documentation

◆ AuBtUsbReady()

void AuBtUsbReady ( const AuBtUsbOps *  ops)
extern

◆ AuVirtioBtInitialize()

void AuVirtioBtInitialize ( uint64_t  device,
int  bus,
int  dev,
int  func 
)
extern