#include <characteristic.hpp>
|
virtual retcode | on_access (std::uint16_t conn_handle, std::uint16_t attr_handle, ble_gatt_access_ctxt &ctxt) |
|
virtual retcode | on_read (std::uint16_t conn_handle, std::uint16_t attr_handle, ble_gatt_access_ctxt &ctxt) |
|
virtual retcode | on_write (std::uint16_t conn_handle, std::uint16_t attr_handle, ble_gatt_access_ctxt &ctxt) |
|
virtual retcode | do_read (mlab::bin_data &data, std::uint16_t conn_handle, std::uint16_t attr_handle)=0 |
|
virtual retcode | do_write (mlab::bin_data const &data, std::uint16_t conn_handle, std::uint16_t attr_handle)=0 |
|
◆ characteristic_base()
ble::characteristic_base::characteristic_base |
( |
uuid |
u, |
|
|
access_type |
access |
|
) |
| |
◆ ~characteristic_base()
virtual ble::characteristic_base::~characteristic_base |
( |
| ) |
|
|
virtualdefault |
◆ _nimble_characteristic_access_callback()
int ble::characteristic_base::_nimble_characteristic_access_callback |
( |
std::uint16_t |
conn_handle, |
|
|
std::uint16_t |
attr_handle, |
|
|
ble_gatt_access_ctxt * |
ctxt, |
|
|
void * |
tracker |
|
) |
| |
|
staticprivate |
◆ access()
◆ chr_uuid()
uuid const & ble::characteristic_base::chr_uuid |
( |
| ) |
const |
|
inline |
◆ do_read()
virtual retcode ble::characteristic_base::do_read |
( |
mlab::bin_data & |
data, |
|
|
std::uint16_t |
conn_handle, |
|
|
std::uint16_t |
attr_handle |
|
) |
| |
|
protectedpure virtual |
◆ do_write()
virtual retcode ble::characteristic_base::do_write |
( |
mlab::bin_data const & |
data, |
|
|
std::uint16_t |
conn_handle, |
|
|
std::uint16_t |
attr_handle |
|
) |
| |
|
protectedpure virtual |
◆ get_definition()
ble_gatt_chr_def ble::characteristic_base::get_definition |
( |
| ) |
const |
◆ on_access()
retcode ble::characteristic_base::on_access |
( |
std::uint16_t |
conn_handle, |
|
|
std::uint16_t |
attr_handle, |
|
|
ble_gatt_access_ctxt & |
ctxt |
|
) |
| |
|
protectedvirtual |
◆ on_read()
retcode ble::characteristic_base::on_read |
( |
std::uint16_t |
conn_handle, |
|
|
std::uint16_t |
attr_handle, |
|
|
ble_gatt_access_ctxt & |
ctxt |
|
) |
| |
|
protectedvirtual |
◆ on_write()
retcode ble::characteristic_base::on_write |
( |
std::uint16_t |
conn_handle, |
|
|
std::uint16_t |
attr_handle, |
|
|
ble_gatt_access_ctxt & |
ctxt |
|
) |
| |
|
protectedvirtual |
◆ _access
◆ _buffer
mlab::bin_data ble::characteristic_base::_buffer |
|
private |
◆ _nimble_uuid
std::unique_ptr<ble_uuid_any_t> ble::characteristic_base::_nimble_uuid |
|
private |
◆ _uuid
uuid ble::characteristic_base::_uuid |
|
private |
◆ void_definition
constexpr ble_gatt_chr_def ble::characteristic_base::void_definition |
|
staticconstexpr |
Initial value:= {
.uuid = nullptr,
.access_cb = nullptr,
.arg = nullptr,
.descriptors = nullptr,
.flags = 0,
.min_key_size = 0,
.val_handle = nullptr}
The documentation for this class was generated from the following files: