InPlay API
BLE Attribute Protocol

BLE ATT. More...

Macros

#define BLE_SVC_VALUE_MAX_LEN   0x0030
 Length, number, offset defines.
 

Enumerations

enum  ble_att_perm
 
enum  ble_att_perm_prop { ATT_PERM_READ_MASK = 0x0003 , ATT_PERM_WRITE_MASK = 0x000C , ATT_PERM_IND_MASK = 0x0030 , ATT_PERM_NTF_MASK = 0x00C0 }
 Attributes permission prop. More...
 
enum  ble_att_char_prop {
  ATT_CHAR_PROP_BROADCAST = 0x0100, ATT_CHAR_PROP_READ = 0x0200, ATT_CHAR_PROP_WRITE_NO_RSP = 0x0400, ATT_CHAR_PROP_WRITE = 0x0800,
  ATT_CHAR_PROP_NOTIFY = 0x1000, ATT_CHAR_PROP_INDICATE = 0x2000, ATT_CHAR_PROP_WRITE_SIGNED = 0x4000, ATT_CHAR_PROP_EXT = 0x8000
}
 Attributes char prop. More...
 
enum  ble_att_ext_prop {
  ATT_EXT_PROP_MAX_LEN = 0x0FFF , ATT_EXT_PROP_VAL_OFFSET = 0x0FFF , ATT_EXT_PROP_EKS = 0x1000 , ATT_EXT_PROP_UUID_LEN = 0x6000 ,
  ATT_EXT_PROP_RI = 0x8000
}
 
enum  ble_att_svc_prop {
  ATT_SVC_PROP_EKS = 0x02 , ATT_SVC_PROP_AUTH = 0x0C , ATT_SVC_PROP_DIS = 0x10 , ATT_SVC_PROP_UUID_LEN = 0x60 ,
  ATT_SVC_PROP_SECONDARY = 0x80
}
 
enum  ble_common_uuid { ,
  BLE_ATT_SVC_GENERIC_ACCESS = BLE_ATT_UUID_16(0x1800), BLE_ATT_SVC_GENERIC_ATTRIBUTE = BLE_ATT_UUID_16(0x1801), BLE_ATT_SVC_IMMEDIATE_ALERT = BLE_ATT_UUID_16(0x1802), BLE_ATT_SVC_LINK_LOSS = BLE_ATT_UUID_16(0x1803),
  BLE_ATT_SVC_TX_POWER = BLE_ATT_UUID_16(0x1804), BLE_ATT_SVC_CURRENT_TIME = BLE_ATT_UUID_16(0x1805), BLE_ATT_SVC_REF_TIME_UPDATE = BLE_ATT_UUID_16(0x1806), BLE_ATT_SVC_NEXT_DST_CHANGE = BLE_ATT_UUID_16(0x1807),
  BLE_ATT_SVC_GLUCOSE = BLE_ATT_UUID_16(0x1808), BLE_ATT_SVC_HEALTH_THERMOM = BLE_ATT_UUID_16(0x1809), BLE_ATT_SVC_DEVICE_INFO = BLE_ATT_UUID_16(0x180A), BLE_ATT_SVC_HEART_RATE = BLE_ATT_UUID_16(0x180D),
  BLE_ATT_SVC_PHONE_ALERT_STATUS = BLE_ATT_UUID_16(0x180E), BLE_ATT_SVC_BATTERY_SERVICE = BLE_ATT_UUID_16(0x180F), BLE_ATT_SVC_BLOOD_PRESSURE = BLE_ATT_UUID_16(0x1810), BLE_ATT_SVC_ALERT_NTF = BLE_ATT_UUID_16(0x1811),
  BLE_ATT_SVC_HID = BLE_ATT_UUID_16(0x1812), BLE_ATT_SVC_SCAN_PARAMETERS = BLE_ATT_UUID_16(0x1813), BLE_ATT_SVC_RUNNING_SPEED_CADENCE = BLE_ATT_UUID_16(0x1814), BLE_ATT_SVC_CYCLING_SPEED_CADENCE = BLE_ATT_UUID_16(0x1816),
  BLE_ATT_SVC_CYCLING_POWER = BLE_ATT_UUID_16(0x1818), BLE_ATT_SVC_LOCATION_AND_NAVIGATION = BLE_ATT_UUID_16(0x1819), BLE_ATT_SVC_ENVIRONMENTAL_SENSING = BLE_ATT_UUID_16(0x181A), BLE_ATT_SVC_BODY_COMPOSITION = BLE_ATT_UUID_16(0x181B),
  BLE_ATT_SVC_USER_DATA = BLE_ATT_UUID_16(0x181C), BLE_ATT_SVC_WEIGHT_SCALE = BLE_ATT_UUID_16(0x181D), BLE_ATT_SVC_BOND_MANAGEMENT = BLE_ATT_UUID_16(0x181E), BLE_ATT_SVC_CONTINUOUS_GLUCOSE_MONITORING = BLE_ATT_UUID_16(0x181F),
  BLE_ATT_SVC_IP_SUPPORT = BLE_ATT_UUID_16(0x1820), BLE_ATT_SVC_INDOOR_POSITIONING = BLE_ATT_UUID_16(0x1821), BLE_ATT_SVC_PULSE_OXIMETER = BLE_ATT_UUID_16(0x1822), BLE_ATT_SVC_HTTP_PROXY = BLE_ATT_UUID_16(0x1823),
  BLE_ATT_SVC_TRANSPORT_DISCOVERY = BLE_ATT_UUID_16(0x1824), BLE_ATT_SVC_OBJECT_TRANSFER = BLE_ATT_UUID_16(0x1825), BLE_ATT_SVC_MESH_PROVISIONING = BLE_ATT_UUID_16(0x1827), BLE_ATT_SVC_MESH_PROXY = BLE_ATT_UUID_16(0x1828),
  BLE_ATT_UNIT_UNITLESS = BLE_ATT_UUID_16(0x2700), BLE_ATT_UNIT_METRE = BLE_ATT_UUID_16(0x2701), BLE_ATT_UNIT_KG = BLE_ATT_UUID_16(0x2702), BLE_ATT_UNIT_SECOND = BLE_ATT_UUID_16(0x2703),
  BLE_ATT_UNIT_AMPERE = BLE_ATT_UUID_16(0x2704), BLE_ATT_UNIT_KELVIN = BLE_ATT_UUID_16(0x2705), BLE_ATT_UNIT_MOLE = BLE_ATT_UUID_16(0x2706), BLE_ATT_UNIT_CANDELA = BLE_ATT_UUID_16(0x2707),
  BLE_ATT_UNIT_SQ_METRE = BLE_ATT_UUID_16(0x2710), BLE_ATT_UNIT_CUBIC_METRE = BLE_ATT_UUID_16(0x2710), BLE_ATT_UNIT_METRE_PER_SECOND = BLE_ATT_UUID_16(0x2711), BLE_ATT_UNIT_METRES_PER_SEC_SQ = BLE_ATT_UUID_16(0x2712),
  BLE_ATT_UNIT_RECIPROCAL_METRE = BLE_ATT_UUID_16(0x2713), BLE_ATT_UNIT_DENS_KG_PER_CUBIC_METRE = BLE_ATT_UUID_16(0x2714), BLE_ATT_UNIT_KG_PER_SQ_METRE = BLE_ATT_UUID_16(0x2715), BLE_ATT_UNIT_CUBIC_METRE_PER_KG = BLE_ATT_UUID_16(0x2716),
  BLE_ATT_UNIT_AMPERE_PER_SQ_METRE = BLE_ATT_UUID_16(0x2717), BLE_ATT_UNIT_AMPERE_PER_METRE = BLE_ATT_UUID_16(0x2718), BLE_ATT_UNIT_MOLE_PER_CUBIC_METRE = BLE_ATT_UUID_16(0x2719), BLE_ATT_UNIT_MASS_KG_PER_CUBIC_METRE = BLE_ATT_UUID_16(0x271A),
  BLE_ATT_UNIT_CANDELA_PER_SQ_METRE = BLE_ATT_UUID_16(0x271B), BLE_ATT_UNIT_REFRACTIVE_INDEX = BLE_ATT_UUID_16(0x271C), BLE_ATT_UNIT_RELATIVE_PERMEABILITY = BLE_ATT_UUID_16(0x271D), BLE_ATT_UNIT_RADIAN = BLE_ATT_UUID_16(0x2720),
  BLE_ATT_UNIT_STERADIAN = BLE_ATT_UUID_16(0x2721), BLE_ATT_UNIT_HERTZ = BLE_ATT_UUID_16(0x2722), BLE_ATT_UNIT_NEWTON = BLE_ATT_UUID_16(0x2723), BLE_ATT_UNIT_PASCAL = BLE_ATT_UUID_16(0x2724),
  BLE_ATT_UNIT_JOULE = BLE_ATT_UUID_16(0x2725), BLE_ATT_UNIT_WATT = BLE_ATT_UUID_16(0x2726), BLE_ATT_UNIT_COULOMB = BLE_ATT_UUID_16(0x2727), BLE_ATT_UNIT_VOLT = BLE_ATT_UUID_16(0x2728),
  BLE_ATT_UNIT_FARAD = BLE_ATT_UUID_16(0x2729), BLE_ATT_UNIT_OHM = BLE_ATT_UUID_16(0x272A), BLE_ATT_UNIT_SIEMENS = BLE_ATT_UUID_16(0x272B), BLE_ATT_UNIT_WEBER = BLE_ATT_UUID_16(0x272C),
  BLE_ATT_UNIT_TESLA = BLE_ATT_UUID_16(0x272D), BLE_ATT_UNIT_HENRY = BLE_ATT_UUID_16(0x272E), BLE_ATT_UNIT_CELSIUS = BLE_ATT_UUID_16(0x272F), BLE_ATT_UNIT_LUMEN = BLE_ATT_UUID_16(0x2730),
  BLE_ATT_UNIT_LUX = BLE_ATT_UUID_16(0x2731), BLE_ATT_UNIT_BECQUEREL = BLE_ATT_UUID_16(0x2732), BLE_ATT_UNIT_GRAY = BLE_ATT_UUID_16(0x2733), BLE_ATT_UNIT_SIEVERT = BLE_ATT_UUID_16(0x2734),
  BLE_ATT_UNIT_KATAL = BLE_ATT_UUID_16(0x2735), BLE_ATT_UNIT_PASCAL_SECOND = BLE_ATT_UUID_16(0x2740), BLE_ATT_UNIT_NEWTON_METRE = BLE_ATT_UUID_16(0x2741), BLE_ATT_UNIT_NEWTON_PER_METRE = BLE_ATT_UUID_16(0x2742),
  BLE_ATT_UNIT_RADIAN_PER_SECOND = BLE_ATT_UUID_16(0x2743), BLE_ATT_UNIT_RADIAN_PER_SECOND_SQ = BLE_ATT_UUID_16(0x2744), BLE_ATT_UNIT_WATT_PER_SQ_METRE = BLE_ATT_UUID_16(0x2745), BLE_ATT_UNIT_JOULE_PER_KELVIN = BLE_ATT_UUID_16(0x2746),
  BLE_ATT_UNIT_JOULE_PER_KG_KELVIN = BLE_ATT_UUID_16(0x2747), BLE_ATT_UNIT_JOULE_PER_KG = BLE_ATT_UUID_16(0x2748), BLE_ATT_UNIT_WATT_PER_METRE_KELVIN = BLE_ATT_UUID_16(0x2749), BLE_ATT_UNIT_JOULE_PER_CUBIC_METRE = BLE_ATT_UUID_16(0x274A),
  BLE_ATT_UNIT_VOLT_PER_METRE = BLE_ATT_UUID_16(0x274B), BLE_ATT_UNIT_COULOMB_PER_CUBIC_METRE = BLE_ATT_UUID_16(0x274C), BLE_ATT_UNIT_SURF_COULOMB_PER_SQ_METRE = BLE_ATT_UUID_16(0x274D), BLE_ATT_UNIT_FLUX_COULOMB_PER_SQ_METRE = BLE_ATT_UUID_16(0x274E),
  BLE_ATT_UNIT_FARAD_PER_METRE = BLE_ATT_UUID_16(0x274F), BLE_ATT_UNIT_HENRY_PER_METRE = BLE_ATT_UUID_16(0x2750), BLE_ATT_UNIT_JOULE_PER_MOLE = BLE_ATT_UUID_16(0x2751), BLE_ATT_UNIT_JOULE_PER_MOLE_KELVIN = BLE_ATT_UUID_16(0x2752),
  BLE_ATT_UNIT_COULOMB_PER_KG = BLE_ATT_UUID_16(0x2753), BLE_ATT_UNIT_GRAY_PER_SECOND = BLE_ATT_UUID_16(0x2754), BLE_ATT_UNIT_WATT_PER_STERADIAN = BLE_ATT_UUID_16(0x2755), BLE_ATT_UNIT_WATT_PER_SQ_METRE_STERADIAN = BLE_ATT_UUID_16(0x2756),
  BLE_ATT_UNIT_KATAL_PER_CUBIC_METRE = BLE_ATT_UUID_16(0x2757), BLE_ATT_UNIT_MINUTE = BLE_ATT_UUID_16(0x2760), BLE_ATT_UNIT_HOUR = BLE_ATT_UUID_16(0x2761), BLE_ATT_UNIT_DAY = BLE_ATT_UUID_16(0x2762),
  BLE_ATT_UNIT_ANGLE_DEGREE = BLE_ATT_UUID_16(0x2763), BLE_ATT_UNIT_ANGLE_MINUTE = BLE_ATT_UUID_16(0x2764), BLE_ATT_UNIT_ANGLE_SECOND = BLE_ATT_UUID_16(0x2765), BLE_ATT_UNIT_HECTARE = BLE_ATT_UUID_16(0x2766),
  BLE_ATT_UNIT_LITRE = BLE_ATT_UUID_16(0x2767), BLE_ATT_UNIT_TONNE = BLE_ATT_UUID_16(0x2768), BLE_ATT_UNIT_BAR = BLE_ATT_UUID_16(0x2780), BLE_ATT_UNIT_MM_MERCURY = BLE_ATT_UUID_16(0x2781),
  BLE_ATT_UNIT_ANGSTROM = BLE_ATT_UUID_16(0x2782), BLE_ATT_UNIT_NAUTICAL_MILE = BLE_ATT_UUID_16(0x2783), BLE_ATT_UNIT_BARN = BLE_ATT_UUID_16(0x2784), BLE_ATT_UNIT_KNOT = BLE_ATT_UUID_16(0x2785),
  BLE_ATT_UNIT_NEPER = BLE_ATT_UUID_16(0x2786), BLE_ATT_UNIT_BEL = BLE_ATT_UUID_16(0x2787), BLE_ATT_UNIT_YARD = BLE_ATT_UUID_16(0x27A0), BLE_ATT_UNIT_PARSEC = BLE_ATT_UUID_16(0x27A1),
  BLE_ATT_UNIT_INCH = BLE_ATT_UUID_16(0x27A2), BLE_ATT_UNIT_FOOT = BLE_ATT_UUID_16(0x27A3), BLE_ATT_UNIT_MILE = BLE_ATT_UUID_16(0x27A4), BLE_ATT_UNIT_POUND_FORCE_PER_SQ_INCH = BLE_ATT_UUID_16(0x27A5),
  BLE_ATT_UNIT_KM_PER_HOUR = BLE_ATT_UUID_16(0x27A6), BLE_ATT_UNIT_MILE_PER_HOUR = BLE_ATT_UUID_16(0x27A7), BLE_ATT_UNIT_REVOLUTION_PER_MINUTE = BLE_ATT_UUID_16(0x27A8), BLE_ATT_UNIT_GRAM_CALORIE = BLE_ATT_UUID_16(0x27A9),
  BLE_ATT_UNIT_KG_CALORIE = BLE_ATT_UUID_16(0x27AA), BLE_ATT_UNIT_KILOWATT_HOUR = BLE_ATT_UUID_16(0x27AB), BLE_ATT_UNIT_FAHRENHEIT = BLE_ATT_UUID_16(0x27AC), BLE_ATT_UNIT_PERCENTAGE = BLE_ATT_UUID_16(0x27AD),
  BLE_ATT_UNIT_PER_MILLE = BLE_ATT_UUID_16(0x27AE), BLE_ATT_UNIT_BEATS_PER_MINUTE = BLE_ATT_UUID_16(0x27AF), BLE_ATT_UNIT_AMPERE_HOURS = BLE_ATT_UUID_16(0x27B0), BLE_ATT_UNIT_MILLIGRAM_PER_DECILITRE = BLE_ATT_UUID_16(0x27B1),
  BLE_ATT_UNIT_MILLIMOLE_PER_LITRE = BLE_ATT_UUID_16(0x27B2), BLE_ATT_UNIT_YEAR = BLE_ATT_UUID_16(0x27B3) , BLE_ATT_DECL_PRIMARY_SERVICE = BLE_ATT_UUID_16(0x2800), BLE_ATT_DECL_SECONDARY_SERVICE = BLE_ATT_UUID_16(0x2801),
  BLE_ATT_DECL_INCLUDE = BLE_ATT_UUID_16(0x2802), BLE_ATT_DECL_CHARACTERISTIC = BLE_ATT_UUID_16(0x2803), BLE_ATT_DESC_CHAR_EXT_PROPERTIES = BLE_ATT_UUID_16(0x2900), BLE_ATT_DESC_CHAR_USER_DESCRIPTION = BLE_ATT_UUID_16(0x2901),
  BLE_ATT_DESC_CLIENT_CHAR_CFG = BLE_ATT_UUID_16(0x2902), BLE_ATT_DESC_SERVER_CHAR_CFG = BLE_ATT_UUID_16(0x2903), BLE_ATT_DESC_CHAR_PRES_FORMAT = BLE_ATT_UUID_16(0x2904), BLE_ATT_DESC_CHAR_AGGREGATE_FORMAT = BLE_ATT_UUID_16(0x2905),
  BLE_ATT_DESC_VALID_RANGE = BLE_ATT_UUID_16(0x2906), BLE_ATT_DESC_EXT_REPORT_REF = BLE_ATT_UUID_16(0x2907), BLE_ATT_DESC_REPORT_REF = BLE_ATT_UUID_16(0x2908), BLE_ATT_DESC_ES_CONFIGURATION = BLE_ATT_UUID_16(0x290B),
  BLE_ATT_DESC_ES_MEASUREMENT = BLE_ATT_UUID_16(0x290C), BLE_ATT_DESC_ES_TRIGGER_SETTING = BLE_ATT_UUID_16(0x290D), BLE_ATT_CHAR_DEVICE_NAME = BLE_ATT_UUID_16(0x2A00), BLE_ATT_CHAR_APPEARANCE = BLE_ATT_UUID_16(0x2A01),
  BLE_ATT_CHAR_PRIVACY_FLAG = BLE_ATT_UUID_16(0x2A02), BLE_ATT_CHAR_RECONNECTION_ADDR = BLE_ATT_UUID_16(0x2A03), BLE_ATT_CHAR_PERIPH_PREF_CON_PARAM = BLE_ATT_UUID_16(0x2A04), BLE_ATT_CHAR_SERVICE_CHANGED = BLE_ATT_UUID_16(0x2A05),
  BLE_ATT_CHAR_ALERT_LEVEL = BLE_ATT_UUID_16(0x2A06), BLE_ATT_CHAR_TX_POWER_LEVEL = BLE_ATT_UUID_16(0x2A07), BLE_ATT_CHAR_DATE_TIME = BLE_ATT_UUID_16(0x2A08), BLE_ATT_CHAR_DAY_WEEK = BLE_ATT_UUID_16(0x2A09),
  BLE_ATT_CHAR_DAY_DATE_TIME = BLE_ATT_UUID_16(0x2A0A), BLE_ATT_CHAR_EXACT_TIME_256 = BLE_ATT_UUID_16(0x2A0C), BLE_ATT_CHAR_DST_OFFSET = BLE_ATT_UUID_16(0x2A0D), BLE_ATT_CHAR_TIME_ZONE = BLE_ATT_UUID_16(0x2A0E),
  BLE_ATT_CHAR_LOCAL_TIME_INFO = BLE_ATT_UUID_16(0x2A0F), BLE_ATT_CHAR_TIME_WITH_DST = BLE_ATT_UUID_16(0x2A11), BLE_ATT_CHAR_TIME_ACCURACY = BLE_ATT_UUID_16(0x2A12), BLE_ATT_CHAR_TIME_SOURCE = BLE_ATT_UUID_16(0x2A13),
  BLE_ATT_CHAR_REFERENCE_TIME_INFO = BLE_ATT_UUID_16(0x2A14), BLE_ATT_CHAR_TIME_UPDATE_CNTL_POINT = BLE_ATT_UUID_16(0x2A16), BLE_ATT_CHAR_TIME_UPDATE_STATE = BLE_ATT_UUID_16(0x2A17), BLE_ATT_CHAR_GLUCOSE_MEAS = BLE_ATT_UUID_16(0x2A18),
  BLE_ATT_CHAR_BATTERY_LEVEL = BLE_ATT_UUID_16(0x2A19), BLE_ATT_CHAR_TEMPERATURE_MEAS = BLE_ATT_UUID_16(0x2A1C), BLE_ATT_CHAR_TEMPERATURE_TYPE = BLE_ATT_UUID_16(0x2A1D), BLE_ATT_CHAR_INTERMED_TEMPERATURE = BLE_ATT_UUID_16(0x2A1E),
  BLE_ATT_CHAR_MEAS_INTERVAL = BLE_ATT_UUID_16(0x2A21), BLE_ATT_CHAR_BOOT_KB_IN_REPORT = BLE_ATT_UUID_16(0x2A22), BLE_ATT_CHAR_SYS_ID = BLE_ATT_UUID_16(0x2A23), BLE_ATT_CHAR_MODEL_NB = BLE_ATT_UUID_16(0x2A24),
  BLE_ATT_CHAR_SERIAL_NB = BLE_ATT_UUID_16(0x2A25), BLE_ATT_CHAR_FW_REV = BLE_ATT_UUID_16(0x2A26), BLE_ATT_CHAR_HW_REV = BLE_ATT_UUID_16(0x2A27), BLE_ATT_CHAR_SW_REV = BLE_ATT_UUID_16(0x2A28),
  BLE_ATT_CHAR_MANUF_NAME = BLE_ATT_UUID_16(0x2A29), BLE_ATT_CHAR_IEEE_CERTIF = BLE_ATT_UUID_16(0x2A2A), BLE_ATT_CHAR_CT_TIME = BLE_ATT_UUID_16(0x2A2B), BLE_ATT_CHAR_MAGN_DECLINE = BLE_ATT_UUID_16(0x2A2C),
  BLE_ATT_CHAR_SCAN_REFRESH = BLE_ATT_UUID_16(0x2A31), BLE_ATT_CHAR_BOOT_KB_OUT_REPORT = BLE_ATT_UUID_16(0x2A32), BLE_ATT_CHAR_BOOT_MOUSE_IN_REPORT = BLE_ATT_UUID_16(0x2A33), BLE_ATT_CHAR_GLUCOSE_MEAS_CTX = BLE_ATT_UUID_16(0x2A34),
  BLE_ATT_CHAR_BLOOD_PRESSURE_MEAS = BLE_ATT_UUID_16(0x2A35), BLE_ATT_CHAR_INTERMEDIATE_CUFF_PRESSURE = BLE_ATT_UUID_16(0x2A36), BLE_ATT_CHAR_HEART_RATE_MEAS = BLE_ATT_UUID_16(0x2A37), BLE_ATT_CHAR_BODY_SENSOR_LOCATION = BLE_ATT_UUID_16(0x2A38),
  BLE_ATT_CHAR_HEART_RATE_CNTL_POINT = BLE_ATT_UUID_16(0x2A39), BLE_ATT_CHAR_ALERT_STATUS = BLE_ATT_UUID_16(0x2A3F), BLE_ATT_CHAR_RINGER_CNTL_POINT = BLE_ATT_UUID_16(0x2A40), BLE_ATT_CHAR_RINGER_SETTING = BLE_ATT_UUID_16(0x2A41),
  BLE_ATT_CHAR_ALERT_CAT_ID_BIT_MASK = BLE_ATT_UUID_16(0x2A42), BLE_ATT_CHAR_ALERT_CAT_ID = BLE_ATT_UUID_16(0x2A43), BLE_ATT_CHAR_ALERT_NTF_CTNL_PT = BLE_ATT_UUID_16(0x2A44), BLE_ATT_CHAR_UNREAD_ALERT_STATUS = BLE_ATT_UUID_16(0x2A45),
  BLE_ATT_CHAR_NEW_ALERT = BLE_ATT_UUID_16(0x2A46), BLE_ATT_CHAR_SUP_NEW_ALERT_CAT = BLE_ATT_UUID_16(0x2A47), BLE_ATT_CHAR_SUP_UNREAD_ALERT_CAT = BLE_ATT_UUID_16(0x2A48), BLE_ATT_CHAR_BLOOD_PRESSURE_FEATURE = BLE_ATT_UUID_16(0x2A49),
  BLE_ATT_CHAR_HID_INFO = BLE_ATT_UUID_16(0x2A4A), BLE_ATT_CHAR_REPORT_MAP = BLE_ATT_UUID_16(0x2A4B), BLE_ATT_CHAR_HID_CTNL_PT = BLE_ATT_UUID_16(0x2A4C), BLE_ATT_CHAR_REPORT = BLE_ATT_UUID_16(0x2A4D),
  BLE_ATT_CHAR_PROTOCOL_MODE = BLE_ATT_UUID_16(0x2A4E), BLE_ATT_CHAR_SCAN_INTV_WD = BLE_ATT_UUID_16(0x2A4F), BLE_ATT_CHAR_PNP_ID = BLE_ATT_UUID_16(0x2A50), BLE_ATT_CHAR_GLUCOSE_FEATURE = BLE_ATT_UUID_16(0x2A51),
  BLE_ATT_CHAR_REC_ACCESS_CTRL_PT = BLE_ATT_UUID_16(0x2A52), BLE_ATT_CHAR_RSC_MEAS = BLE_ATT_UUID_16(0x2A53), BLE_ATT_CHAR_RSC_FEAT = BLE_ATT_UUID_16(0x2A54), BLE_ATT_CHAR_SC_CNTL_PT = BLE_ATT_UUID_16(0x2A55),
  BLE_ATT_CHAR_CSC_MEAS = BLE_ATT_UUID_16(0x2A5B), BLE_ATT_CHAR_CSC_FEAT = BLE_ATT_UUID_16(0x2A5C), BLE_ATT_CHAR_SENSOR_LOC = BLE_ATT_UUID_16(0x2A5D), BLE_ATT_CHAR_PLX_SPOT_CHECK_MEASUREMENT_LOC = BLE_ATT_UUID_16(0x2A5E),
  BLE_ATT_CHAR_PLX_CONTINUOUS_MEASUREMENT_LOC = BLE_ATT_UUID_16(0x2A5F), BLE_ATT_CHAR_PLX_FEATURES_LOC = BLE_ATT_UUID_16(0x2A60), BLE_ATT_CHAR_CP_MEAS = BLE_ATT_UUID_16(0x2A63), BLE_ATT_CHAR_CP_VECTOR = BLE_ATT_UUID_16(0x2A64),
  BLE_ATT_CHAR_CP_FEAT = BLE_ATT_UUID_16(0x2A65), BLE_ATT_CHAR_CP_CNTL_PT = BLE_ATT_UUID_16(0x2A66), BLE_ATT_CHAR_LOC_SPEED = BLE_ATT_UUID_16(0x2A67), BLE_ATT_CHAR_NAVIGATION = BLE_ATT_UUID_16(0x2A68),
  BLE_ATT_CHAR_POS_QUALITY = BLE_ATT_UUID_16(0x2A69), BLE_ATT_CHAR_LN_FEAT = BLE_ATT_UUID_16(0x2A6A), BLE_ATT_CHAR_LN_CNTL_PT = BLE_ATT_UUID_16(0x2A6B), BLE_ATT_CHAR_ELEVATION = BLE_ATT_UUID_16(0x2A6C),
  BLE_ATT_CHAR_PRESSURE = BLE_ATT_UUID_16(0x2A6D), BLE_ATT_CHAR_TEMPERATURE = BLE_ATT_UUID_16(0x2A6E), BLE_ATT_CHAR_HUMIDITY = BLE_ATT_UUID_16(0x2A6F), BLE_ATT_CHAR_TRUE_WIND_SPEED = BLE_ATT_UUID_16(0x2A70),
  BLE_ATT_CHAR_TRUE_WIND_DIR = BLE_ATT_UUID_16(0x2A71), BLE_ATT_CHAR_APRNT_WIND_SPEED = BLE_ATT_UUID_16(0x2A72), BLE_ATT_CHAR_APRNT_WIND_DIRECTION = BLE_ATT_UUID_16(0x2A73), BLE_ATT_CHAR_GUST_FACTOR = BLE_ATT_UUID_16(0x2A74),
  BLE_ATT_CHAR_POLLEN_CONC = BLE_ATT_UUID_16(0x2A75), BLE_ATT_CHAR_UV_INDEX = BLE_ATT_UUID_16(0x2A76), BLE_ATT_CHAR_IRRADIANCE = BLE_ATT_UUID_16(0x2A77), BLE_ATT_CHAR_RAINFALL = BLE_ATT_UUID_16(0x2A78),
  BLE_ATT_CHAR_WIND_CHILL = BLE_ATT_UUID_16(0x2A79), BLE_ATT_CHAR_HEAT_INDEX = BLE_ATT_UUID_16(0x2A7A), BLE_ATT_CHAR_DEW_POINT = BLE_ATT_UUID_16(0x2A7B), BLE_ATT_CHAR_DESCRIPTOR_VALUE_CHANGED = BLE_ATT_UUID_16(0x2A7D),
  BLE_ATT_CHAR_AEROBIC_HEART_RATE_LOWER_LIMIT = BLE_ATT_UUID_16(0x2A7E), BLE_ATT_CHAR_AEROBIC_THRESHHOLD = BLE_ATT_UUID_16(0x2A7F), BLE_ATT_CHAR_AGE = BLE_ATT_UUID_16(0x2A80), BLE_ATT_CHAR_ANAEROBIC_HEART_RATE_LOWER_LIMIT = BLE_ATT_UUID_16(0x2A81),
  BLE_ATT_CHAR_ANAEROBIC_HEART_RATE_UPPER_LIMIT = BLE_ATT_UUID_16(0x2A82), BLE_ATT_CHAR_ANAEROBIC_THRESHHOLD = BLE_ATT_UUID_16(0x2A83), BLE_ATT_CHAR_AEROBIC_HEART_RATE_UPPER_LIMIT = BLE_ATT_UUID_16(0x2A84), BLE_ATT_CHAR_DATE_OF_BIRTH = BLE_ATT_UUID_16(0x2A85),
  BLE_ATT_CHAR_DATE_OF_THRESHOLD_ASSESSMENT = BLE_ATT_UUID_16(0x2A86), BLE_ATT_CHAR_EMAIL_ADDRESS = BLE_ATT_UUID_16(0x2A87), BLE_ATT_CHAR_FAT_BURN_HEART_RATE_LOWER_LIMIT = BLE_ATT_UUID_16(0x2A88), BLE_ATT_CHAR_FAT_BURN_HEART_RATE_UPPER_LIMIT = BLE_ATT_UUID_16(0x2A89),
  BLE_ATT_CHAR_FIRST_NAME = BLE_ATT_UUID_16(0x2A8A), BLE_ATT_CHAR_FIVE_ZONE_HEART_RATE_LIMITS = BLE_ATT_UUID_16(0x2A8B), BLE_ATT_CHAR_GENDER = BLE_ATT_UUID_16(0x2A8C), BLE_ATT_CHAR_MAX_HEART_RATE = BLE_ATT_UUID_16(0x2A8D),
  BLE_ATT_CHAR_HEIGHT = BLE_ATT_UUID_16(0x2A8E), BLE_ATT_CHAR_HIP_CIRCUMFERENCE = BLE_ATT_UUID_16(0x2A8F), BLE_ATT_CHAR_LAST_NAME = BLE_ATT_UUID_16(0x2A90), BLE_ATT_CHAR_MAXIMUM_RECOMMENDED_HEART_RATE = BLE_ATT_UUID_16(0x2A91),
  BLE_ATT_CHAR_RESTING_HEART_RATE = BLE_ATT_UUID_16(0x2A92), BLE_ATT_CHAR_SPORT_TYPE_FOR_AEROBIC_AND_ANAEROBIC_THRESHOLDS = BLE_ATT_UUID_16(0x2A93), BLE_ATT_CHAR_THREE_ZONE_HEART_RATE_LIMITS = BLE_ATT_UUID_16(0x2A94), BLE_ATT_CHAR_TWO_ZONE_HEART_RATE_LIMIT = BLE_ATT_UUID_16(0x2A95),
  BLE_ATT_CHAR_VO2_MAX = BLE_ATT_UUID_16(0x2A96), BLE_ATT_CHAR_WAIST_CIRCUMFERENCE = BLE_ATT_UUID_16(0x2A97), BLE_ATT_CHAR_WEIGHT = BLE_ATT_UUID_16(0x2A98), BLE_ATT_CHAR_DATABASE_CHANGE_INCREMENT = BLE_ATT_UUID_16(0x2A99),
  BLE_ATT_CHAR_USER_INDEX = BLE_ATT_UUID_16(0x2A9A), BLE_ATT_CHAR_BODY_COMPOSITION_FEATURE = BLE_ATT_UUID_16(0x2A9B), BLE_ATT_CHAR_BODY_COMPOSITION_MEASUREMENT = BLE_ATT_UUID_16(0x2A9C), BLE_ATT_CHAR_WEIGHT_MEASUREMENT = BLE_ATT_UUID_16(0x2A9D),
  BLE_ATT_CHAR_WEIGHT_SCALE_FEATURE = BLE_ATT_UUID_16(0x2A9E), BLE_ATT_CHAR_USER_CONTROL_POINT = BLE_ATT_UUID_16(0x2A9F), BLE_ATT_CHAR_MAGN_FLUX_2D = BLE_ATT_UUID_16(0x2AA0), BLE_ATT_CHAR_MAGN_FLUX_3D = BLE_ATT_UUID_16(0x2AA1),
  BLE_ATT_CHAR_LANGUAGE = BLE_ATT_UUID_16(0x2AA2), BLE_ATT_CHAR_BAR_PRES_TREND = BLE_ATT_UUID_16(0x2AA3), BLE_ATT_CHAR_CTL_ADDR_RESOL_SUPP = BLE_ATT_UUID_16(0x2AA6), BLE_ATT_CHAR_CGM_MEASUREMENT = BLE_ATT_UUID_16(0x2AA7),
  BLE_ATT_CHAR_CGM_FEATURES = BLE_ATT_UUID_16(0x2AA8), BLE_ATT_CHAR_CGM_STATUS = BLE_ATT_UUID_16(0x2AA9), BLE_ATT_CHAR_CGM_SESSION_START = BLE_ATT_UUID_16(0x2AAA), BLE_ATT_CHAR_CGM_SESSION_RUN = BLE_ATT_UUID_16(0x2AAB),
  BLE_ATT_CHAR_CGM_SPECIFIC_OPS_CTRL_PT = BLE_ATT_UUID_16(0x2AAC), BLE_ATT_CHAR_RSLV_PRIV_ADDR_ONLY = BLE_ATT_UUID_16(0x2AC9), BLE_ATT_CHAR_MESH_PROV_DATA_IN = BLE_ATT_UUID_16(0x2ADB), BLE_ATT_CHAR_MESH_PROV_DATA_OUT = BLE_ATT_UUID_16(0x2ADC),
  BLE_ATT_CHAR_MESH_PROXY_DATA_IN = BLE_ATT_UUID_16(0x2ADD), BLE_ATT_CHAR_MESH_PROXY_DATA_OUT = BLE_ATT_UUID_16(0x2ADE)
}
 Common 16-bit Universal Unique Identifier. More...
 
enum  ble_pres_fmt {
  BLE_ATT_FORMAT_BOOL = 0x01, BLE_ATT_FORMAT_2BIT, BLE_ATT_FORMAT_NIBBLE, BLE_ATT_FORMAT_UINT8,
  BLE_ATT_FORMAT_UINT12, BLE_ATT_FORMAT_UINT16, BLE_ATT_FORMAT_UINT24, BLE_ATT_FORMAT_UINT32,
  BLE_ATT_FORMAT_UINT48, BLE_ATT_FORMAT_UINT64, BLE_ATT_FORMAT_UINT128, BLE_ATT_FORMAT_SINT8,
  BLE_ATT_FORMAT_SINT12, BLE_ATT_FORMAT_SINT16, BLE_ATT_FORMAT_SINT24, BLE_ATT_FORMAT_SINT32,
  BLE_ATT_FORMAT_SINT48, BLE_ATT_FORMAT_SINT64, BLE_ATT_FORMAT_SINT128, BLE_ATT_FORMAT_FLOAT32,
  BLE_ATT_FORMAT_FLOAT64, BLE_ATT_FORMAT_SFLOAT, BLE_ATT_FORMAT_FLOAT, BLE_ATT_FORMAT_DUINT16,
  BLE_ATT_FORMAT_UTF8S, BLE_ATT_FORMAT_UTF16S, BLE_ATT_FORMAT_STRUCT, BLE_ATT_FORMAT_LAST
}
 Format for Characteristic Presentation. More...
 

Detailed Description

BLE ATT.

Enumeration Type Documentation

◆ ble_att_char_prop

Attributes char prop.

Enumerator
ATT_CHAR_PROP_BROADCAST 

Broadcast descriptor present.

ATT_CHAR_PROP_READ 

Read Access Mask.

ATT_CHAR_PROP_WRITE_NO_RSP 

Write Command Enabled attribute Mask.

ATT_CHAR_PROP_WRITE 

Write Request Enabled attribute Mask.

ATT_CHAR_PROP_NOTIFY 

Notification Access Mask.

ATT_CHAR_PROP_INDICATE 

Indication Access Mask.

ATT_CHAR_PROP_WRITE_SIGNED 

Write Signed Enabled attribute Mask.

ATT_CHAR_PROP_EXT 

Extended properties descriptor present.

◆ ble_att_ext_prop

Extended properties bit field

Bit [0-11] : Maximum Attribute Length or Value Offset pointer Bit [12] : Encryption key Size must be 16 bytes Bit [14-13]: UUID Length (0 = 16 bits, 1 = 32 bits, 2 = 128 bits, 3 = RFU) Bit [15] : Trigger Read Indication (0 = Value present in Database, 1 = Value not present in Database)

Enumerator
ATT_EXT_PROP_MAX_LEN 

Maximum Attribute Length.

ATT_EXT_PROP_VAL_OFFSET 

Attribute value Offset.

ATT_EXT_PROP_EKS 

Check Encryption key size Mask.

ATT_EXT_PROP_UUID_LEN 

UUID Length.

ATT_EXT_PROP_RI 

Read trigger Indication.

◆ ble_att_perm

Attributes properties

Bit [0-1] : Read Permission (0 = NO_AUTH, 1 = UNAUTH, 2 = AUTH, 3 = SEC_CON) Bit [2-3] : Write Permission (0 = NO_AUTH, 1 = UNAUTH, 2 = AUTH, 3 = SEC_CON) Bit [4-5] : Indication Permission (0 = NO_AUTH, 1 = UNAUTH, 2 = AUTH, 3 = SEC_CON) Bit [6-7] : Notification Permission (0 = NO_AUTH, 1 = UNAUTH, 2 = AUTH, 3 = SEC_CON)

Bit [8] : Broadcast permission (only relevant for a characteristic value) Bit [9] : Read Request accepted Bit [10] : Write Command accepted Bit [11] : Write Request accepted Bit [12] : Notification support Bit [13] : Indication support Bit [14] : Write Signed accepted Bit [15] : Extended properties present (only relevant for a characteristic value)

◆ ble_att_perm_prop

Attributes permission prop.

Enumerator
ATT_PERM_READ_MASK 

Read Permission Mask.

ATT_PERM_WRITE_MASK 

Write Permission Mask.

ATT_PERM_IND_MASK 

Indication Access Mask.

ATT_PERM_NTF_MASK 

Notification Access Mask.

◆ ble_att_svc_prop

Service properties

Bit [1] : Encryption key Size must be 16 bytes Bit [2-3]: Service Permission (0 = NO_AUTH, 1 = UNAUTH, 2 = AUTH, 3 = Secure Connect) Bit [4] : Disable the service Bit [5-6]: UUID Length (0 = 16 bits, 1 = 32 bits, 2 = 128 bits, 3 = RFU) Bit [7] : Secondary Service (0 = Primary Service, 1 = Secondary Service)

Enumerator
ATT_SVC_PROP_EKS 

Check Encryption key size for service Access.

ATT_SVC_PROP_AUTH 

Service Permission authentication.

ATT_SVC_PROP_DIS 

Disable the service.

ATT_SVC_PROP_UUID_LEN 

Service UUID Length.

ATT_SVC_PROP_SECONDARY 

Service type Secondary.

◆ ble_common_uuid

Common 16-bit Universal Unique Identifier.

Enumerator
BLE_ATT_SVC_GENERIC_ACCESS 

Generic Access Profile.

BLE_ATT_SVC_GENERIC_ATTRIBUTE 

Attribute Profile.

BLE_ATT_SVC_IMMEDIATE_ALERT 

Immediate alert Service.

BLE_ATT_SVC_LINK_LOSS 

Link Loss Service.

BLE_ATT_SVC_TX_POWER 

Tx Power Service.

BLE_ATT_SVC_CURRENT_TIME 

Current Time Service Service.

BLE_ATT_SVC_REF_TIME_UPDATE 

Reference Time Update Service.

BLE_ATT_SVC_NEXT_DST_CHANGE 

Next DST Change Service.

BLE_ATT_SVC_GLUCOSE 

Glucose Service.

BLE_ATT_SVC_HEALTH_THERMOM 

Health Thermometer Service.

BLE_ATT_SVC_DEVICE_INFO 

Device Information Service.

BLE_ATT_SVC_HEART_RATE 

Heart Rate Service.

BLE_ATT_SVC_PHONE_ALERT_STATUS 

Phone Alert Status Service.

BLE_ATT_SVC_BATTERY_SERVICE 

Battery Service.

BLE_ATT_SVC_BLOOD_PRESSURE 

Blood Pressure Service.

BLE_ATT_SVC_ALERT_NTF 

Alert Notification Service.

BLE_ATT_SVC_HID 

HID Service.

BLE_ATT_SVC_SCAN_PARAMETERS 

Scan Parameters Service.

BLE_ATT_SVC_RUNNING_SPEED_CADENCE 

Running Speed and Cadence Service.

BLE_ATT_SVC_CYCLING_SPEED_CADENCE 

Cycling Speed and Cadence Service.

BLE_ATT_SVC_CYCLING_POWER 

Cycling Power Service.

BLE_ATT_SVC_LOCATION_AND_NAVIGATION 

Location and Navigation Service.

BLE_ATT_SVC_ENVIRONMENTAL_SENSING 

Environmental Sensing Service.

BLE_ATT_SVC_BODY_COMPOSITION 

Body Composition Service.

BLE_ATT_SVC_USER_DATA 

User Data Service.

BLE_ATT_SVC_WEIGHT_SCALE 

Weight Scale Service.

BLE_ATT_SVC_BOND_MANAGEMENT 

Bond Management Service.

BLE_ATT_SVC_CONTINUOUS_GLUCOSE_MONITORING 

Continuous Glucose Monitoring Service.

BLE_ATT_SVC_IP_SUPPORT 

Internet Protocol Support Service.

BLE_ATT_SVC_INDOOR_POSITIONING 

Indoor Positioning Service.

BLE_ATT_SVC_PULSE_OXIMETER 

Pulse Oximeter Service.

BLE_ATT_SVC_HTTP_PROXY 

HTTP Proxy Service.

BLE_ATT_SVC_TRANSPORT_DISCOVERY 

Transport Discovery Service.

BLE_ATT_SVC_OBJECT_TRANSFER 

Object Transfer Service.

BLE_ATT_SVC_MESH_PROVISIONING 

Mesh Provisioning Service.

BLE_ATT_SVC_MESH_PROXY 

Mesh Proxy Service.

BLE_ATT_UNIT_UNITLESS 

No defined unit.

BLE_ATT_UNIT_METRE 

Length Unit - Metre.

BLE_ATT_UNIT_KG 

Mass unit - Kilogram.

BLE_ATT_UNIT_SECOND 

Time unit - second.

BLE_ATT_UNIT_AMPERE 

Electric current unit - Ampere.

BLE_ATT_UNIT_KELVIN 

Thermodynamic Temperature unit - Kelvin.

BLE_ATT_UNIT_MOLE 

Amount of substance unit - mole.

BLE_ATT_UNIT_CANDELA 

Luminous intensity unit - candela.

BLE_ATT_UNIT_SQ_METRE 

Area unit - square metres.

BLE_ATT_UNIT_CUBIC_METRE 

Colume unit - cubic metres.

BLE_ATT_UNIT_METRE_PER_SECOND 

Velocity unit - metres per second.

BLE_ATT_UNIT_METRES_PER_SEC_SQ 

Acceleration unit - metres per second squared.

BLE_ATT_UNIT_RECIPROCAL_METRE 

Wavenumber unit - reciprocal metre.

BLE_ATT_UNIT_DENS_KG_PER_CUBIC_METRE 

Density unit - kilogram per cubic metre.

BLE_ATT_UNIT_KG_PER_SQ_METRE 

Surface density unit - kilogram per square metre.

BLE_ATT_UNIT_CUBIC_METRE_PER_KG 

Specific volume unit - cubic metre per kilogram.

BLE_ATT_UNIT_AMPERE_PER_SQ_METRE 

Current density unit - ampere per square metre.

BLE_ATT_UNIT_AMPERE_PER_METRE 

Magnetic field strength unit - Ampere per metre.

BLE_ATT_UNIT_MOLE_PER_CUBIC_METRE 

Amount concentration unit - mole per cubic metre.

BLE_ATT_UNIT_MASS_KG_PER_CUBIC_METRE 

Mass Concentration unit - kilogram per cubic metre.

BLE_ATT_UNIT_CANDELA_PER_SQ_METRE 

Luminance unit - candela per square metre.

BLE_ATT_UNIT_REFRACTIVE_INDEX 

Refractive index unit.

BLE_ATT_UNIT_RELATIVE_PERMEABILITY 

Relative permeability unit.

BLE_ATT_UNIT_RADIAN 

Plane angle unit - radian.

BLE_ATT_UNIT_STERADIAN 

Solid angle unit - steradian.

BLE_ATT_UNIT_HERTZ 

Frequency unit - Hertz.

BLE_ATT_UNIT_NEWTON 

Force unit - Newton.

BLE_ATT_UNIT_PASCAL 

Pressure unit - Pascal.

BLE_ATT_UNIT_JOULE 

Energy unit - Joule.

BLE_ATT_UNIT_WATT 

Power unit - Watt.

BLE_ATT_UNIT_COULOMB 

electric Charge unit - Coulomb

BLE_ATT_UNIT_VOLT 

Electric potential difference - Volt.

BLE_ATT_UNIT_FARAD 

Capacitance unit - Farad.

BLE_ATT_UNIT_OHM 

electric resistance unit - Ohm

BLE_ATT_UNIT_SIEMENS 

Electric conductance - Siemens.

BLE_ATT_UNIT_WEBER 

Magnetic flux unit - Weber.

BLE_ATT_UNIT_TESLA 

Magnetic flux density unit - Tesla.

BLE_ATT_UNIT_HENRY 

Inductance unit - Henry.

BLE_ATT_UNIT_CELSIUS 

Temperature unit - degree Celsius.

BLE_ATT_UNIT_LUMEN 

Luminous flux unit - lumen.

BLE_ATT_UNIT_LUX 

Illuminance unit - lux.

BLE_ATT_UNIT_BECQUEREL 

Activity referred to a radionuclide unit - becquerel.

BLE_ATT_UNIT_GRAY 

Absorbed dose unit - Gray.

BLE_ATT_UNIT_SIEVERT 

Dose equivalent unit - Sievert.

BLE_ATT_UNIT_KATAL 

Catalytic activity unit - Katal.

BLE_ATT_UNIT_PASCAL_SECOND 

Synamic viscosity unit - Pascal second.

BLE_ATT_UNIT_NEWTON_METRE 

Moment of force unit - Newton metre.

BLE_ATT_UNIT_NEWTON_PER_METRE 

surface tension unit - Newton per metre

BLE_ATT_UNIT_RADIAN_PER_SECOND 

Angular velocity unit - radian per second.

BLE_ATT_UNIT_RADIAN_PER_SECOND_SQ 

Angular acceleration unit - radian per second squared.

BLE_ATT_UNIT_WATT_PER_SQ_METRE 

Heat flux density unit - Watt per square metre.

BLE_ATT_UNIT_JOULE_PER_KELVIN 

HEat capacity unit - Joule per Kelvin.

BLE_ATT_UNIT_JOULE_PER_KG_KELVIN 

Specific heat capacity unit - Joule per kilogram kelvin.

BLE_ATT_UNIT_JOULE_PER_KG 

Specific Energy unit - Joule per kilogram.

BLE_ATT_UNIT_WATT_PER_METRE_KELVIN 

Thermal conductivity - Watt per metre Kelvin.

BLE_ATT_UNIT_JOULE_PER_CUBIC_METRE 

Energy Density unit - joule per cubic metre.

BLE_ATT_UNIT_VOLT_PER_METRE 

Electric field strength unit - volt per metre.

BLE_ATT_UNIT_COULOMB_PER_CUBIC_METRE 

Electric charge density unit - coulomb per cubic metre.

BLE_ATT_UNIT_SURF_COULOMB_PER_SQ_METRE 

Surface charge density unit - coulomb per square metre.

BLE_ATT_UNIT_FLUX_COULOMB_PER_SQ_METRE 

Electric flux density unit - coulomb per square metre.

BLE_ATT_UNIT_FARAD_PER_METRE 

Permittivity unit - farad per metre.

BLE_ATT_UNIT_HENRY_PER_METRE 

Permeability unit - henry per metre.

BLE_ATT_UNIT_JOULE_PER_MOLE 

Molar energy unit - joule per mole.

BLE_ATT_UNIT_JOULE_PER_MOLE_KELVIN 

Molar entropy unit - joule per mole kelvin.

BLE_ATT_UNIT_COULOMB_PER_KG 

Exposure unit - coulomb per kilogram.

BLE_ATT_UNIT_GRAY_PER_SECOND 

Absorbed dose rate unit - gray per second.

BLE_ATT_UNIT_WATT_PER_STERADIAN 

Radiant intensity unit - watt per steradian.

BLE_ATT_UNIT_WATT_PER_SQ_METRE_STERADIAN 

Radiance unit - watt per square meter steradian.

BLE_ATT_UNIT_KATAL_PER_CUBIC_METRE 

Catalytic activity concentration unit - katal per cubic metre.

BLE_ATT_UNIT_MINUTE 

Time unit - minute.

BLE_ATT_UNIT_HOUR 

Time unit - hour.

BLE_ATT_UNIT_DAY 

Time unit - day.

BLE_ATT_UNIT_ANGLE_DEGREE 

Plane angle unit - degree.

BLE_ATT_UNIT_ANGLE_MINUTE 

Plane angle unit - minute.

BLE_ATT_UNIT_ANGLE_SECOND 

Plane angle unit - second.

BLE_ATT_UNIT_HECTARE 

Area unit - hectare.

BLE_ATT_UNIT_LITRE 

Volume unit - litre.

BLE_ATT_UNIT_TONNE 

Mass unit - tonne.

BLE_ATT_UNIT_BAR 

Pressure unit - bar.

BLE_ATT_UNIT_MM_MERCURY 

Pressure unit - millimetre of mercury.

BLE_ATT_UNIT_ANGSTROM 

Length unit - angstrom.

BLE_ATT_UNIT_NAUTICAL_MILE 

Length unit - nautical mile.

BLE_ATT_UNIT_BARN 

Area unit - barn.

BLE_ATT_UNIT_KNOT 

Velocity unit - knot.

BLE_ATT_UNIT_NEPER 

Logarithmic radio quantity unit - neper.

BLE_ATT_UNIT_BEL 

Logarithmic radio quantity unit - bel.

BLE_ATT_UNIT_YARD 

Length unit - yard.

BLE_ATT_UNIT_PARSEC 

Length unit - parsec.

BLE_ATT_UNIT_INCH 

length unit - inch

BLE_ATT_UNIT_FOOT 

length unit - foot

BLE_ATT_UNIT_MILE 

length unit - mile

BLE_ATT_UNIT_POUND_FORCE_PER_SQ_INCH 

pressure unit - pound-force per square inch

BLE_ATT_UNIT_KM_PER_HOUR 

velocity unit - kilometre per hour

BLE_ATT_UNIT_MILE_PER_HOUR 

velocity unit - mile per hour

BLE_ATT_UNIT_REVOLUTION_PER_MINUTE 

angular velocity unit - revolution per minute

BLE_ATT_UNIT_GRAM_CALORIE 

energy unit - gram calorie

BLE_ATT_UNIT_KG_CALORIE 

energy unit - kilogram calorie

BLE_ATT_UNIT_KILOWATT_HOUR 

energy unit - kilowatt hour

BLE_ATT_UNIT_FAHRENHEIT 

thermodynamic temperature unit - degree Fahrenheit

BLE_ATT_UNIT_PERCENTAGE 

percentage

BLE_ATT_UNIT_PER_MILLE 

per mille

BLE_ATT_UNIT_BEATS_PER_MINUTE 

period unit - beats per minute)

BLE_ATT_UNIT_AMPERE_HOURS 

electric charge unit - ampere hours

BLE_ATT_UNIT_MILLIGRAM_PER_DECILITRE 

mass density unit - milligram per decilitre

BLE_ATT_UNIT_MILLIMOLE_PER_LITRE 

mass density unit - millimole per litre

BLE_ATT_UNIT_YEAR 

time unit - year

BLE_ATT_DECL_PRIMARY_SERVICE 

Primary service Declaration.

BLE_ATT_DECL_SECONDARY_SERVICE 

Secondary service Declaration.

BLE_ATT_DECL_INCLUDE 

Include Declaration.

BLE_ATT_DECL_CHARACTERISTIC 

Characteristic Declaration.

BLE_ATT_DESC_CHAR_EXT_PROPERTIES 

Characteristic extended properties.

BLE_ATT_DESC_CHAR_USER_DESCRIPTION 

Characteristic user description.

BLE_ATT_DESC_CLIENT_CHAR_CFG 

Client characteristic configuration.

BLE_ATT_DESC_SERVER_CHAR_CFG 

Server characteristic configuration.

BLE_ATT_DESC_CHAR_PRES_FORMAT 

Characteristic Presentation Format.

BLE_ATT_DESC_CHAR_AGGREGATE_FORMAT 

Characteristic Aggregate Format.

BLE_ATT_DESC_VALID_RANGE 

Valid Range.

BLE_ATT_DESC_EXT_REPORT_REF 

External Report Reference.

BLE_ATT_DESC_REPORT_REF 

Report Reference.

BLE_ATT_DESC_ES_CONFIGURATION 

Environmental Sensing Configuration.

BLE_ATT_DESC_ES_MEASUREMENT 

Environmental Sensing Measurement.

BLE_ATT_DESC_ES_TRIGGER_SETTING 

Environmental Sensing Trigger Setting.

BLE_ATT_CHAR_DEVICE_NAME 

Device name.

BLE_ATT_CHAR_APPEARANCE 

Appearance.

BLE_ATT_CHAR_PRIVACY_FLAG 

Privacy flag.

BLE_ATT_CHAR_RECONNECTION_ADDR 

Reconnection address.

BLE_ATT_CHAR_PERIPH_PREF_CON_PARAM 

Peripheral preferred connection parameters.

BLE_ATT_CHAR_SERVICE_CHANGED 

Service handles changed.

BLE_ATT_CHAR_ALERT_LEVEL 

Alert Level characteristic.

BLE_ATT_CHAR_TX_POWER_LEVEL 

Tx Power Level.

BLE_ATT_CHAR_DATE_TIME 

Date Time.

BLE_ATT_CHAR_DAY_WEEK 

Day of Week.

BLE_ATT_CHAR_DAY_DATE_TIME 

Day Date Time.

BLE_ATT_CHAR_EXACT_TIME_256 

Exact time 256.

BLE_ATT_CHAR_DST_OFFSET 

DST Offset.

BLE_ATT_CHAR_TIME_ZONE 

Time zone.

BLE_ATT_CHAR_LOCAL_TIME_INFO 

Local time Information.

BLE_ATT_CHAR_TIME_WITH_DST 

Time with DST.

BLE_ATT_CHAR_TIME_ACCURACY 

Time Accuracy.

BLE_ATT_CHAR_TIME_SOURCE 

Time Source.

BLE_ATT_CHAR_REFERENCE_TIME_INFO 

Reference Time Information.

BLE_ATT_CHAR_TIME_UPDATE_CNTL_POINT 

Time Update Control Point.

BLE_ATT_CHAR_TIME_UPDATE_STATE 

Time Update State.

BLE_ATT_CHAR_GLUCOSE_MEAS 

Glucose Measurement.

BLE_ATT_CHAR_BATTERY_LEVEL 

Battery Level.

BLE_ATT_CHAR_TEMPERATURE_MEAS 

Temperature Measurement.

BLE_ATT_CHAR_TEMPERATURE_TYPE 

Temperature Type.

BLE_ATT_CHAR_INTERMED_TEMPERATURE 

Intermediate Temperature.

BLE_ATT_CHAR_MEAS_INTERVAL 

Measurement Interval.

BLE_ATT_CHAR_BOOT_KB_IN_REPORT 

Boot Keyboard Input Report.

BLE_ATT_CHAR_SYS_ID 

System ID.

BLE_ATT_CHAR_MODEL_NB 

Model Number String.

BLE_ATT_CHAR_SERIAL_NB 

Serial Number String.

BLE_ATT_CHAR_FW_REV 

Firmware Revision String.

BLE_ATT_CHAR_HW_REV 

Hardware revision String.

BLE_ATT_CHAR_SW_REV 

Software Revision String.

BLE_ATT_CHAR_MANUF_NAME 

Manufacturer Name String.

BLE_ATT_CHAR_IEEE_CERTIF 

IEEE Regulatory Certification Data List.

BLE_ATT_CHAR_CT_TIME 

CT Time.

BLE_ATT_CHAR_MAGN_DECLINE 

Magnetic Declination.

BLE_ATT_CHAR_SCAN_REFRESH 

Scan Refresh.

BLE_ATT_CHAR_BOOT_KB_OUT_REPORT 

Boot Keyboard Output Report.

BLE_ATT_CHAR_BOOT_MOUSE_IN_REPORT 

Boot Mouse Input Report.

BLE_ATT_CHAR_GLUCOSE_MEAS_CTX 

Glucose Measurement Context.

BLE_ATT_CHAR_BLOOD_PRESSURE_MEAS 

Blood Pressure Measurement.

BLE_ATT_CHAR_INTERMEDIATE_CUFF_PRESSURE 

Intermediate Cuff Pressure.

BLE_ATT_CHAR_HEART_RATE_MEAS 

Heart Rate Measurement.

BLE_ATT_CHAR_BODY_SENSOR_LOCATION 

Body Sensor Location.

BLE_ATT_CHAR_HEART_RATE_CNTL_POINT 

Heart Rate Control Point.

BLE_ATT_CHAR_ALERT_STATUS 

Alert Status.

BLE_ATT_CHAR_RINGER_CNTL_POINT 

Ringer Control Point.

BLE_ATT_CHAR_RINGER_SETTING 

Ringer Setting.

BLE_ATT_CHAR_ALERT_CAT_ID_BIT_MASK 

Alert Category ID Bit Mask.

BLE_ATT_CHAR_ALERT_CAT_ID 

Alert Category ID.

BLE_ATT_CHAR_ALERT_NTF_CTNL_PT 

Alert Notification Control Point.

BLE_ATT_CHAR_UNREAD_ALERT_STATUS 

Unread Alert Status.

BLE_ATT_CHAR_NEW_ALERT 

New Alert.

BLE_ATT_CHAR_SUP_NEW_ALERT_CAT 

Supported New Alert Category.

BLE_ATT_CHAR_SUP_UNREAD_ALERT_CAT 

Supported Unread Alert Category.

BLE_ATT_CHAR_BLOOD_PRESSURE_FEATURE 

Blood Pressure Feature.

BLE_ATT_CHAR_HID_INFO 

HID Information.

BLE_ATT_CHAR_REPORT_MAP 

Report Map.

BLE_ATT_CHAR_HID_CTNL_PT 

HID Control Point.

BLE_ATT_CHAR_REPORT 

Report.

BLE_ATT_CHAR_PROTOCOL_MODE 

Protocol Mode.

BLE_ATT_CHAR_SCAN_INTV_WD 

Scan Interval Window.

BLE_ATT_CHAR_PNP_ID 

PnP ID.

BLE_ATT_CHAR_GLUCOSE_FEATURE 

Glucose Feature.

BLE_ATT_CHAR_REC_ACCESS_CTRL_PT 

Record access control point.

BLE_ATT_CHAR_RSC_MEAS 

RSC Measurement.

BLE_ATT_CHAR_RSC_FEAT 

RSC Feature.

BLE_ATT_CHAR_SC_CNTL_PT 

SC Control Point.

BLE_ATT_CHAR_CSC_MEAS 

CSC Measurement.

BLE_ATT_CHAR_CSC_FEAT 

CSC Feature.

BLE_ATT_CHAR_SENSOR_LOC 

Sensor Location.

BLE_ATT_CHAR_PLX_SPOT_CHECK_MEASUREMENT_LOC 

PLX Spot-Check Measurement.

BLE_ATT_CHAR_PLX_CONTINUOUS_MEASUREMENT_LOC 

PLX Continuous Measurement.

BLE_ATT_CHAR_PLX_FEATURES_LOC 

PLX Features.

BLE_ATT_CHAR_CP_MEAS 

CP Measurement.

BLE_ATT_CHAR_CP_VECTOR 

CP Vector.

BLE_ATT_CHAR_CP_FEAT 

CP Feature.

BLE_ATT_CHAR_CP_CNTL_PT 

CP Control Point.

BLE_ATT_CHAR_LOC_SPEED 

Location and Speed.

BLE_ATT_CHAR_NAVIGATION 

Navigation.

BLE_ATT_CHAR_POS_QUALITY 

Position Quality.

BLE_ATT_CHAR_LN_FEAT 

LN Feature.

BLE_ATT_CHAR_LN_CNTL_PT 

LN Control Point.

BLE_ATT_CHAR_ELEVATION 

Elevation.

BLE_ATT_CHAR_PRESSURE 

Pressure.

BLE_ATT_CHAR_TEMPERATURE 

Temperature.

BLE_ATT_CHAR_HUMIDITY 

Humidity.

BLE_ATT_CHAR_TRUE_WIND_SPEED 

True Wind Speed.

BLE_ATT_CHAR_TRUE_WIND_DIR 

True Wind Direction.

BLE_ATT_CHAR_APRNT_WIND_SPEED 

Apparent Wind Speed.

BLE_ATT_CHAR_APRNT_WIND_DIRECTION 

Apparent Wind Direction.

BLE_ATT_CHAR_GUST_FACTOR 

Gust Factor.

BLE_ATT_CHAR_POLLEN_CONC 

Pollen Concentration.

BLE_ATT_CHAR_UV_INDEX 

UV Index.

BLE_ATT_CHAR_IRRADIANCE 

Irradiance.

BLE_ATT_CHAR_RAINFALL 

Rainfall.

BLE_ATT_CHAR_WIND_CHILL 

Wind Chill.

BLE_ATT_CHAR_HEAT_INDEX 

Heat Index.

BLE_ATT_CHAR_DEW_POINT 

Dew Point.

BLE_ATT_CHAR_DESCRIPTOR_VALUE_CHANGED 

Descriptor Value Changed.

BLE_ATT_CHAR_AEROBIC_HEART_RATE_LOWER_LIMIT 

Aerobic Heart Rate Lower Limit.

BLE_ATT_CHAR_AEROBIC_THRESHHOLD 

Aerobic Threshhold.

BLE_ATT_CHAR_AGE 

Age.

BLE_ATT_CHAR_ANAEROBIC_HEART_RATE_LOWER_LIMIT 

Anaerobic Heart Rate Lower Limit.

BLE_ATT_CHAR_ANAEROBIC_HEART_RATE_UPPER_LIMIT 

Anaerobic Heart Rate Upper Limit.

BLE_ATT_CHAR_ANAEROBIC_THRESHHOLD 

Anaerobic Threshhold.

BLE_ATT_CHAR_AEROBIC_HEART_RATE_UPPER_LIMIT 

Aerobic Heart Rate Upper Limit.

BLE_ATT_CHAR_DATE_OF_BIRTH 

Date Of Birth.

BLE_ATT_CHAR_DATE_OF_THRESHOLD_ASSESSMENT 

Date Of Threshold Assessment.

BLE_ATT_CHAR_EMAIL_ADDRESS 

Email Address.

BLE_ATT_CHAR_FAT_BURN_HEART_RATE_LOWER_LIMIT 

Fat Burn Heart Rate Lower Limit.

BLE_ATT_CHAR_FAT_BURN_HEART_RATE_UPPER_LIMIT 

Fat Burn Heart Rate Upper Limit.

BLE_ATT_CHAR_FIRST_NAME 

First Name.

BLE_ATT_CHAR_FIVE_ZONE_HEART_RATE_LIMITS 

Five Zone Heart Rate Limits.

BLE_ATT_CHAR_GENDER 

Gender.

BLE_ATT_CHAR_MAX_HEART_RATE 

Max Heart Rate.

BLE_ATT_CHAR_HEIGHT 

Height.

BLE_ATT_CHAR_HIP_CIRCUMFERENCE 

Hip Circumference.

BLE_ATT_CHAR_LAST_NAME 

Last Name.

BLE_ATT_CHAR_MAXIMUM_RECOMMENDED_HEART_RATE 

Maximum Recommended Heart Rate.

BLE_ATT_CHAR_RESTING_HEART_RATE 

Resting Heart Rate.

BLE_ATT_CHAR_SPORT_TYPE_FOR_AEROBIC_AND_ANAEROBIC_THRESHOLDS 

Sport Type For Aerobic And Anaerobic Thresholds.

BLE_ATT_CHAR_THREE_ZONE_HEART_RATE_LIMITS 

Three Zone Heart Rate Limits.

BLE_ATT_CHAR_TWO_ZONE_HEART_RATE_LIMIT 

Two Zone Heart Rate Limit.

BLE_ATT_CHAR_VO2_MAX 

Vo2 Max.

BLE_ATT_CHAR_WAIST_CIRCUMFERENCE 

Waist Circumference.

BLE_ATT_CHAR_WEIGHT 

Weight.

BLE_ATT_CHAR_DATABASE_CHANGE_INCREMENT 

Database Change Increment.

BLE_ATT_CHAR_USER_INDEX 

User Index.

BLE_ATT_CHAR_BODY_COMPOSITION_FEATURE 

Body Composition Feature.

BLE_ATT_CHAR_BODY_COMPOSITION_MEASUREMENT 

Body Composition Measurement.

BLE_ATT_CHAR_WEIGHT_MEASUREMENT 

Weight Measurement.

BLE_ATT_CHAR_WEIGHT_SCALE_FEATURE 

Weight Scale Feature.

BLE_ATT_CHAR_USER_CONTROL_POINT 

User Control Point.

BLE_ATT_CHAR_MAGN_FLUX_2D 

Flux Density - 2D.

BLE_ATT_CHAR_MAGN_FLUX_3D 

Magnetic Flux Density - 3D.

BLE_ATT_CHAR_LANGUAGE 

Language string.

BLE_ATT_CHAR_BAR_PRES_TREND 

Barometric Pressure Trend.

BLE_ATT_CHAR_CTL_ADDR_RESOL_SUPP 

Central Address Resolution Support.

BLE_ATT_CHAR_CGM_MEASUREMENT 

CGM Measurement.

BLE_ATT_CHAR_CGM_FEATURES 

CGM Features.

BLE_ATT_CHAR_CGM_STATUS 

CGM Status.

BLE_ATT_CHAR_CGM_SESSION_START 

CGM Session Start.

BLE_ATT_CHAR_CGM_SESSION_RUN 

CGM Session Run.

BLE_ATT_CHAR_CGM_SPECIFIC_OPS_CTRL_PT 

CGM Specific Ops Control Point.

BLE_ATT_CHAR_RSLV_PRIV_ADDR_ONLY 

Resolvable Private Address only.

BLE_ATT_CHAR_MESH_PROV_DATA_IN 

Mesh Provisioning Data In.

BLE_ATT_CHAR_MESH_PROV_DATA_OUT 

Mesh Provisioning Data Out.

BLE_ATT_CHAR_MESH_PROXY_DATA_IN 

Mesh Proxy Data In.

BLE_ATT_CHAR_MESH_PROXY_DATA_OUT 

Mesh Proxy Data Out.

◆ ble_pres_fmt

Format for Characteristic Presentation.

Enumerator
BLE_ATT_FORMAT_BOOL 

unsigned 1-bit: true or false

BLE_ATT_FORMAT_2BIT 

unsigned 2-bit integer

BLE_ATT_FORMAT_NIBBLE 

unsigned 4-bit integer

BLE_ATT_FORMAT_UINT8 

unsigned 8-bit integer

BLE_ATT_FORMAT_UINT12 

unsigned 12-bit integer

BLE_ATT_FORMAT_UINT16 

unsigned 16-bit integer

BLE_ATT_FORMAT_UINT24 

unsigned 24-bit integer

BLE_ATT_FORMAT_UINT32 

unsigned 32-bit integer

BLE_ATT_FORMAT_UINT48 

unsigned 48-bit integer

BLE_ATT_FORMAT_UINT64 

unsigned 64-bit integer

BLE_ATT_FORMAT_UINT128 

unsigned 128-bit integer

BLE_ATT_FORMAT_SINT8 

signed 8-bit integer

BLE_ATT_FORMAT_SINT12 

signed 12-bit integer

BLE_ATT_FORMAT_SINT16 

signed 16-bit integer

BLE_ATT_FORMAT_SINT24 

signed 24-bit integer

BLE_ATT_FORMAT_SINT32 

signed 32-bit integer

BLE_ATT_FORMAT_SINT48 

signed 48-bit integer

BLE_ATT_FORMAT_SINT64 

signed 64-bit integer

BLE_ATT_FORMAT_SINT128 

signed 128-bit integer

BLE_ATT_FORMAT_FLOAT32 

IEEE-754 32-bit floating point.

BLE_ATT_FORMAT_FLOAT64 

IEEE-754 64-bit floating point.

BLE_ATT_FORMAT_SFLOAT 

IEEE-11073 16-bit SFLOAT.

BLE_ATT_FORMAT_FLOAT 

IEEE-11073 32-bit FLOAT.

BLE_ATT_FORMAT_DUINT16 

IEEE-20601 format.

BLE_ATT_FORMAT_UTF8S 

UTF-8 string.

BLE_ATT_FORMAT_UTF16S 

UTF-16 string.

BLE_ATT_FORMAT_STRUCT 

Opaque structure.

BLE_ATT_FORMAT_LAST 

Last format.