kindlebt
Bluetooth functionality for Kindle 11th gen and up
Loading...
Searching...
No Matches
compat_ace_implementations.h
1#ifndef COMPAT_ACE_IMPLEMENTATIONS_H
2#define COMPAT_ACE_IMPLEMENTATIONS_H
3
4#include <stdbool.h>
5
6#include "kindlebt_defines.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12status_t pre5170_bleRegisterGattClient(
13 sessionHandle session_handle, bleGattClientCallbacks_t* callbacks, bleAppId_t app_id
14);
15status_t pre5170_bleDeregisterGattClient(sessionHandle session_handle);
16status_t pre5170_bleDiscoverAllServices(sessionHandle session_handle, bleConnHandle conn_handle);
17status_t pre5170_bleGetService(bleConnHandle conn_handle);
18status_t pre5170_bleReadCharacteristic(
19 sessionHandle session_handle, bleConnHandle conn_handle,
21);
22status_t pre5170_bleWriteCharacteristics(
23 sessionHandle session_handle, bleConnHandle conn_handle,
24 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
25);
26status_t pre5170_bleWriteDescriptor(
27 sessionHandle session_handle, bleConnHandle conn_handle,
28 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
29);
30status_t pre5170_bleSetNotification(
31 sessionHandle session_handle, bleConnHandle conn_handle,
32 bleGattCharacteristicsValue_t chars_value, bool enable
33);
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif // COMPAT_ACE_IMPLEMENTATIONS_H
aceBT_bleGattClientCallbacks_t bleGattClientCallbacks_t
Callback struct of GATT Client Bluetooth operations.
aceBt_bleAppId_t bleAppId_t
BLE application type.
aceBT_responseType_t responseType_t
Type of write operation for a BLE characteristic.
ace_status_t status_t
Bluetooth API status codes.
aceBT_bleConnHandle bleConnHandle
Connection handle for the lifetime of a Bluetooth connection.
aceBT_sessionHandle sessionHandle
Session handle for the lifetime of the Bluetooth application.
aceBT_bleGattCharacteristicsValue_t bleGattCharacteristicsValue_t
BLE GATT Characteristic.
Internal definitions.