Data structures
BT_t
Main Bluetooth module context structure.Currently connected device information
List of paired devices (max 8)
Connection status:
BT_STATUS_OFF, BT_STATUS_DISCONNECTED, BT_STATUS_CONNECTED, BT_STATUS_CONNECTINGBluetooth module type:
BT_BTM_TYPE_BC127 or BT_BTM_TYPE_BM83Playback status:
BT_AVRCP_STATUS_PAUSED or BT_AVRCP_STATUS_PLAYINGCall status:
BT_CALL_INACTIVE, BT_CALL_ACTIVE, BT_CALL_INCOMING, BT_CALL_OUTGOING, etc.Currently playing track title
Currently playing track artist
Currently playing track album
Caller ID for incoming/active calls
Phone book access protocol state and contacts
BTConnection_t
Represents an active Bluetooth connection.Connection status flag
Device ID (1-3)
Index in paired device list
A2DP link ID
AVRCP link ID
Hands-free profile link ID
Phone book access profile link ID
BTPairedDevice_t
Represents a paired Bluetooth device.MAC address of the device
Friendly name of the device
Device number in pairing list
BTPBAPContact_t
Represents a contact from the phone book.Contact name
Up to 3 phone numbers with types
Number of phone numbers for this contact
Core functions
BTInit
Initialized Bluetooth context structure
BTProcess
Pointer to Bluetooth context
Connection functions
BTCommandConnect
Pointer to Bluetooth context
Pointer to paired device to connect to
BTCommandDisconnect
Pointer to Bluetooth context
BTCommandSetConnectable
Pointer to Bluetooth context
1 to enable connectable mode, 0 to disable
BTCommandSetDiscoverable
Pointer to Bluetooth context
1 to enable discoverable mode, 0 to disable
BTCommandList
Pointer to Bluetooth context
Playback functions
BTCommandPlay
Pointer to Bluetooth context
BTCommandPause
Pointer to Bluetooth context
BTCommandPlaybackToggle
Pointer to Bluetooth context
BTCommandPlaybackTrackNext
Pointer to Bluetooth context
BTCommandPlaybackTrackPrevious
Pointer to Bluetooth context
BTCommandPlaybackTrackFastforwardStart
Pointer to Bluetooth context
BTCommandPlaybackTrackFastforwardStop
Pointer to Bluetooth context
BTCommandPlaybackTrackRewindStart
Pointer to Bluetooth context
BTCommandPlaybackTrackRewindStop
Pointer to Bluetooth context
BTCommandGetMetadata
Pointer to Bluetooth context
Telephony functions
BTCommandCallAccept
Pointer to Bluetooth context
BTCommandCallEnd
Pointer to Bluetooth context
BTCommandDial
Pointer to Bluetooth context
Phone number to dial
Optional contact name
BTCommandRedial
Pointer to Bluetooth context
BTCommandToggleVoiceRecognition
Pointer to Bluetooth context
Phone book functions
BTCommandPBAPOpen
Pointer to Bluetooth context
BTCommandPBAPClose
Pointer to Bluetooth context
BTCommandPBAPGetPhonebook
Pointer to Bluetooth context
Phonebook type:
BT_PBAP_OBJ_PHONEBOOK, BT_PBAP_OBJ_INCOMING, BT_PBAP_OBJ_OUTGOING, BT_PBAP_OBJ_MISSED, etc.Starting index in phonebook
Number of contacts to retrieve (max 8)
BTCommandPBAPAbort
Pointer to Bluetooth context
Utility functions
BTClearMetadata
Pointer to Bluetooth context
BTClearPairedDevices
Pointer to Bluetooth context
BTPairedDeviceFind
Pointer to Bluetooth context
6-byte MAC address
Index in paired devices array, or 0xFF if not found