Bluedroid Code Framework

Source: Internet
Author: User

bluedroid Framework for Project code:Bta:1. AG (Audio Gateway): Implementation of the Bluetooth audio Gateway 2. Ar (Audio/video Registration): Implementation of the audio/video Registration Module 3. Av (Advanced Audio/video): Improved audio/video implementation 4. Dm (Device Manager): BTA Device Management implementation 5. Fs (File System): contains BTA file system compile time configurable constants and callback function 6. Gatt:gatt client's main function and state machine 7. Hh (HID Host): humanized interface Device (HID), connect mouse keyboard 8. Hl (health): The main function and state machine of healthy device mode 9. Jv (Java): 10.Pan (Bluetooth personal Local area network):p an main function realization and state machine 11. Pb (phone book): Phonebook access Server private file 12.sys (System): BTA System Management Implementation btif:1. Co:call-out (BTA's callout function) 2. Src:

BLUETOOTH.C: Bluetooth HAL Implementation

BTIF_AV.C: Bluetooth av Implementation

BTIF_CONFIG.C: Stored locally on the BT Adapter and Remote device Properties (XML)

BTIF_CORE.C: Contains the core function function between the HAL and the BTE interface
BTIF_DM.C: Includes device management (DM) Related features

BTIF_HF.C: handsfree mode Bluetooth interface

Btif_hh.c:hid Bluetooth interface for host configuration files

BTIF_HL.C: Bluetooth interface for medical device specification

BTIF_MEDIA_TASK.C: This is the btif system for multimedia modules . It contains tasks for implementing av,HS and HF mode audio and video processing

Btif_pan.c:pan Mode Bluetooth interface

BTIF_PROFILE_QUEUE.C: The implementation of the connection queue for Bluetooth remote devices.

BTIF_RC.C: Bluetooth AVRC Implementation

BTIF_SM.C: API for Universal btif State machine

BTIF_SOCK.C: Bluetooth Socket interface

BTIF_SOCK_RFC.C: Virtual serial port mode Bluetooth interface

BTIF_SOCK_SDP.C: Service Discovery

Btif_sock_thread.c:socket Select Thread creates a thread for socket communication

Some related functions of the btif_sock_util.c:socket operation

BTIF_STORAGE.C: Stored locally on the BT Adapter and Remote device Properties (XML)

BTIF_UTIL.C: Other auxiliary functions

Gki:1. COMMON:2.ULINUXHCI:

BT_HCI_BDROID.C: Bluetooth host / Controller Interface Library implementation

BT_HW.C: callback function provided by Bluetooth provider

BT_UTILS.C: Other auxiliary functions

BTSNOOP.C: Generate a Bluetooth snooping file

HCI_H4.C:HCI Transmit Send / receive

HCI_MCT.C:HCI Multi-channel transmission

LPM.C: Low power Mode implementation

USERIAL.C: Serial port open / read / write / Close Implementation

USERIAL_MCT.C: Multi-Channel open / read / write / close function

UTILS.C: Help function function

Main:

BTE_CONF.C: module configuration According to current runtime conf file Entry

BTE_INIT.C: This module contains a routine that initializes the stack component and is called before the BTU task begins.

Bte_logmsg.c:bte Log Information Encapsulation

Bte_main.c:bte Core stack initialization and shutdown code

Bte_version.c:bte version

Stack:1. A2dp

A2D_API.C: Advanced Audio transfer Mode ommon API(support A2DP)

A2D_SBC.C: Useful function to help establish and parse the SBC codec Information unit and the media payload.

2. AVCT:

AVCT_API.C: API for audio / Video Control Transport Protocol

AVCT_CCB.C: Functions for manipulating AVCTP connection control blocks

AVCT_L2C.C:AVCTP Module interface to l2cap

AVCT_LCB.C: This module contains Link control state machines and Operation Link Control block functions

AVCT_LCB_ACT.C: The behavior function of link control state machine

3. AVDT:

AVDT_AD.C: This module contains a AVDTP adaptation layer (adaption)

AVDT_API.C: API for audio / Video Distribution transport Protocol

AVDT_CCB.C: Channel control block state machine and function function to manipulate the channel control block

AVDT_CCB_ACT.C: Operation function function related to channel control block state machine

AVDT_L2C.C:AVDTP Adaptation Layer module interface l2cap

AVDT_MSG.C: The ability to analyze and generate AVDTP signaling Messages

AVDT_SCB.C: Flow control block and its operation function

Avdt_scb_act.c: Flow control block state machine related operation function function

4. AVRC:

AVRC_API.C:AVRCP must command interface API

AVRC_OPT.C:AVRCP Optional Command interface API

AVRC_SDP.C:AVRCP SDP related features

5. BNEP:

BNEP_API.C:BNEP API

BNEP_MAIN.C:BNEP main function function

BNEP_UTILS.C:BNEP practical function Functions

6. Btm:

BTM_ACL.C: Handles ACL connections, hold and sniff modes, and supports packet types.

control and safety function of btm_ble.c:ble equipment

Btm_ble_addr.c:ble Address Management

Btm_ble_bgconn.c:ble White List of operations

Btm_ble_gap.c:ble Gap

BTM_DEV.C: Bluetooth Device Management

BTM_DEVCTL.C: Handles BTM interface functions including rest,HCl buffer size, etc.

BTM_INQ.C: Processing queries (handle inquiries), including setting the discovery mode, controlling the baseband, and maintaining a small database of query responses

definition of BTM_MAIN.C:BTM control block

BTM_PM.C: Manage ACL link mode function ( active, hold, stop and sniff mode )

BTM_SCO.C: Handle SCO connection, connect, disconnect, change support packet type.

BTM_SEC.C: Bluetooth Security Manager feature

7. Btu:

BTU_HCIF.C:HCI Transport Interface , ( event handler to l2cap , command transfer )

BTU_INIT.C: Loading and shutting down the core protocol stack component routines

BTU_TASK.C: Bluetooth upper processing cycle,RFCOMM l2cap,SDP and BTIF as a whole gki Task. This btu_task switch between them

8. Gatt:

Att_protocol.c:att Protocol features

Gatt_api.c:gatt interface API

Gatt_attr.c:gatt the server property access Request handler function.

Gatt_auth.c:gatt Authentication processing function

Gatt_cl.c:gatt client function Functions

establishment and query of Gatt_db.c:gatt database

GATT_MAIN.C: The main ATT function function

Gatt_sr.c:gatt server function Functions

Gatt_utils.c:gatt Utility Function

9. Hcic:

Hciblecmds.c:hcic cell format and send HCI command

HCICMDS.C:

Hid:

Hidh_api.c:hid host API

HIDH_CONN.C: Connection interface function function

One. L2cap:

L2c_api.c:l2cap interface API

L2C_BLE.C: function functions related to ble management

L2c_csm.c:l2cap Channel State machines

L2C_FCR.C: Traffic control and retransmission (flow controls and retransmissions)

L2C_LINK.C: Related to link management

L2c_main.c:l2cap Entry Point

L2c_ucd.c:l2cap UCD CODE

L2c_utils.c:l2cap Utility Function

MCAP (multi-channel adaptation protocol):

Mca_api.c:multi-channel adaptation Protocol interface API

MCA_CACT.C: Implementation of control channel operation function function

MCA_CSM.C: The implementation of the state machine for the control channel.

MCA_DACT.C: Realization of data channel function

MCA_DSM.C: Data channel State machine

implementation of Mca_l2c.c:mcap on l2cap interface

implementation of Mca_main.c:mcap main control block

Pan:

Pan_api.c:pan Specification Interface API

PAN_MAIN.C: function functions that support pan commands and events

PAN_UTILS.C:

Rfcomm:

PORT_API.C: Serial port API

PORT_RFC.C: Port emulation entity and RFCOMM Communication

PORT_UTILS.C: Port emulation entity function

Rfc_l2cap_if.c:l2cap Interface Functions

Rfc_mx_fsm.c:rfcomm Unit Multichannel state machine and operation routines

state Machine and operation routines for the port of the Rfc_port_fsm.c:rfcomm unit

RFC_PORT_IF.C: application calls that run on top of RFCOMM

RFC_TS_FRAMES.C: Send ts 07.10 Frame

RFC_UTILS.C: utility function of the RFCOMM unit used

. SDP:

SDP_API.C:SDP interface API

SDP_DB.C: Working with Database functions

SDP_DISCOVERY.C:SDP Discovery Features

SDP_MAIN.C:SDP main function

SDP_SERVER.C:SDP Server functionality. This is primarily the processing of client requests

SDP_UTILS.C:SDP Utility Function

. SMP:

Aes.c:aes implementation, using a unique 8 -bit byte to manipulate the encryption state

SMP_ACT.C:

the SMP_API.C:SMP application interface.

Implementation of smp_cmac.c:aes128 CMAC algorithm

SMP_KEYS.C:

implementation on the SMP_L2C.C:SMP L2cap interface

SMP_MAIN.C:SMP main function

SMP_UTILS.C:SMP L2cap Utility function

Bluedroid Code Framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.