Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface
MPLAB Harmony Bluetooth Help
Library Interface

This section describes the API functions of the BM64 Bluetooth Driver library. 

Refer to each section for a detailed description.

a) System Functions
 
Name 
Description 
 
Initializes hardware and data for the instance of the BM64 Bluetooth module 
 
Make a power on/power off task request. 
 
Maintains the driver's control and data interface state machine. 
 
Gets the current status of the BM64 Bluetooth driver module (BM64-specific). 
 
Gets the current system status of the BM64 Bluetooth driver module. 
b) Client Setup Functions
 
Name 
Description 
 
Open the specified BM64 driver instance and returns a handle to it 
 
Close an opened-instance of the BM64 Bluetooth driver. 
 
This function allows a client to identify a event handling function for the driver to call back. 
 
This function allows a client to identify an event handling function for the driver to call back. 
c) Data Transfer Functions
 
Name 
Description 
 
Schedule a non-blocking driver read operation. 
d) Settings Functions
 
Name 
Description 
 
Turn the volume down on the host device. 
 
Turn the volume up on the host device. 
 
Set current volume. 
 
returns 7-bit value 0-127 
 
Set the current sampling rate. 
 
Return the current sampling rate. 
e) Bluetooth-specific Functions
 
Name 
Description 
 
Disconnect all links. 
 
Enter Bluetooth pairing mode. 
 
Forget all pairings. 
 
Link last device. 
 
Return link status. 
f) AVRCP Functions
 
Name 
Description 
 
Fast forward the media. 
 
Pause playback. 
 
Start playback. 
 
Play the next song. 
 
Toggle play/pause mode. 
 
Play the previous song. 
 
Rewind the media. 
 
Stop playback. 
 
Cancel previous fast forward or rewind request. 
 
Return the current playing status of the device. 
g) Device Name and Address Functions
 
Name 
Description 
 
Return the Bluetooth address. 
 
Return Bluetooth device name. 
 
Set the Bluetooth device name. 
h) BLE Functions
 
Name 
Description 
 
Clear the BLE receive buffer. 
 
Enable or disable advertising. 
 
Query BM64 LE status. 
 
Read a byte over BLE. 
 
Read data over BLE. 
 
Send a byte over BLE. 
 
Send data over BLE. 
i) Data Types and Constants
 
Name 
Description 
 
prototype for callback for DRV_BM64_BufferEventHandlerSet 
 
BM64 driver status 
 
events that can be returned to a client via callback 
 
prototype for callback for DRV_BM64_EventHandlerSet 
 
BM64 link status 
 
This is type DRV_BM64_PLAYINGSTATUS. 
 
BM64 protocols 
 
BM64 power on/off request 
 
BM64 sample frequency 
 
This is macro DRV_BM64_BUFFER_EVENT. 
 
This is macro DRV_BM64_BUFFER_EVENT_COMPLETE. 
 
This is macro DRV_BM64_BUFFER_HANDLE. 
 
This is macro DRV_BM64_BUFFER_HANDLE_INVALID. 
 
BM64 defines based on I2S interface 
 
 
 
This is type DRV_BM64_BLE_STATUS. 
 
This is macro DRV_BM64_H.