KindleBT
Bluetooth functionality for Kindle 11th gen and up
Loading...
Searching...
No Matches
compat_ace_shims.h
1#ifndef COMPAT_ACE_SHIMS_H
2#define COMPAT_ACE_SHIMS_H
3
4#include "compat_ace_internals.h"
5#include "kindlebt_defines.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11// Shim for the getSessionForCallback/getSessionForTask runtime resolution
12sessionHandle getSessionFromHandler(aceAipc_parameter_t* task);
13
14status_t shim_bleRegisterGattClient(
15 sessionHandle session_handle, bleGattClientCallbacks_t* callbacks, bleAppId_t app_id
16);
17status_t shim_bleDeregisterGattClient(sessionHandle session_handle);
18status_t shim_bleDiscoverAllServices(sessionHandle session_handle, bleConnHandle conn_handle);
19status_t shim_bleGetDatabase(bleConnHandle conn_handle);
20status_t shim_bleCleanupGattService(bleGattsService_t* service, int no_svc);
21status_t shim_bleReadCharacteristic(
22 sessionHandle session_handle, bleConnHandle conn_handle,
24);
25status_t shim_bleWriteCharacteristic(
26 sessionHandle session_handle, bleConnHandle conn_handle,
27 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
28);
29status_t shim_bleWriteDescriptor(
30 sessionHandle session_handle, bleConnHandle conn_handle,
31 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
32);
33status_t shim_bleSetNotification(
34 sessionHandle session_handle, bleConnHandle conn_handle,
35 bleGattCharacteristicsValue_t chars_value, bool enable
36);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif // COMPAT_ACE_SHIMS_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.