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_bleCleanupGattService(bleGattsService_t* service, int no_svc);
19status_t pre5170_bleReadCharacteristic(
20 sessionHandle session_handle, bleConnHandle conn_handle,
22);
23status_t pre5170_bleWriteCharacteristics(
24 sessionHandle session_handle, bleConnHandle conn_handle,
25 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
26);
27status_t pre5170_bleWriteDescriptor(
28 sessionHandle session_handle, bleConnHandle conn_handle,
29 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
30);
31status_t pre5170_bleSetNotification(
32 sessionHandle session_handle, bleConnHandle conn_handle,
33 bleGattCharacteristicsValue_t chars_value, bool enable
34);
35
36#ifdef __cplusplus
37}
38#endif
39
40#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_bleGattsService_t bleGattsService_t
Structure for a GATT Server service.
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.