Référence de structure bt_interface_t

Référence de structure bt_interface_t

#include < bluetooth.h >

Champs de données

taille_t taille
entier(* init )( bt_callbacks_t *rappels)
entier(* activer )(bool guest_mode)
entier(* désactiver )(vide)
vide(* nettoyage )(vide)
entier(* get_adapter_properties )(vide)
entier(* get_adapter_property )(type bt_property_type_t )
entier(* set_adapter_property )(const bt_property_t *property)
entier(* get_remote_device_properties )(bt_bdaddr_t *remote_addr)
entier(* get_remote_device_property )(bt_bdaddr_t *remote_addr, type bt_property_type_t )
entier(* set_remote_device_property )(bt_bdaddr_t *remote_addr, const bt_property_t *property)
entier(* get_remote_service_record )(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid)
entier(* get_remote_services )(bt_bdaddr_t *remote_addr)
entier(* start_discovery )(vide)
entier(* Cancel_discovery (vide)
entier(* create_bond )(const bt_bdaddr_t *bd_addr, int transport)
entier(* create_bond_out_of_band )(const bt_bdaddr_t *bd_addr, int transport, const bt_out_of_band_data_t *oob_data)
entier(* remove_bond )(const bt_bdaddr_t *bd_addr)
entier(* Cancel_bond )(const bt_bdaddr_t *bd_addr)
entier(* get_connection_state )(const bt_bdaddr_t *bd_addr)
entier(* pin_reply )(const bt_bdaddr_t *bd_addr, uint8_t accepter, uint8_t pin_len, bt_pin_code_t *pin_code)
entier(* ssp_reply )(const bt_bdaddr_t *bd_addr, variante bt_ssp_variant_t , uint8_t accepté, clé d'accès uint32_t)
const vide *(* get_profile_interface (const char *profile_id)
entier(* dut_mode_configure )(uint8_t activer )
entier(* dut_mode_send )(opcode uint16_t, uint8_t *buf, uint8_t len)
entier(* le_test_mode )(opcode uint16_t, uint8_t *buf, uint8_t len)
entier(* config_hci_snoop_log )(uint8_t activer )
entier(* set_os_callouts )( bt_os_callouts_t *callouts)
entier(* read_energy_info )()
vide(* dump )(int fd, const char **arguments)
entier(* config_clear )(vide)
vide(* interop_database_clear )(void)
vide(* interop_database_add )(fonctionnalité uint16_t, const bt_bdaddr_t *addr, size_t len)

Description détaillée

REMARQUE : Par défaut, aucun profil n'est initialisé au moment de l'initialisation/activation. Chaque fois que l'application appelle l'API 'init' d'un profil, l'un des événements suivants se produit :

1.) Si Bluetooth n'est pas activé, le noyau Bluetooth doit marquer le profil comme activé. Par la suite, lorsque l'application invoque « l'activation » Bluetooth, dans le cadre de la séquence d'activation, le profil marqué doit être activé en appelant les API de pile appropriées. Le 'adapter_properties_cb' doit renvoyer la liste des UUID des profils activés.

2.) Si Bluetooth est activé, le noyau Bluetooth doit appeler l'API du profil de pile pour initialiser le profil et déclencher un « adapter_properties_cb » avec la liste actuelle des UUID, y compris l'UUID du profil nouvellement ajouté.

L'inverse se produira chaque fois que les API de « nettoyage » du profil sont invoquées. Représente l'interface Bluetooth DM standard.

Définition à la ligne 456 du fichier bluetooth.h .

Documentation de terrain

int(* Cancel_bond)(const bt_bdaddr_t *bd_addr)

Annuler la caution

Définition à la ligne 521 du fichier bluetooth.h .

int(* cancel_discovery)(void)

Annuler la découverte

Définition à la ligne 508 du fichier bluetooth.h .

void(* nettoyage)(vide)

Ferme l'interface.

Définition à la ligne 472 du fichier bluetooth.h .

int(* config_clear)(void)

Effacez /data/misc/bt_config.conf et effacez toutes les connexions stockées

Définition à la ligne 580 du fichier bluetooth.h .

int(* config_hci_snoop_log)(uint8_t activer )

Définition à la ligne 557 du fichier bluetooth.h .

int(* create_bond)(const bt_bdaddr_t *bd_addr, int transport)

Créer une liaison Bluetooth

Définition à la ligne 511 du fichier bluetooth.h .

int(* create_bond_out_of_band)(const bt_bdaddr_t *bd_addr, int transport, const bt_out_of_band_data_t *oob_data)

Créer une liaison Bluetooth en utilisant des données hors bande

Définition à la ligne 514 du fichier bluetooth.h .

int(* désactiver)(vide)

Désactivez Bluetooth.

Définition à la ligne 469 du fichier bluetooth.h .

void(* dump)(int fd, const char **arguments)

Support natif de la fonction dumpsys La fonction est synchrone et |fd| appartient à l'appelant. |arguments| sont des arguments qui peuvent affecter la sortie, codés sous forme de chaînes UTF-8.

Définition à la ligne 575 du fichier bluetooth.h .

int(* dut_mode_configure)(uint8_t activer )

API du mode test Bluetooth : Bluetooth doit être activé pour ces API

Définition à la ligne 548 du fichier bluetooth.h .

int(* dut_mode_send)(opcode uint16_t, uint8_t *buf, uint8_t len)

Définition à la ligne 551 du fichier bluetooth.h .

int(* activer)(bool guest_mode)

Activez Bluetooth.

Définition à la ligne 466 du fichier bluetooth.h .

int(* get_adapter_properties)(void)

Obtenez toutes les propriétés de l'adaptateur Bluetooth à l'initialisation

Définition à la ligne 475 du fichier bluetooth.h .

int(* get_adapter_property)(type bt_property_type_t )

Obtenir la propriété de l'adaptateur Bluetooth de « type »

Définition à la ligne 478 du fichier bluetooth.h .

int(* get_connection_state)(const bt_bdaddr_t *bd_addr)

Obtenez l'état de la connexion pour un appareil distant donné. une valeur de retour de 0 signifie que l'appareil n'est pas connecté, un état de retour différent de zéro indique une connexion active.

Définition à la ligne 528 du fichier bluetooth.h .

const void*(* get_profile_interface)(const char *profile_id)

Obtenir l'interface de profil Bluetooth

Définition à la ligne 544 du fichier bluetooth.h .

int(* get_remote_device_properties)(bt_bdaddr_t *remote_addr)

Obtenez toutes les propriétés du périphérique distant

Définition à la ligne 487 du fichier bluetooth.h .

int(* get_remote_device_property)(bt_bdaddr_t *remote_addr, type bt_property_type_t )

Obtenir la propriété du périphérique distant de « type »

Définition à la ligne 490 du fichier bluetooth.h .

int(* get_remote_service_record)(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid)

Obtenir l'enregistrement de service du périphérique distant pour l'UUID donné

Définition à la ligne 498 du fichier bluetooth.h .

int(* get_remote_services)(bt_bdaddr_t *remote_addr)

Démarrez SDP pour obtenir des services à distance

Définition à la ligne 502 du fichier bluetooth.h .

int(* init)( bt_callbacks_t *rappels)

Ouvre l'interface et fournit les routines de rappel pour l'implémentation de cette interface.

Définition à la ligne 463 du fichier bluetooth.h .

void(* interop_database_add)(fonctionnalité uint16_t, const bt_bdaddr_t *addr, size_t len)

Ajoutez une nouvelle solution de contournement d'interopérabilité des appareils pour un appareil distant dont le premier |len| les octets de l'adresse de son périphérique correspondent à |addr|. REMARQUE : |fonctionnalité| doit correspondre à un élément défini dans interop_feature_t (interop.h).

Définition à la ligne 592 du fichier bluetooth.h .

void(* interop_database_clear)(void)

Effacez (réinitialisez) la partie dynamique de la base de données d’interopérabilité des appareils.

Définition à la ligne 585 du fichier bluetooth.h .

int(* le_test_mode)(opcode uint16_t, uint8_t *buf, uint8_t len)

API du mode test BLE

Définition à la ligne 554 du fichier bluetooth.h .

int(* pin_reply)(const bt_bdaddr_t *bd_addr, uint8_t accepter, uint8_t pin_len, bt_pin_code_t *pin_code)

Réponse BT Legacy PinKey Si accept==FALSE, alors pin_len et pin_code doivent être 0x0

Définition à la ligne 532 du fichier bluetooth.h .

int(* read_energy_info)()

Lire les détails des informations sur l'énergie - la valeur de retour indique BT_STATUS_SUCCESS ou BT_STATUS_NOT_READY Le succès indique que la commande VSC a été envoyée au contrôleur

Définition à la ligne 567 du fichier bluetooth.h .

int(* remove_bond)(const bt_bdaddr_t *bd_addr)

Supprimer le lien

Définition à la ligne 518 du fichier bluetooth.h .

int(* set_adapter_property)(const bt_property_t *property)

Définir la propriété de l'adaptateur Bluetooth de « type »

Définition à la ligne 484 du fichier bluetooth.h .

int(* set_os_callouts)( bt_os_callouts_t *callouts)

Définit les fonctions d'appel du système d'exploitation dont bluedroid a besoin pour les alarmes et les wakelocks. Cela doit être appelé immédiatement après un |init| réussi.

Définition à la ligne 562 du fichier bluetooth.h .

int(* set_remote_device_property)(bt_bdaddr_t *remote_addr, const bt_property_t *property)

Définir la propriété du périphérique distant de « type »

Définition à la ligne 494 du fichier bluetooth.h .

taille_t taille

défini sur sizeof (bt_interface_t)

Définition à la ligne 458 du fichier bluetooth.h .

int(* ssp_reply)(const bt_bdaddr_t *bd_addr, variante bt_ssp_variant_t , uint8_t accepté, clé d'accès uint32_t)

Réponse BT SSP - Just Works, la comparaison numérique et la clé d'accès doivent être nulles pour BT_SSP_VARIANT_PASSKEY_COMPARISON et BT_SSP_VARIANT_CONSENT Pour BT_SSP_VARIANT_PASSKEY_ENTRY, si accept==FALSE, la clé d'accès doit être nulle.

Définition à la ligne 540 du fichier bluetooth.h .

int(* start_discovery)(void)

Démarrer la découverte

Définition à la ligne 505 du fichier bluetooth.h .


La documentation de cette structure a été générée à partir du fichier suivant :