libGulliBLE
characteristic.hpp File Reference
#include <ble/uuid.hpp>
#include <mlab/bin_data.hpp>
#include <mlab/observable.hpp>
#include <mlab/unique_tracker.hpp>
#include <utility>
Include dependency graph for characteristic.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ble::characteristic_base
 
class  ble::impl::stored_characteristic_base< T, bool >
 
class  ble::impl::stored_characteristic_base< T, true >
 
class  ble::stored_characteristic< T >
 

Namespaces

namespace  ble
 
namespace  ble::impl
 

Enumerations

enum struct  ble::retcode : int {
  ble::ok = 0 , ble::invalid_handle = BLE_ATT_ERR_INVALID_HANDLE , ble::read_not_permitted = BLE_ATT_ERR_READ_NOT_PERMITTED , ble::write_not_permitted = BLE_ATT_ERR_WRITE_NOT_PERMITTED ,
  ble::invalid_pdu = BLE_ATT_ERR_INVALID_PDU , ble::insufficient_authen = BLE_ATT_ERR_INSUFFICIENT_AUTHEN , ble::req_not_supported = BLE_ATT_ERR_REQ_NOT_SUPPORTED , ble::invalid_offset = BLE_ATT_ERR_INVALID_OFFSET ,
  ble::insufficient_author = BLE_ATT_ERR_INSUFFICIENT_AUTHOR , ble::prepare_queue_full = BLE_ATT_ERR_PREPARE_QUEUE_FULL , ble::attr_not_found = BLE_ATT_ERR_ATTR_NOT_FOUND , ble::attr_not_long = BLE_ATT_ERR_ATTR_NOT_LONG ,
  ble::insufficient_key_sz = BLE_ATT_ERR_INSUFFICIENT_KEY_SZ , ble::invalid_attr_value_len = BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN , ble::unlikely = BLE_ATT_ERR_UNLIKELY , ble::insufficient_enc = BLE_ATT_ERR_INSUFFICIENT_ENC ,
  ble::unsupported_group = BLE_ATT_ERR_UNSUPPORTED_GROUP , ble::insufficient_res = BLE_ATT_ERR_INSUFFICIENT_RES
}
 
enum struct  ble::access_type : std::uint8_t { ble::none = 0b00 , ble::r = 0b01 , ble::w = 0b10 , ble::rw = 0b11 }
 

Functions

bool ble::operator& (access_type l, access_type r)
 
access_type ble::operator| (access_type l, access_type r)
 
std::uint16_t ble::to_nimble (access_type a)