Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_BleCentralPackets.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Apr 16, 2021
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10#include <ble/cs_UUID.h>
12
13#include <cstdint>
14
15// Commands:
16
19 uint16_t timeoutMs = 3000;
20};
21
23 const UUID* uuids;
24 uint8_t uuidCount;
25};
26
28 uint16_t handle;
29};
30
32 uint16_t handle;
34};
35
36// Events:
37
44
47
49 uint16_t valueHandle;
50
52 uint16_t cccdHandle;
53
54 struct {
55 bool broadcast : 1;
56 bool read : 1;
57 bool write_no_ack : 1;
59 bool notify : 1;
60 bool indicate : 1;
61 bool write_signed : 1;
63};
64
67 uint16_t handle;
68};
69
72 uint16_t handle;
74};
75
77 uint16_t handle;
79};
Class that enables the use of 128 bit service UUIDs.
Definition: cs_UUID.h:35
uint16_t cs_ret_code_t
Definition: cs_Typedefs.h:21
Definition: cs_BleCentralPackets.h:17
uint16_t timeoutMs
Definition: cs_BleCentralPackets.h:19
device_address_t address
Definition: cs_BleCentralPackets.h:18
Definition: cs_BleCentralPackets.h:22
uint8_t uuidCount
Definition: cs_BleCentralPackets.h:24
const UUID * uuids
Definition: cs_BleCentralPackets.h:23
Describes a service or characteristic that has been discovered.
Definition: cs_BleCentralPackets.h:41
uint16_t cccdHandle
The CCCD handle. 0 when it does not exist.
Definition: cs_BleCentralPackets.h:52
bool write_with_ack
Definition: cs_BleCentralPackets.h:58
struct ble_central_discovery_t::@50 flags
bool read
Definition: cs_BleCentralPackets.h:56
bool broadcast
Definition: cs_BleCentralPackets.h:55
bool write_signed
Definition: cs_BleCentralPackets.h:61
uint16_t valueHandle
The value handle. 0 when it does not exist.
Definition: cs_BleCentralPackets.h:49
bool indicate
Definition: cs_BleCentralPackets.h:60
bool write_no_ack
Definition: cs_BleCentralPackets.h:57
UUID serviceUuid
The service UUID.
Definition: cs_BleCentralPackets.h:43
bool notify
Definition: cs_BleCentralPackets.h:59
UUID uuid
The characteristic UUID, or the service UUID for a service discovery.
Definition: cs_BleCentralPackets.h:46
Definition: cs_BleCentralPackets.h:76
uint16_t handle
Definition: cs_BleCentralPackets.h:77
cs_const_data_t data
Definition: cs_BleCentralPackets.h:78
Definition: cs_BleCentralPackets.h:70
cs_data_t data
Definition: cs_BleCentralPackets.h:73
uint16_t handle
Definition: cs_BleCentralPackets.h:72
cs_ret_code_t retCode
Definition: cs_BleCentralPackets.h:71
Definition: cs_BleCentralPackets.h:27
uint16_t handle
Definition: cs_BleCentralPackets.h:28
Definition: cs_BleCentralPackets.h:65
uint16_t handle
Definition: cs_BleCentralPackets.h:67
cs_ret_code_t retCode
Definition: cs_BleCentralPackets.h:66
Definition: cs_BleCentralPackets.h:31
uint16_t handle
Definition: cs_BleCentralPackets.h:32
cs_data_t data
Definition: cs_BleCentralPackets.h:33
Variable length data encapsulation in terms of length and pointer to data.
Definition: cs_PacketsInternal.h:38
Packets (structs) that are used internally in the firmware, and can be changed freely.
Definition: cs_PacketsInternal.h:27
Definition: cs_PacketsInternal.h:97