bluetooth-llapi  2.0.2
bluetooth-llapi
LLBLUETOOTH_impl.h
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2018-2020 MicroEJ Corp. All rights reserved.
5  * This library is provided in source code for use, modification and test, subject to license terms.
6  * Any modification of the source code will break MicroEJ Corp. warranties on the whole library.
7  */
8 
17 #ifndef _LLBLUETOOTH_IMPL
18 #define _LLBLUETOOTH_IMPL
19 
20 #include <stdint.h>
21 #include <intern/LLBLUETOOTH_impl.h>
22 #include <LLBLUETOOTH_defines.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
35 uint8_t LLBLUETOOTH_IMPL_enable(void);
36 
44 void LLBLUETOOTH_IMPL_disable(void);
45 
59 uint32_t LLBLUETOOTH_IMPL_waitEvent(LLBLUETOOTH_event_t *event, uint32_t max_event_size);
60 
75 uint8_t LLBLUETOOTH_IMPL_startScanning(uint8_t filter_action, uint8_t filter_type, const uint8_t *filter_data,
76  uint32_t filter_data_size);
77 
83 uint8_t LLBLUETOOTH_IMPL_stopScanning(void);
84 
95 uint8_t LLBLUETOOTH_IMPL_startAdvertising(const uint8_t *adv_data, uint32_t adv_data_size);
96 
103 
112 
120 uint8_t LLBLUETOOTH_IMPL_disconnect(uint16_t conn_handle);
121 
129 uint8_t LLBLUETOOTH_IMPL_sendPairRequest(uint16_t conn_handle);
130 
140 uint8_t LLBLUETOOTH_IMPL_sendPairResponse(uint16_t conn_handle, uint8_t accept);
141 
153 uint8_t LLBLUETOOTH_IMPL_sendPasskeyResponse(uint16_t conn_handle, uint8_t accept, uint32_t passkey);
154 
164 uint8_t LLBLUETOOTH_IMPL_discoverServices(uint16_t conn_handle, const LLBLUETOOTH_uuid_t *uuid);
165 
178 uint8_t LLBLUETOOTH_IMPL_addService(const LLBLUETOOTH_gatts_service_t *service, uint16_t *handles);
179 
189 uint8_t LLBLUETOOTH_IMPL_sendReadRequest(uint16_t conn_handle, uint16_t attr_handle);
190 
206 uint8_t LLBLUETOOTH_IMPL_sendWriteRequest(uint16_t conn_handle, uint16_t attr_handle, const uint8_t *value,
207  uint32_t value_size, uint8_t no_response);
208 
224 uint8_t LLBLUETOOTH_IMPL_sendReadResponse(uint16_t conn_handle, uint16_t attr_handle, uint8_t status,
225  const uint8_t *value, uint32_t value_size);
226 
238 uint8_t LLBLUETOOTH_IMPL_sendWriteResponse(uint16_t conn_handle, uint16_t attr_handle, uint8_t status);
239 
255 uint8_t LLBLUETOOTH_IMPL_sendNotification(uint16_t conn_handle, uint16_t attr_handle, const uint8_t *value,
256  uint32_t value_size, uint8_t confirm);
257 
258 #ifdef __cplusplus
259 }
260 #endif
261 
262 #endif // _LLBLUETOOTH_IMPL
uint8_t LLBLUETOOTH_IMPL_startScanning(uint8_t filter_action, uint8_t filter_type, const uint8_t *filter_data, uint32_t filter_data_size)
uint8_t LLBLUETOOTH_IMPL_sendPairRequest(uint16_t conn_handle)
uint8_t LLBLUETOOTH_IMPL_stopScanning(void)
uint8_t LLBLUETOOTH_IMPL_sendNotification(uint16_t conn_handle, uint16_t attr_handle, const uint8_t *value, uint32_t value_size, uint8_t confirm)
uint8_t LLBLUETOOTH_IMPL_sendPasskeyResponse(uint16_t conn_handle, uint8_t accept, uint32_t passkey)
uint8_t LLBLUETOOTH_IMPL_enable(void)
uint8_t LLBLUETOOTH_IMPL_disconnect(uint16_t conn_handle)
void LLBLUETOOTH_IMPL_disable(void)
uint8_t LLBLUETOOTH_IMPL_sendWriteRequest(uint16_t conn_handle, uint16_t attr_handle, const uint8_t *value, uint32_t value_size, uint8_t no_response)
uint8_t LLBLUETOOTH_IMPL_connect(const LLBLUETOOTH_address_t *addr)
uint8_t LLBLUETOOTH_IMPL_discoverServices(uint16_t conn_handle, const LLBLUETOOTH_uuid_t *uuid)
uint8_t LLBLUETOOTH_IMPL_sendReadResponse(uint16_t conn_handle, uint16_t attr_handle, uint8_t status, const uint8_t *value, uint32_t value_size)
uint32_t LLBLUETOOTH_IMPL_waitEvent(LLBLUETOOTH_event_t *event, uint32_t max_event_size)
uint8_t LLBLUETOOTH_IMPL_addService(const LLBLUETOOTH_gatts_service_t *service, uint16_t *handles)
uint8_t LLBLUETOOTH_IMPL_sendPairResponse(uint16_t conn_handle, uint8_t accept)
uint8_t LLBLUETOOTH_IMPL_sendReadRequest(uint16_t conn_handle, uint16_t attr_handle)
uint8_t LLBLUETOOTH_IMPL_stopAdvertising(void)
uint8_t LLBLUETOOTH_IMPL_sendWriteResponse(uint16_t conn_handle, uint16_t attr_handle, uint8_t status)
MicroEJ BLUETOOTH low level API.
uint8_t LLBLUETOOTH_IMPL_startAdvertising(const uint8_t *adv_data, uint32_t adv_data_size)