Loading...
Searching...
No Matches
bplib_cla_ble.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Hamburg University of Technology (TUHH)
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5#pragma once
43#include <stdint.h>
44#include <stdbool.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
51#ifndef CONFIG_BPLIB_CLA_BLE_TIMEOUT
52# define CONFIG_BPLIB_CLA_BLE_TIMEOUT 10000
53#endif
54
56#ifndef CONFIG_BPLIB_CLA_BLE_MTU
57# define CONFIG_BPLIB_CLA_BLE_MTU 1000
58#endif
59
61#ifndef CONFIG_BPLIB_CLA_BLE_CID
62# define CONFIG_BPLIB_CLA_BLE_CID 0xabc1
63#endif
64
79int bplib_cla_ble_start(uint32_t contact_id, bool client);
80
92void bplib_cla_ble_manage_state(bool manage_state);
93
101
102#ifdef __cplusplus
103}
104#endif
105
void bplib_cla_ble_manage_state(bool manage_state)
If the CLA should change the state of the contact when a disconnect is detected.
int bplib_cla_ble_start(uint32_t contact_id, bool client)
Start the CLA on BLE.
void bplib_cla_ble_stop(void)
Stops the CLA, and the BLE connection.