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_bleReadCharacteristic(
21 sessionHandle session_handle, bleConnHandle conn_handle,
23);
24status_t shim_bleWriteCharacteristic(
25 sessionHandle session_handle, bleConnHandle conn_handle,
26 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
27);
28status_t shim_bleWriteDescriptor(
29 sessionHandle session_handle, bleConnHandle conn_handle,
30 bleGattCharacteristicsValue_t* chars_value, responseType_t request_type
31);
32status_t shim_bleSetNotification(
33 sessionHandle session_handle, bleConnHandle conn_handle,
34 bleGattCharacteristicsValue_t chars_value, bool enable
35);
36
37#ifdef __cplusplus
38}
39#endif
40
41#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_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.