Cordio Stack and Cordio Profiles  r2p3-02rel0

Data Structures

struct  attCfg_t
 ATT run-time configurable parameters. More...
 
struct  attEvt_t
 ATT callback event. More...
 

Typedefs

typedef void(* attCback_t) (attEvt_t *pEvt)
 ATT event callback type. More...
 

ATT Callback Events

Events related to ATT transactions.

enum  {
  ATTC_FIND_INFO_RSP = ATT_CBACK_START,
  ATTC_FIND_BY_TYPE_VALUE_RSP,
  ATTC_READ_BY_TYPE_RSP,
  ATTC_READ_RSP,
  ATTC_READ_LONG_RSP,
  ATTC_READ_MULTIPLE_RSP,
  ATTC_READ_BY_GROUP_TYPE_RSP,
  ATTC_WRITE_RSP,
  ATTC_WRITE_CMD_RSP,
  ATTC_PREPARE_WRITE_RSP,
  ATTC_EXECUTE_WRITE_RSP,
  ATTC_HANDLE_VALUE_NTF,
  ATTC_HANDLE_VALUE_IND,
  ATTS_HANDLE_VALUE_CNF,
  ATTS_CCC_STATE_IND,
  ATT_MTU_UPDATE_IND
}
 ATT client callback events. More...
 
#define ATT_CBACK_START   0x02
 ATT callback event starting value.
 
#define ATT_CBACK_END   ATT_MTU_UPDATE_IND
 ATT callback events. More...
 

ATT Setup Functions

void AttRegister (attCback_t cback)
 Register a callback with ATT. This callback will be used for messages from both ATTC and ATTS. More...
 
void AttConnRegister (dmCback_t cback)
 Register a connection callback with ATT. The callback is typically used to manage the attribute server database. More...
 

ATT Parameter Functions

Functions specific to a connection between 2 devices. Functions may be called by either Client or server.

uint16_t AttGetMtu (dmConnId_t connId)
 Get the attribute protocol MTU of a connection. More...
 

ATT Message Passing Functions

void * AttMsgAlloc (uint16_t len, uint8_t opcode)
 Allocate an ATT message buffer to be sent with the ATT attribute protocol zero-copy APIs. More...
 
void AttMsgFree (void *pMsg, uint8_t opcode)
 Free an ATT message buffer allocated with AttMsgAlloc(). More...
 

ATT PDU Format

ATT PDU defaults and constants

#define ATT_HDR_LEN   1
 Attribute PDU header length.
 
#define ATT_AUTH_SIG_LEN   12
 Authentication signature length.
 
#define ATT_DEFAULT_MTU   23
 Default value of ATT_MTU.
 
#define ATT_MAX_MTU   517
 Maximum value of ATT_MTU.
 
#define ATT_DEFAULT_PAYLOAD_LEN   20
 Default maximum payload length for most PDUs.
 

ATT Maximum Value Parameters

maximum values for ATT attribute length and offset

#define ATT_VALUE_MAX_LEN   512
 Maximum attribute value length.
 
#define ATT_VALUE_MAX_OFFSET   511
 Maximum attribute value offset.
 

ATT Transaction Timeout

Maximum time allowed between transaction request and response.

#define ATT_MAX_TRANS_TIMEOUT   30
 Maximum transaction timeout in seconds.
 

ATT Error Codes

ATT Protocol operation status codes found in PDUs

#define ATT_SUCCESS   0x00
 Operation successful.
 
#define ATT_ERR_HANDLE   0x01
 Invalid handle.
 
#define ATT_ERR_READ   0x02
 Read not permitted.
 
#define ATT_ERR_WRITE   0x03
 Write not permitted.
 
#define ATT_ERR_INVALID_PDU   0x04
 Invalid pdu.
 
#define ATT_ERR_AUTH   0x05
 Insufficient authentication.
 
#define ATT_ERR_NOT_SUP   0x06
 Request not supported.
 
#define ATT_ERR_OFFSET   0x07
 Invalid offset.
 
#define ATT_ERR_AUTHOR   0x08
 Insufficient authorization.
 
#define ATT_ERR_QUEUE_FULL   0x09
 Prepare queue full.
 
#define ATT_ERR_NOT_FOUND   0x0A
 Attribute not found.
 
#define ATT_ERR_NOT_LONG   0x0B
 Attribute not long.
 
#define ATT_ERR_KEY_SIZE   0x0C
 Insufficient encryption key size.
 
#define ATT_ERR_LENGTH   0x0D
 Invalid attribute value length.
 
#define ATT_ERR_UNLIKELY   0x0E
 Other unlikely error.
 
#define ATT_ERR_ENC   0x0F
 Insufficient encryption.
 
#define ATT_ERR_GROUP_TYPE   0x10
 Unsupported group type.
 
#define ATT_ERR_RESOURCES   0x11
 Insufficient resources.
 
#define ATT_ERR_CCCD   0xFD
 CCCD improperly configured.
 
#define ATT_ERR_IN_PROGRESS   0xFE
 Procedure already in progress.
 
#define ATT_ERR_RANGE   0xFF
 Value out of range.
 

Proprietary Internal Error Codes

These codes may be sent to application but are not present in any ATT PDU.

#define ATT_ERR_MEMORY   0x70
 Out of memory.
 
#define ATT_ERR_TIMEOUT   0x71
 Transaction timeout.
 
#define ATT_ERR_OVERFLOW   0x72
 Transaction overflow.
 
#define ATT_ERR_INVALID_RSP   0x73
 Invalid response PDU.
 
#define ATT_ERR_CANCELLED   0x74
 Request cancelled.
 
#define ATT_ERR_UNDEFINED   0x75
 Other undefined error.
 
#define ATT_ERR_REQ_NOT_FOUND   0x76
 Required characteristic not found.
 
#define ATT_ERR_MTU_EXCEEDED   0x77
 Attribute PDU length exceeded MTU size.
 
#define ATT_CONTINUING   0x78
 Procedure continuing.
 

ATT Application Error Codes

These codes may be sent to application but are not present in any ATT PDU.

#define ATT_ERR_VALUE_RANGE   0x80
 Value out of range.
 

ATT HCI Error Status

#define ATT_HCI_ERR_BASE   0x20
 Base value for HCI error status values passed through ATT. Since the values of HCI and ATT error codes overlap, the constant ATT_HCI_ERR_BASE is added to HCI error codes before being passed through ATT. See HCI_SUCCESS for HCI error code values.
 

ATT PDU Types

PDU Types for all possible over-the-air ATT operations.

#define ATT_PDU_ERR_RSP   0x01
 Error response.
 
#define ATT_PDU_MTU_REQ   0x02
 Exchange mtu request.
 
#define ATT_PDU_MTU_RSP   0x03
 Exchange mtu response.
 
#define ATT_PDU_FIND_INFO_REQ   0x04
 Find information request.
 
#define ATT_PDU_FIND_INFO_RSP   0x05
 Find information response.
 
#define ATT_PDU_FIND_TYPE_REQ   0x06
 Find by type value request.
 
#define ATT_PDU_FIND_TYPE_RSP   0x07
 Find by type value response.
 
#define ATT_PDU_READ_TYPE_REQ   0x08
 Read by type request.
 
#define ATT_PDU_READ_TYPE_RSP   0x09
 Read by type response.
 
#define ATT_PDU_READ_REQ   0x0A
 Read request.
 
#define ATT_PDU_READ_RSP   0x0B
 Read response.
 
#define ATT_PDU_READ_BLOB_REQ   0x0C
 Read blob request.
 
#define ATT_PDU_READ_BLOB_RSP   0x0D
 Read blob response.
 
#define ATT_PDU_READ_MULT_REQ   0x0E
 Read multiple request.
 
#define ATT_PDU_READ_MULT_RSP   0x0F
 Read multiple response.
 
#define ATT_PDU_READ_GROUP_TYPE_REQ   0x10
 Read by group type request.
 
#define ATT_PDU_READ_GROUP_TYPE_RSP   0x11
 Read by group type response.
 
#define ATT_PDU_WRITE_REQ   0x12
 Write request.
 
#define ATT_PDU_WRITE_RSP   0x13
 Write response.
 
#define ATT_PDU_WRITE_CMD   0x52
 Write command.
 
#define ATT_PDU_SIGNED_WRITE_CMD   0xD2
 Signed write command.
 
#define ATT_PDU_PREP_WRITE_REQ   0x16
 Prepare write request.
 
#define ATT_PDU_PREP_WRITE_RSP   0x17
 Prepare write response.
 
#define ATT_PDU_EXEC_WRITE_REQ   0x18
 Execute write request.
 
#define ATT_PDU_EXEC_WRITE_RSP   0x19
 Execute write response.
 
#define ATT_PDU_VALUE_NTF   0x1B
 Handle value notification.
 
#define ATT_PDU_VALUE_IND   0x1D
 Handle value indication.
 
#define ATT_PDU_VALUE_CNF   0x1E
 Handle value confirmation.
 
#define ATT_PDU_MAX   0x1F
 PDU Maximum.
 

ATT PDU Length Fields

Length constants of PDU fixed length fields

#define ATT_ERR_RSP_LEN   5
 Error response length.
 
#define ATT_MTU_REQ_LEN   3
 MTU request length.
 
#define ATT_MTU_RSP_LEN   3
 MTU response length.
 
#define ATT_FIND_INFO_REQ_LEN   5
 Find information request length.
 
#define ATT_FIND_INFO_RSP_LEN   2
 Find information response length.
 
#define ATT_FIND_TYPE_REQ_LEN   7
 Find type request length.
 
#define ATT_FIND_TYPE_RSP_LEN   1
 Find type response length.
 
#define ATT_READ_TYPE_REQ_LEN   5
 Read type request length.
 
#define ATT_READ_TYPE_RSP_LEN   2
 Read type response length.
 
#define ATT_READ_REQ_LEN   3
 Read request length.
 
#define ATT_READ_RSP_LEN   1
 Read response length.
 
#define ATT_READ_BLOB_REQ_LEN   5
 Read blob request legnth.
 
#define ATT_READ_BLOB_RSP_LEN   1
 Read blob response length.
 
#define ATT_READ_MULT_REQ_LEN   1
 Read multiple request length.
 
#define ATT_READ_MULT_RSP_LEN   1
 Read multiple response length.
 
#define ATT_READ_GROUP_TYPE_REQ_LEN   5
 Read group type request length.
 
#define ATT_READ_GROUP_TYPE_RSP_LEN   2
 Read group type response length.
 
#define ATT_WRITE_REQ_LEN   3
 Write request length.
 
#define ATT_WRITE_RSP_LEN   1
 Write response length.
 
#define ATT_WRITE_CMD_LEN   3
 Write command length.
 
#define ATT_SIGNED_WRITE_CMD_LEN   (ATT_WRITE_CMD_LEN + ATT_AUTH_SIG_LEN)
 Signed write command length.
 
#define ATT_PREP_WRITE_REQ_LEN   5
 Prepared write command length.
 
#define ATT_PREP_WRITE_RSP_LEN   5
 Prepared write response length.
 
#define ATT_EXEC_WRITE_REQ_LEN   2
 Execute write request length.
 
#define ATT_EXEC_WRITE_RSP_LEN   1
 Execute write response length.
 
#define ATT_VALUE_NTF_LEN   3
 Value notification length.
 
#define ATT_VALUE_IND_LEN   3
 Value indication length.
 
#define ATT_VALUE_CNF_LEN   1
 Value confirmation length.
 

ATT Find Information Response Format

#define ATT_FIND_HANDLE_16_UUID   0x01
 Handle and 16 bit UUID.
 
#define ATT_FIND_HANDLE_128_UUID   0x02
 Handle and 128 bit UUID.
 

ATT Execute Write Request Flags

#define ATT_EXEC_WRITE_CANCEL   0x00
 Cancel all prepared writes.
 
#define ATT_EXEC_WRITE_ALL   0x01
 Write all pending prepared writes.
 

ATT PDU Masks

#define ATT_PDU_MASK_SERVER   0x01
 Server bit mask.
 
#define ATT_PDU_MASK_COMMAND   0x40
 Command bit mask.
 
#define ATT_PDU_MASK_SIGNED   0x80
 Auth signature bit mask.
 

ATT Handle Constants

Invalid, minimum and maximum handle values.

#define ATT_HANDLE_NONE   0x0000
 Handle none.
 
#define ATT_HANDLE_START   0x0001
 Handle start.
 
#define ATT_HANDLE_MAX   0xFFFF
 Handle max.
 

ATT UUID Lengths

#define ATT_NO_UUID_LEN   0
 Length when no UUID is present ;-)
 
#define ATT_16_UUID_LEN   2
 Length in bytes of a 16 bit UUID.
 
#define ATT_128_UUID_LEN   16
 Length in bytes of a 128 bit UUID.
 

GATT Characteristic Properties

Properties for how a characteristic may be interacted with through the ATT Protocol.

#define ATT_PROP_BROADCAST   0x01
 Permit broadcasts.
 
#define ATT_PROP_READ   0x02
 Permit reads.
 
#define ATT_PROP_WRITE_NO_RSP   0x04
 Permit writes without response.
 
#define ATT_PROP_WRITE   0x08
 Permit writes with response.
 
#define ATT_PROP_NOTIFY   0x10
 Permit notifications.
 
#define ATT_PROP_INDICATE   0x20
 Permit indications.
 
#define ATT_PROP_AUTHENTICATED   0x40
 Permit signed writes.
 
#define ATT_PROP_EXTENDED   0x80
 More properties defined in extended properties.
 

GATT Characteristic Extended Properties

#define ATT_EXT_PROP_RELIABLE_WRITE   0x0001
 Permit reliable writes.
 
#define ATT_EXT_PROP_WRITEABLE_AUX   0x0002
 Permit write to characteristic descriptor.
 

GATT Client Charactertic Configuration

Configures a characteristic to send notifications or indications, if applicable.

#define ATT_CLIENT_CFG_NOTIFY   0x0001
 Notify the value.
 
#define ATT_CLIENT_CFG_INDICATE   0x0002
 Indicate the value.
 

GATT Server Characteristic Configuration

#define ATT_SERVER_CFG_BROADCAST   0x0001
 Broadcast the value.
 

GATT Characteristic Format

GATT Format descriptor values

#define ATT_FORMAT_BOOLEAN   0x01
 Boolean.
 
#define ATT_FORMAT_2BIT   0x02
 Unsigned 2 bit integer.
 
#define ATT_FORMAT_NIBBLE   0x03
 Unsigned 4 bit integer.
 
#define ATT_FORMAT_UINT8   0x04
 Unsigned 8 bit integer.
 
#define ATT_FORMAT_UINT12   0x05
 Unsigned 12 bit integer.
 
#define ATT_FORMAT_UINT16   0x06
 Unsigned 16 bit integer.
 
#define ATT_FORMAT_UINT24   0x07
 Unsigned 24 bit integer.
 
#define ATT_FORMAT_UINT32   0x08
 Unsigned 32 bit integer.
 
#define ATT_FORMAT_UINT48   0x09
 Unsigned 48 bit integer.
 
#define ATT_FORMAT_UINT64   0x0A
 Unsigned 64 bit integer.
 
#define ATT_FORMAT_UINT128   0x0B
 Unsigned 128 bit integer.
 
#define ATT_FORMAT_SINT8   0x0C
 Signed 8 bit integer.
 
#define ATT_FORMAT_SINT12   0x0D
 Signed 12 bit integer.
 
#define ATT_FORMAT_SINT16   0x0E
 Signed 16 bit integer.
 
#define ATT_FORMAT_SINT24   0x0F
 Signed 24 bit integer.
 
#define ATT_FORMAT_SINT32   0x10
 Signed 32 bit integer.
 
#define ATT_FORMAT_SINT48   0x11
 Signed 48 bit integer.
 
#define ATT_FORMAT_SINT64   0x12
 Signed 64 bit integer.
 
#define ATT_FORMAT_SINT128   0x13
 Signed 128 bit integer.
 
#define ATT_FORMAT_FLOAT32   0x14
 IEEE-754 32 bit floating point.
 
#define ATT_FORMAT_FLOAT64   0x15
 IEEE-754 64 bit floating point.
 
#define ATT_FORMAT_SFLOAT   0x16
 IEEE-11073 16 bit SFLOAT.
 
#define ATT_FORMAT_FLOAT   0x17
 IEEE-11073 32 bit FLOAT.
 
#define ATT_FORMAT_DUINT16   0x18
 IEEE-20601 format.
 
#define ATT_FORMAT_UTF8   0x19
 UTF-8 string.
 
#define ATT_FORMAT_UTF16   0x1A
 UTF-16 string.
 
#define ATT_FORMAT_STRUCT   0x1B
 Opaque structure.
 

ATT Service UUIDs

Defined BLE Service UUID constants.

#define ATT_UUID_GAP_SERVICE   0x1800
 Generic Access Profile Service.
 
#define ATT_UUID_GATT_SERVICE   0x1801
 Generic Attribute Profile Service.
 
#define ATT_UUID_IMMEDIATE_ALERT_SERVICE   0x1802
 Immediate Alert Service.
 
#define ATT_UUID_LINK_LOSS_SERVICE   0x1803
 Link Loss Service.
 
#define ATT_UUID_TX_POWER_SERVICE   0x1804
 Tx Power Service.
 
#define ATT_UUID_CURRENT_TIME_SERVICE   0x1805
 Current Time Service.
 
#define ATT_UUID_REF_TIME_UPDATE_SERVICE   0x1806
 Reference Time Update Service.
 
#define ATT_UUID_DST_CHANGE_SERVICE   0x1807
 Next DST Change Service.
 
#define ATT_UUID_GLUCOSE_SERVICE   0x1808
 Glucose Service.
 
#define ATT_UUID_HEALTH_THERM_SERVICE   0x1809
 Health Thermometer Service.
 
#define ATT_UUID_DEVICE_INFO_SERVICE   0x180A
 Device Information Service.
 
#define ATT_UUID_NETWORK_AVAIL_SERVICE   0x180B
 Network Availability Service.
 
#define ATT_UUID_WATCHDOG_SERVICE   0x180C
 Watchdog Service.
 
#define ATT_UUID_HEART_RATE_SERVICE   0x180D
 Heart Rate Service.
 
#define ATT_UUID_PHONE_ALERT_SERVICE   0x180E
 Phone Alert Status Service.
 
#define ATT_UUID_BATTERY_SERVICE   0x180F
 Battery Service.
 
#define ATT_UUID_BLOOD_PRESSURE_SERVICE   0x1810
 Blood Pressure Service.
 
#define ATT_UUID_ALERT_NOTIF_SERVICE   0x1811
 Alert Notification Service.
 
#define ATT_UUID_HID_SERVICE   0x1812
 Human Interface Device Service.
 
#define ATT_UUID_SCAN_PARAM_SERVICE   0x1813
 Scan Parameter Service.
 
#define ATT_UUID_RUNNING_SPEED_SERVICE   0x1814
 Running Speed Service.
 
#define ATT_UUID_CYCLING_SPEED_SERVICE   0x1816
 Cycling Speed Service.
 
#define ATT_UUID_CYCLING_POWER_SERVICE   0x1818
 Cycling Power Service.
 
#define ATT_UUID_USER_DATA_SERVICE   0x181C
 User Data Service.
 
#define ATT_UUID_WEIGHT_SCALE_SERVICE   0x181D
 Weight Scale Service.
 
#define ATT_UUID_IP_SUPPORT_SERVICE   0x1820
 IP Support Service.
 
#define ATT_UUID_PULSE_OXIMITER_SERVICE   0x1822
 Pulse Oximeter Service.
 

GATT UUIDs

BLE Defined UUIDs of GATT Service components

#define ATT_UUID_PRIMARY_SERVICE   0x2800
 Primary Service.
 
#define ATT_UUID_SECONDARY_SERVICE   0x2801
 Secondary Service.
 
#define ATT_UUID_INCLUDE   0x2802
 Include.
 
#define ATT_UUID_CHARACTERISTIC   0x2803
 Characteristic.
 

GATT Characteristic Descriptor UUIDs

BLE Defined UUIDs of Characteristic Descriptors

#define ATT_UUID_CHARACTERISTIC_EXT   0x2900
 Characteristic Extended Properties.
 
#define ATT_UUID_CHAR_USER_DESC   0x2901
 Characteristic User Description.
 
#define ATT_UUID_CLIENT_CHAR_CONFIG   0x2902
 Client Characteristic Configuration.
 
#define ATT_UUID_SERVER_CHAR_CONFIG   0x2903
 Server Characteristic Configuration.
 
#define ATT_UUID_CHAR_PRES_FORMAT   0x2904
 Characteristic Presentation Format.
 
#define ATT_UUID_AGGREGATE_FORMAT   0x2905
 Characteristic Aggregate Format.
 
#define ATT_UUID_VALID_RANGE   0x2906
 Valid Range.
 
#define ATT_UUID_HID_EXT_REPORT_MAPPING   0x2907
 HID External Report ID Mapping.
 
#define ATT_UUID_HID_REPORT_ID_MAPPING   0x2908
 HID Report ID Mapping.
 

GATT Characistic UUIDs

BLE Defined UUIDs of Characeristics

#define ATT_UUID_DEVICE_NAME   0x2A00
 Device Name.
 
#define ATT_UUID_APPEARANCE   0x2A01
 Appearance.
 
#define ATT_UUID_PERIPH_PRIVACY_FLAG   0x2A02
 Peripheral Privacy Flag.
 
#define ATT_UUID_RECONN_ADDR   0x2A03
 Reconnection Address.
 
#define ATT_UUID_PREF_CONN_PARAM   0x2A04
 Peripheral Preferred Connection Parameters.
 
#define ATT_UUID_SERVICE_CHANGED   0x2A05
 Service Changed.
 
#define ATT_UUID_ALERT_LEVEL   0x2A06
 Alert Level.
 
#define ATT_UUID_TX_POWER_LEVEL   0x2A07
 Tx Power Level.
 
#define ATT_UUID_DATE_TIME   0x2A08
 Date Time.
 
#define ATT_UUID_DAY_OF_WEEK   0x2A09
 Day of Week.
 
#define ATT_UUID_DAY_DATE_TIME   0x2A0A
 Day Date Time.
 
#define ATT_UUID_EXACT_TIME_100   0x2A0B
 Exact Time 100.
 
#define ATT_UUID_EXACT_TIME_256   0x2A0C
 Exact Time 256.
 
#define ATT_UUID_DST_OFFSET   0x2A0D
 DST Offset.
 
#define ATT_UUID_TIME_ZONE   0x2A0E
 Time Zone.
 
#define ATT_UUID_LOCAL_TIME_INFO   0x2A0F
 Local Time Information.
 
#define ATT_UUID_SECONDARY_TIME_ZONE   0x2A10
 Secondary Time Zone.
 
#define ATT_UUID_TIME_WITH_DST   0x2A11
 Time with DST.
 
#define ATT_UUID_TIME_ACCURACY   0x2A12
 Time Accuracy.
 
#define ATT_UUID_TIME_SOURCE   0x2A13
 Time Source.
 
#define ATT_UUID_REFERENCE_TIME_INFO   0x2A14
 Reference Time Information.
 
#define ATT_UUID_TIME_BROADCAST   0x2A15
 Time Broadcast.
 
#define ATT_UUID_TIME_UPDATE_CP   0x2A16
 Time Update Control Point.
 
#define ATT_UUID_TIME_UPDATE_STATE   0x2A17
 Time Update State.
 
#define ATT_UUID_GLUCOSE_MEAS   0x2A18
 Glucose Measurement.
 
#define ATT_UUID_BATTERY_LEVEL   0x2A19
 Battery Level.
 
#define ATT_UUID_BATTERY_POWER_STATE   0x2A1A
 Battery Power State.
 
#define ATT_UUID_BATTERY_LEVEL_STATE   0x2A1B
 Battery Level State.
 
#define ATT_UUID_TEMP_MEAS   0x2A1C
 Temperature Measurement.
 
#define ATT_UUID_TEMP_TYPE   0x2A1D
 Temperature Type.
 
#define ATT_UUID_INTERMEDIATE_TEMP   0x2A1E
 Intermediate Temperature.
 
#define ATT_UUID_TEMP_C   0x2A1F
 Temperature Celsius.
 
#define ATT_UUID_TEMP_F   0x2A20
 Temperature Fahrenheit.
 
#define ATT_UUID_MEAS_INTERVAL   0x2A21
 Measurement Interval.
 
#define ATT_UUID_HID_BOOT_KEYBOARD_IN   0x2A22
 HID Boot Keyboard In.
 
#define ATT_UUID_SYSTEM_ID   0x2A23
 System ID.
 
#define ATT_UUID_MODEL_NUMBER   0x2A24
 Model Number String.
 
#define ATT_UUID_SERIAL_NUMBER   0x2A25
 Serial Number String.
 
#define ATT_UUID_FIRMWARE_REV   0x2A26
 Firmware Revision String.
 
#define ATT_UUID_HARDWARE_REV   0x2A27
 Hardware Revision String.
 
#define ATT_UUID_SOFTWARE_REV   0x2A28
 Software Revision String.
 
#define ATT_UUID_MANUFACTURER_NAME   0x2A29
 Manufacturer Name String.
 
#define ATT_UUID_11073_CERT_DATA   0x2A2A
 IEEE 11073-20601 Regulatory Certification Data List.
 
#define ATT_UUID_CURRENT_TIME   0x2A2B
 Current Time.
 
#define ATT_UUID_ELEVATION   0x2A2C
 Elevation.
 
#define ATT_UUID_LATITUDE   0x2A2D
 Latitude.
 
#define ATT_UUID_LONGITUDE   0x2A2E
 Longitude.
 
#define ATT_UUID_POSITION_2D   0x2A2F
 Position 2D.
 
#define ATT_UUID_POSITION_3D   0x2A30
 Position 3D.
 
#define ATT_UUID_VENDOR_ID   0x2A31
 Vendor ID.
 
#define ATT_UUID_HID_BOOT_KEYBOARD_OUT   0x2A32
 HID Boot Keyboard Out.
 
#define ATT_UUID_HID_BOOT_MOUSE_IN   0x2A33
 HID Boot Mouse In.
 
#define ATT_UUID_GLUCOSE_MEAS_CONTEXT   0x2A34
 Glucose Measurement Context.
 
#define ATT_UUID_BP_MEAS   0x2A35
 Blood Pressure Measurement.
 
#define ATT_UUID_INTERMEDIATE_BP   0x2A36
 Intermediate Cuff Pressure.
 
#define ATT_UUID_HR_MEAS   0x2A37
 Heart Rate Measurement.
 
#define ATT_UUID_HR_SENSOR_LOC   0x2A38
 Body Sensor Location.
 
#define ATT_UUID_HR_CP   0x2A39
 Heart Rate Control Point.
 
#define ATT_UUID_REMOVABLE   0x2A3A
 Removable.
 
#define ATT_UUID_SERVICE_REQ   0x2A3B
 Service Required.
 
#define ATT_UUID_SCI_TEMP_C   0x2A3C
 Scientific Temperature in Celsius.
 
#define ATT_UUID_STRING   0x2A3D
 String.
 
#define ATT_UUID_NETWORK_AVAIL   0x2A3E
 Network Availability.
 
#define ATT_UUID_ALERT_STATUS   0x2A3F
 Alert Status.
 
#define ATT_UUID_RINGER_CP   0x2A40
 Ringer Control Point.
 
#define ATT_UUID_RINGER_SETTING   0x2A41
 Ringer Setting.
 
#define ATT_UUID_ALERT_CAT_ID_MASK   0x2A42
 Alert Category ID Bit Mask.
 
#define ATT_UUID_ALERT_CAT_ID   0x2A43
 Alert Category ID.
 
#define ATT_UUID_ALERT_NOTIF_CP   0x2A44
 Alert Notification Control Point.
 
#define ATT_UUID_UNREAD_ALERT_STATUS   0x2A45
 Unread Alert Status.
 
#define ATT_UUID_NEW_ALERT   0x2A46
 New Alert.
 
#define ATT_UUID_SUP_NEW_ALERT_CAT   0x2A47
 Supported New Alert Category.
 
#define ATT_UUID_SUP_UNREAD_ALERT_CAT   0x2A48
 Supported Unread Alert Category.
 
#define ATT_UUID_BP_FEATURE   0x2A49
 Blood Pressure Feature.
 
#define ATT_UUID_HID_INFORMATION   0x2A4A
 HID Information.
 
#define ATT_UUID_HID_REPORT_MAP   0x2A4B
 HID Report Map.
 
#define ATT_UUID_HID_CONTROL_POINT   0x2A4C
 HID Control Point.
 
#define ATT_UUID_HID_REPORT   0x2A4D
 HID Report.
 
#define ATT_UUID_HID_PROTOCOL_MODE   0x2A4E
 HID Protocol Mode.
 
#define ATT_UUID_SCAN_INT_WIND   0x2A4F
 Scan Interval Window.
 
#define ATT_UUID_PNP_ID   0x2A50
 PnP ID.
 
#define ATT_UUID_GLUCOSE_FEATURE   0x2A51
 Glucose Feature.
 
#define ATT_UUID_RACP   0x2A52
 Record Access Control Point.
 
#define ATT_UUID_CAR   0x2AA6
 Central Address Resolution.
 
#define ATT_UUID_RUNNING_SPEED_FEATURE   0x2A54
 Running Speed Feature.
 
#define ATT_UUID_RUNNING_SPEED_MEASUREMENT   0x2A53
 Running Speed Measurement.
 
#define ATT_UUID_PULSE_OX_FEATURES   0x2A60
 Pulse Oximeter Features.
 
#define ATT_UUID_PULSE_OX_SPOT_CHECK   0x2A5E
 Pulse Oximeter Features.
 
#define ATT_UUID_PULSE_OX_CONTINUOUS   0x2A5F
 Pulse Oximeter Features.
 
#define ATT_UUID_CYCLING_POWER_FEATURE   0x2A65
 Cycling Power Feature.
 
#define ATT_UUID_CYCLING_POWER_MEASUREMENT   0x2A63
 Cycling Power Measurement.
 
#define ATT_UUID_CYCLING_SPEED_FEATURE   0x2A5C
 Cycling Speed Feature.
 
#define ATT_UUID_CYCLING_SPEED_MEASUREMENT   0x2A5B
 Cycling Speed Measurement.
 
#define ATT_UUID_SENSOR_LOCATION   0x2A5D
 Sensor Location.
 
#define ATT_UUID_DB_CHANGE_INCREMENT   0x2A99
 Database Change Increment.
 
#define ATT_UUID_USER_INDEX   0x2A9A
 User Index.
 
#define ATT_UUID_WEIGHT_MEAS   0x2A9D
 Weight Measurement.
 
#define ATT_UUID_WEIGHT_SCALE_FEATURE   0x2A9E
 Weight Scale Feature.
 
#define ATT_UUID_USER_CONTROL_POINT   0x2A9F
 User Control Point.
 
#define ATT_UUID_RPAO   0x2AC9
 Resolvable Prviate Address Only.
 

GATT Unit UUIDs

BLE Defined GATT Unit UUIDs.

#define ATT_UUID_UNITLESS   0x2700
 unitless
 
#define ATT_UUID_LENGTH_M   0x2701
 length metre
 
#define ATT_UUID_MASS_KG   0x2702
 mass kilogram
 
#define ATT_UUID_TIME_SEC   0x2703
 time second
 
#define ATT_UUID_ELECTRIC_CURRENT_AMP   0x2704
 electric current ampere
 
#define ATT_UUID_THERMO_TEMP_K   0x2705
 thermodynamic temperature kelvin
 
#define ATT_UUID_AMOUNT_OF_SUBSTANCE_MOLE   0x2706
 amount of substance mole
 
#define ATT_UUID_LUMINOUS_INTENSITY_CAND   0x2707
 luminous intensity candela
 
#define ATT_UUID_AREA_SQ_M   0x2710
 area square metres
 
#define ATT_UUID_VOLUME_CU_M   0x2711
 volume cubic metres
 
#define ATT_UUID_VELOCITY_MPS   0x2712
 velocity metres per second
 
#define ATT_UUID_ACCELERATION_MPS_SQ   0x2713
 acceleration metres per second squared
 
#define ATT_UUID_WAVENUMBER_RECIPROCAL_M   0x2714
 wavenumber reciprocal metre
 
#define ATT_UUID_DENSITY_KG_PER_CU_M   0x2715
 density kilogram per cubic metre
 
#define ATT_UUID_SURFACE_DENS_KG_PER_SQ_M   0x2716
 surface density kilogram per square metre
 
#define ATT_UUID_SPECIFIC_VOL_CU_M_PER_KG   0x2717
 specific volume cubic metre per kilogram
 
#define ATT_UUID_CURRENT_DENS_AMP_PER_SQ_M   0x2718
 current density ampere per square metre
 
#define ATT_UUID_MAG_FIELD_STR_AMP_PER_M   0x2719
 magnetic field strength ampere per metre
 
#define ATT_UUID_AMOUNT_CONC_MOLE_PER_CU_M   0x271A
 amount concentration mole per cubic metre
 
#define ATT_UUID_MASS_CONC_KG_PER_CU_M   0x271B
 mass concentration kilogram per cubic metre
 
#define ATT_UUID_LUM_CAND_PER_SQ_M   0x271C
 luminance candela per square metre
 
#define ATT_UUID_REFRACTIVE_INDEX   0x271D
 refractive index
 
#define ATT_UUID_RELATIVE_PERMEABILITY   0x271E
 relative permeability
 
#define ATT_UUID_PLANE_ANGLE_R   0x2720
 plane angle radian
 
#define ATT_UUID_SOLID_ANGLE_STER   0x2721
 solid angle steradian
 
#define ATT_UUID_FREQUENCY_HERTZ   0x2722
 frequency hertz
 
#define ATT_UUID_FORCE_NEWT   0x2723
 force newton
 
#define ATT_UUID_PRESSURE_PASCAL   0x2724
 pressure pascal
 
#define ATT_UUID_ENERGY_J   0x2725
 energy joule
 
#define ATT_UUID_POWER_W   0x2726
 power watt
 
#define ATT_UUID_ELECTRIC_CHG_C   0x2727
 electric charge coulomb
 
#define ATT_UUID_ELECTRIC_POTENTIAL_VOLT   0x2728
 electric potential difference volt
 
#define ATT_UUID_CAPACITANCE_F   0x2729
 capacitance farad
 
#define ATT_UUID_ELECTRIC_RESISTANCE_OHM   0x272A
 electric resistance ohm
 
#define ATT_UUID_ELECTRIC_COND_SIEMENS   0x272B
 electric conductance siemens
 
#define ATT_UUID_MAGNETIC_FLEX_WEBER   0x272C
 magnetic flex weber
 
#define ATT_UUID_MAGNETIC_FLEX_DENS_TESLA   0x272D
 magnetic flex density tesla
 
#define ATT_UUID_INDUCTANCE_H   0x272E
 inductance henry
 
#define ATT_UUID_C_TEMP_DEG_C   0x272F
 Celsius temperature degree Celsius.
 
#define ATT_UUID_LUMINOUS_FLUX_LUMEN   0x2730
 luminous flux lumen
 
#define ATT_UUID_ILLUMINANCE_LUX   0x2731
 illuminance lux
 
#define ATT_UUID_RADIONUCLIDE_BECQUEREL   0x2732
 activity referred to a radionuclide becquerel
 
#define ATT_UUID_ABSORBED_DOSE_GRAY   0x2733
 absorbed dose gray
 
#define ATT_UUID_DOSE_EQUIVALENT_SIEVERT   0x2734
 dose equivalent sievert
 
#define ATT_UUID_CATALYTIC_ACTIVITY_KATAL   0x2735
 catalytic activity katal
 
#define ATT_UUID_DYNAMIC_VISC_PASCAL_SEC   0x2740
 dynamic viscosity pascal second
 
#define ATT_UUID_MOMENT_OF_FORCE_NEWT_M   0x2741
 moment of force newton metre
 
#define ATT_UUID_SURFACE_TENSION_NEWT_PER_M   0x2742
 surface tension newton per metre
 
#define ATT_UUID_ANG_VELOCITY_R_PER_SEC   0x2743
 angular velocity radian per second
 
#define ATT_UUID_ANG_ACCEL_R_PER_SEC_SQD   0x2744
 angular acceleration radian per second squared
 
#define ATT_UUID_HEAT_FLUX_DEN_W_PER_SQ_M   0x2745
 heat flux density watt per square metre
 
#define ATT_UUID_HEAT_CAP_J_PER_K   0x2746
 heat capacity joule per kelvin
 
#define ATT_UUID_SPEC_HEAT_CAP_J_PER_KG_K   0x2747
 specific heat capacity joule per kilogram kelvin
 
#define ATT_UUID_SPEC_ENERGY_J_PER_KG   0x2748
 specific energy joule per kilogram
 
#define ATT_UUID_THERMAL_COND_W_PER_M_K   0x2749
 thermal conductivity watt per metre kelvin
 
#define ATT_UUID_ENERGY_DENSITY_J_PER_CU_M   0x274A
 energy density joule per cubic metre
 
#define ATT_UUID_ELEC_FIELD_STR_VOLT_PER_M   0x274B
 electric field strength volt per metre
 
#define ATT_UUID_ELEC_CHG_DENS_C_PER_CU_M   0x274C
 electric charge density coulomb per cubic metre
 
#define ATT_UUID_SURF_CHG_DENS_C_PER_SQ_M   0x274D
 surface charge density coulomb per square metre
 
#define ATT_UUID_ELEC_FLUX_DENS_C_PER_SQ_M   0x274E
 electric flux density coulomb per square metre
 
#define ATT_UUID_PERMITTIVITY_F_PER_M   0x274F
 permittivity farad per metre
 
#define ATT_UUID_PERMEABILITY_H_PER_M   0x2750
 permeability henry per metre
 
#define ATT_UUID_MOLAR_ENERGY_J_PER_MOLE   0x2751
 molar energy joule per mole
 
#define ATT_UUID_MOLAR_ENTROPY_J_PER_MOLE_K   0x2752
 molar entropy joule per mole kelvin
 
#define ATT_UUID_EXPOSURE_C_PER_KG   0x2753
 exposure coulomb per kilogram
 
#define ATT_UUID_DOSE_RATE_GRAY_PER_SEC   0x2754
 absorbed dose rate gray per second
 
#define ATT_UUID_RT_INTENSITY_W_PER_STER   0x2755
 radiant intensity watt per steradian
 
#define ATT_UUID_RCE_W_PER_SQ_METER_STER   0x2756
 radiance watt per square meter steradian
 
#define ATT_UUID_CATALYTIC_KATAL_PER_CU_M   0x2757
 catalytic activity concentration katal per cubic metre
 
#define ATT_UUID_TIME_MIN   0x2760
 time minute
 
#define ATT_UUID_TIME_HR   0x2761
 time hour
 
#define ATT_UUID_TIME_DAY   0x2762
 time day
 
#define ATT_UUID_PLANE_ANGLE_DEG   0x2763
 plane angle degree
 
#define ATT_UUID_PLANE_ANGLE_MIN   0x2764
 plane angle minute
 
#define ATT_UUID_PLANE_ANGLE_SEC   0x2765
 plane angle second
 
#define ATT_UUID_AREA_HECTARE   0x2766
 area hectare
 
#define ATT_UUID_VOLUME_L   0x2767
 volume litre
 
#define ATT_UUID_MASS_TONNE   0x2768
 mass tonne
 
#define ATT_UUID_PRESSURE_BAR   0x2780
 pressure bar
 
#define ATT_UUID_PRESSURE_MM   0x2781
 pressure millimetre of mercury
 
#define ATT_UUID_LENGTH_ANGSTROM   0x2782
 length angstrom
 
#define ATT_UUID_LENGTH_NAUTICAL_MILE   0x2783
 length nautical mile
 
#define ATT_UUID_AREA_BARN   0x2784
 area barn
 
#define ATT_UUID_VELOCITY_KNOT   0x2785
 velocity knot
 
#define ATT_UUID_LOG_RADIO_QUANT_NEPER   0x2786
 logarithmic radio quantity neper
 
#define ATT_UUID_LOG_RADIO_QUANT_BEL   0x2787
 logarithmic radio quantity bel
 
#define ATT_UUID_LOG_RADIO_QUANT_DB   0x2788
 logarithmic radio quantity decibel
 
#define ATT_UUID_LENGTH_YARD   0x27A0
 length yard
 
#define ATT_UUID_LENGTH_PARSEC   0x27A1
 length parsec
 
#define ATT_UUID_LENGTH_IN   0x27A2
 length inch
 
#define ATT_UUID_LENGTH_FOOT   0x27A3
 length foot
 
#define ATT_UUID_LENGTH_MILE   0x27A4
 length mile
 
#define ATT_UUID_PRESSURE_POUND_PER_SQ_IN   0x27A5
 pressure pound-force per square inch
 
#define ATT_UUID_VELOCITY_KPH   0x27A6
 velocity kilometre per hour
 
#define ATT_UUID_VELOCITY_MPH   0x27A7
 velocity mile per hour
 
#define ATT_UUID_ANG_VELOCITY_RPM   0x27A8
 angular velocity revolution per minute
 
#define ATT_UUID_ENERGY_GRAM_CALORIE   0x27A9
 energy gram calorie
 
#define ATT_UUID_ENERGY_KG_CALORIE   0x27AA
 energy kilogram calorie
 
#define ATT_UUID_ENERGY_KILOWATT_HR   0x27AB
 energy kilowatt hour
 
#define ATT_UUID_THERM_TEMP_F   0x27AC
 thermodynamic temperature degree Fahrenheit
 
#define ATT_UUID_PERCENTAGE   0x27AD
 percentage
 
#define ATT_UUID_PER_MILLE   0x27AE
 per mille
 
#define ATT_UUID_PERIOD_BEATS_PER_MIN   0x27AF
 period beats per minute
 
#define ATT_UUID_ELECTRIC_CHG_AMP_HRS   0x27B0
 electric charge ampere hours
 
#define ATT_UUID_MASS_DENSITY_MG_PER_DL   0x27B1
 mass density milligram per decilitre
 
#define ATT_UUID_MASS_DENSITY_MMOLE_PER_L   0x27B2
 mass density millimole per litre
 
#define ATT_UUID_TIME_YEAR   0x27B3
 time year
 
#define ATT_UUID_TIME_MONTH   0x27B4
 time month
 

Arm Ltd. proprietary UUIDs

propertietary services defined by Arm Ltd.

#define ATT_UUID_ARM_BASE
 Base UUID: E0262760-08C2-11E1-9073-0E8AC72EXXXX. More...
 
#define ATT_UUID_ARM_BUILD(part)    UINT16_TO_BYTES(part), ATT_UUID_ARM_BASE
 Macro for building Arm Ltd. UUIDs.
 

Partial proprietary service P1 UUID

#define ATT_UUID_P1_SERVICE_PART   0x1001
 

Partial proprietary characteristic data D1 UUID

#define ATT_UUID_D1_DATA_PART   0x0001
 
#define ATT_UUID_P1_SERVICE   ATT_UUID_ARM_BUILD(ATT_UUID_P1_SERVICE_PART)
 Proprietary services.
 
#define ATT_UUID_D1_DATA   ATT_UUID_ARM_BUILD(ATT_UUID_D1_DATA_PART)
 Proprietary characteristics.
 

ATT Service UUID Variables

const uint8_t attGapSvcUuid [ATT_16_UUID_LEN]
 Generic Access Profile Service.
 
const uint8_t attGattSvcUuid [ATT_16_UUID_LEN]
 Generic Attribute Profile Service.
 
const uint8_t attIasSvcUuid [ATT_16_UUID_LEN]
 Immediate Alert Service.
 
const uint8_t attLlsSvcUuid [ATT_16_UUID_LEN]
 Link Loss Service.
 
const uint8_t attTpsSvcUuid [ATT_16_UUID_LEN]
 Tx Power Service.
 
const uint8_t attCtsSvcUuid [ATT_16_UUID_LEN]
 Current Time Service.
 
const uint8_t attRtusSvcUuid [ATT_16_UUID_LEN]
 Reference Time Update Service.
 
const uint8_t attNdcsSvcUuid [ATT_16_UUID_LEN]
 Next DST Change Service.
 
const uint8_t attGlsSvcUuid [ATT_16_UUID_LEN]
 Glucose Service.
 
const uint8_t attHtsSvcUuid [ATT_16_UUID_LEN]
 Health Thermometer Service.
 
const uint8_t attDisSvcUuid [ATT_16_UUID_LEN]
 Device Information Service.
 
const uint8_t attNwaSvcUuid [ATT_16_UUID_LEN]
 Network Availability Service.
 
const uint8_t attWdsSvcUuid [ATT_16_UUID_LEN]
 Watchdog Service.
 
const uint8_t attHrsSvcUuid [ATT_16_UUID_LEN]
 Heart Rate Service.
 
const uint8_t attPassSvcUuid [ATT_16_UUID_LEN]
 Phone Alert Status Service.
 
const uint8_t attBasSvcUuid [ATT_16_UUID_LEN]
 Battery Service.
 
const uint8_t attBpsSvcUuid [ATT_16_UUID_LEN]
 Blood Pressure Service.
 
const uint8_t attAnsSvcUuid [ATT_16_UUID_LEN]
 Alert Notification Service.
 
const uint8_t attHidSvcUuid [ATT_16_UUID_LEN]
 Human Interface Device Service.
 
const uint8_t attSpsSvcUuid [ATT_16_UUID_LEN]
 Scan Parameter Service.
 
const uint8_t attPlxsSvcUuid [ATT_16_UUID_LEN]
 Pulse Oximeter Service.
 
const uint8_t attUdsSvcUuid [ATT_16_UUID_LEN]
 User Data Service.
 

GATT UUID Variables

const uint8_t attPrimSvcUuid [ATT_16_UUID_LEN]
 Primary Service.
 
const uint8_t attSecSvcUuid [ATT_16_UUID_LEN]
 Secondary Service.
 
const uint8_t attIncUuid [ATT_16_UUID_LEN]
 Include.
 
const uint8_t attChUuid [ATT_16_UUID_LEN]
 Characteristic.
 

GATT Characteristic Descriptor UUID Variables

const uint8_t attChExtUuid [ATT_16_UUID_LEN]
 Characteristic Extended Properties.
 
const uint8_t attChUserDescUuid [ATT_16_UUID_LEN]
 Characteristic User Description.
 
const uint8_t attCliChCfgUuid [ATT_16_UUID_LEN]
 Client Characteristic Configuration.
 
const uint8_t attSrvChCfgUuid [ATT_16_UUID_LEN]
 Server Characteristic Configuration.
 
const uint8_t attChPresFmtUuid [ATT_16_UUID_LEN]
 Characteristic Presentation Format.
 
const uint8_t attAggFmtUuid [ATT_16_UUID_LEN]
 Characteristic Aggregate Format.
 
const uint8_t attHidErmUuid [ATT_16_UUID_LEN]
 HID External Report Reference.
 
const uint8_t attHidRimUuid [ATT_16_UUID_LEN]
 HID Report ID Mapping.
 
const uint8_t attValRangeUuid [ATT_16_UUID_LEN]
 Valid Range.
 

GATT Characteristic UUID Variables

const uint8_t attDnChUuid [ATT_16_UUID_LEN]
 Device Name.
 
const uint8_t attApChUuid [ATT_16_UUID_LEN]
 Appearance.
 
const uint8_t attPpfChUuid [ATT_16_UUID_LEN]
 Peripheral Privacy Flag.
 
const uint8_t attRaChUuid [ATT_16_UUID_LEN]
 Reconnection Address.
 
const uint8_t attPpcpChUuid [ATT_16_UUID_LEN]
 Peripheral Preferred Connection Parameters.
 
const uint8_t attScChUuid [ATT_16_UUID_LEN]
 Service Changed.
 
const uint8_t attAlChUuid [ATT_16_UUID_LEN]
 Alert Level.
 
const uint8_t attTxpChUuid [ATT_16_UUID_LEN]
 Tx Power Level.
 
const uint8_t attDtChUuid [ATT_16_UUID_LEN]
 Date Time.
 
const uint8_t attDwChUuid [ATT_16_UUID_LEN]
 Day of Week.
 
const uint8_t attDdtChUuid [ATT_16_UUID_LEN]
 Day Date Time.
 
const uint8_t attEt100ChUuid [ATT_16_UUID_LEN]
 Exact Time 100.
 
const uint8_t attEt256ChUuid [ATT_16_UUID_LEN]
 Exact Time 256.
 
const uint8_t attDstoChUuid [ATT_16_UUID_LEN]
 DST Offset.
 
const uint8_t attTzChUuid [ATT_16_UUID_LEN]
 Time Zone.
 
const uint8_t attLtiChUuid [ATT_16_UUID_LEN]
 Local Time Information.
 
const uint8_t attStzChUuid [ATT_16_UUID_LEN]
 Secondary Time Zone.
 
const uint8_t attTdstChUuid [ATT_16_UUID_LEN]
 Time with DST.
 
const uint8_t attTaChUuid [ATT_16_UUID_LEN]
 Time Accuracy.
 
const uint8_t attTsChUuid [ATT_16_UUID_LEN]
 Time Source.
 
const uint8_t attRtiChUuid [ATT_16_UUID_LEN]
 Reference Time Information.
 
const uint8_t attTbChUuid [ATT_16_UUID_LEN]
 Time Broadcast.
 
const uint8_t attTucpChUuid [ATT_16_UUID_LEN]
 Time Update Control Point.
 
const uint8_t attTusChUuid [ATT_16_UUID_LEN]
 Time Update State.
 
const uint8_t attGlmChUuid [ATT_16_UUID_LEN]
 Glucose Measurement.
 
const uint8_t attBlChUuid [ATT_16_UUID_LEN]
 Battery Level.
 
const uint8_t attBpsChUuid [ATT_16_UUID_LEN]
 Battery Power State.
 
const uint8_t attBlsChUuid [ATT_16_UUID_LEN]
 Battery Level State.
 
const uint8_t attTmChUuid [ATT_16_UUID_LEN]
 Temperature Measurement.
 
const uint8_t attTtChUuid [ATT_16_UUID_LEN]
 Temperature Type.
 
const uint8_t attItChUuid [ATT_16_UUID_LEN]
 Intermediate Temperature.
 
const uint8_t attTcelChUuid [ATT_16_UUID_LEN]
 Temperature Celsius.
 
const uint8_t attTfahChUuid [ATT_16_UUID_LEN]
 Temperature Fahrenheit.
 
const uint8_t attSidChUuid [ATT_16_UUID_LEN]
 System ID.
 
const uint8_t attMnsChUuid [ATT_16_UUID_LEN]
 Model Number String.
 
const uint8_t attSnsChUuid [ATT_16_UUID_LEN]
 Serial Number String.
 
const uint8_t attFrsChUuid [ATT_16_UUID_LEN]
 Firmware Revision String.
 
const uint8_t attHrsChUuid [ATT_16_UUID_LEN]
 Hardware Revision String.
 
const uint8_t attSrsChUuid [ATT_16_UUID_LEN]
 Software Revision String.
 
const uint8_t attMfnsChUuid [ATT_16_UUID_LEN]
 Manufacturer Name String.
 
const uint8_t attIeeeChUuid [ATT_16_UUID_LEN]
 IEEE 11073-20601 Regulatory Certification Data List.
 
const uint8_t attCtChUuid [ATT_16_UUID_LEN]
 Current Time.
 
const uint8_t attElChUuid [ATT_16_UUID_LEN]
 Elevation.
 
const uint8_t attLatChUuid [ATT_16_UUID_LEN]
 Latitude.
 
const uint8_t attLongChUuid [ATT_16_UUID_LEN]
 Longitude.
 
const uint8_t attP2dChUuid [ATT_16_UUID_LEN]
 Position 2D.
 
const uint8_t attP3dChUuid [ATT_16_UUID_LEN]
 Position 3D.
 
const uint8_t attVidChUuid [ATT_16_UUID_LEN]
 Vendor ID.
 
const uint8_t attGlmcChUuid [ATT_16_UUID_LEN]
 Glucose Measurement Context.
 
const uint8_t attBpmChUuid [ATT_16_UUID_LEN]
 Blood Pressure Measurement.
 
const uint8_t attIcpChUuid [ATT_16_UUID_LEN]
 Intermediate Cuff Pressure.
 
const uint8_t attHrmChUuid [ATT_16_UUID_LEN]
 Heart Rate Measurement.
 
const uint8_t attBslChUuid [ATT_16_UUID_LEN]
 Body Sensor Location.
 
const uint8_t attHrcpChUuid [ATT_16_UUID_LEN]
 Heart Rate Control Point.
 
const uint8_t attRemChUuid [ATT_16_UUID_LEN]
 Removable.
 
const uint8_t attSrChUuid [ATT_16_UUID_LEN]
 Service Required.
 
const uint8_t attStcChUuid [ATT_16_UUID_LEN]
 Scientific Temperature in Celsius.
 
const uint8_t attStrChUuid [ATT_16_UUID_LEN]
 String.
 
const uint8_t attNwaChUuid [ATT_16_UUID_LEN]
 Network Availability.
 
const uint8_t attAsChUuid [ATT_16_UUID_LEN]
 Alert Status.
 
const uint8_t attRcpChUuid [ATT_16_UUID_LEN]
 Ringer Control Point.
 
const uint8_t attRsChUuid [ATT_16_UUID_LEN]
 Ringer Setting.
 
const uint8_t attAcbmChUuid [ATT_16_UUID_LEN]
 Alert Category ID Bit Mask.
 
const uint8_t attAcChUuid [ATT_16_UUID_LEN]
 Alert Category ID.
 
const uint8_t attAncpChUuid [ATT_16_UUID_LEN]
 Alert Notification Control Point.
 
const uint8_t attUasChUuid [ATT_16_UUID_LEN]
 Unread Alert Status.
 
const uint8_t attNaChUuid [ATT_16_UUID_LEN]
 New Alert.
 
const uint8_t attSnacChUuid [ATT_16_UUID_LEN]
 Supported New Alert Category.
 
const uint8_t attSuacChUuid [ATT_16_UUID_LEN]
 Supported Unread Alert Category.
 
const uint8_t attBpfChUuid [ATT_16_UUID_LEN]
 Blood Pressure Feature.
 
const uint8_t attHidBmiChUuid [ATT_16_UUID_LEN]
 HID Information.
 
const uint8_t attHidBkiChUuid [ATT_16_UUID_LEN]
 HID Information.
 
const uint8_t attHidBkoChUuid [ATT_16_UUID_LEN]
 HID Information.
 
const uint8_t attHidiChUuid [ATT_16_UUID_LEN]
 HID Information.
 
const uint8_t attHidRmChUuid [ATT_16_UUID_LEN]
 Report Map.
 
const uint8_t attHidcpChUuid [ATT_16_UUID_LEN]
 HID Control Point.
 
const uint8_t attHidRepChUuid [ATT_16_UUID_LEN]
 Report.
 
const uint8_t attHidPmChUuid [ATT_16_UUID_LEN]
 Protocol Mode.
 
const uint8_t attSiwChUuid [ATT_16_UUID_LEN]
 Scan Interval Window.
 
const uint8_t attPnpChUuid [ATT_16_UUID_LEN]
 PnP ID.
 
const uint8_t attGlfChUuid [ATT_16_UUID_LEN]
 Glucose Feature.
 
const uint8_t attRacpChUuid [ATT_16_UUID_LEN]
 Record Access Control Point.
 
const uint8_t attCarChUuid [ATT_16_UUID_LEN]
 Central Address Resolution.
 
const uint8_t attRsfChUuid [ATT_16_UUID_LEN]
 Running Speed Features.
 
const uint8_t attRsmChUuid [ATT_16_UUID_LEN]
 Running Speed Measurement.
 
const uint8_t attCpfChUuid [ATT_16_UUID_LEN]
 Cycling Power Features.
 
const uint8_t attCpmChUuid [ATT_16_UUID_LEN]
 Cycling Power Measurement.
 
const uint8_t attCsfChUuid [ATT_16_UUID_LEN]
 Cycling Speed Features.
 
const uint8_t attCsmChUuid [ATT_16_UUID_LEN]
 Cycling Speed Measurement.
 
const uint8_t attSlChUuid [ATT_16_UUID_LEN]
 Sensor Location.
 
const uint8_t attPlxfChUuid [ATT_16_UUID_LEN]
 Pulse Oximeter Features.
 
const uint8_t attPlxscmChUuid [ATT_16_UUID_LEN]
 Pulse Oximeter Spot Check Measurement.
 
const uint8_t attPlxcmChUuid [ATT_16_UUID_LEN]
 Pulse Oximeter Continuous Measurement.
 
const uint8_t attRpaoChUuid [ATT_16_UUID_LEN]
 Resolvable Private Address Only.
 
const uint8_t attDbciChUuid [ATT_16_UUID_LEN]
 Database Change Increment.
 
const uint8_t attUiChUuid [ATT_16_UUID_LEN]
 User Index.
 
const uint8_t attUcpChUuid [ATT_16_UUID_LEN]
 User Control Point.
 
const uint8_t attWssSvcUuid [ATT_16_UUID_LEN]
 Weight scale service.
 
const uint8_t attWmChUuid [ATT_16_UUID_LEN]
 Weight measurement.
 
const uint8_t attWsfChUuid [ATT_16_UUID_LEN]
 Weight scale feature.
 

Description

Macro Definition Documentation

#define ATT_CBACK_END   ATT_MTU_UPDATE_IND

ATT callback events.

ATT callback event ending value

Definition at line 126 of file att_api.h.

#define ATT_UUID_ARM_BASE
Value:
0x2E, 0xC7, 0x8A, 0x0E, 0x73, 0x90, \
0xE1, 0x11, 0xC2, 0x08, 0x60, 0x27, 0x26, 0xE0

Base UUID: E0262760-08C2-11E1-9073-0E8AC72EXXXX.

Definition at line 320 of file att_uuid.h.

Typedef Documentation

typedef void(* attCback_t) (attEvt_t *pEvt)

ATT event callback type.

This callback function sends ATT events to the client application. A single callback function is used for both ATTS and ATTC.

Parameters
pEvtPointer to ATT event structure.
Returns
None.

Definition at line 173 of file att_api.h.

Enumeration Type Documentation

anonymous enum

ATT client callback events.

Enumerator
ATTC_FIND_INFO_RSP 

Find information response.

ATTC_FIND_BY_TYPE_VALUE_RSP 

Find by type value response.

ATTC_READ_BY_TYPE_RSP 

Read by type value response.

ATTC_READ_RSP 

Read response.

ATTC_READ_LONG_RSP 

Read long response.

ATTC_READ_MULTIPLE_RSP 

Read multiple response.

ATTC_READ_BY_GROUP_TYPE_RSP 

Read group type response.

ATTC_WRITE_RSP 

Write response.

ATTC_WRITE_CMD_RSP 

Write command response.

ATTC_PREPARE_WRITE_RSP 

Prepare write response.

ATTC_EXECUTE_WRITE_RSP 

Execute write response.

ATTC_HANDLE_VALUE_NTF 

Handle value notification.

ATTC_HANDLE_VALUE_IND 

Handle value indication.

ATTS_HANDLE_VALUE_CNF 

Handle value confirmation.

ATTS_CCC_STATE_IND 

Client chracteristic configuration state change.

ATT_MTU_UPDATE_IND 

Negotiated MTU value.

Definition at line 103 of file att_api.h.

131 {

Function Documentation

void AttRegister ( attCback_t  cback)

Register a callback with ATT. This callback will be used for messages from both ATTC and ATTS.

Parameters
cbackClient callback function.
Returns
None.
void AttConnRegister ( dmCback_t  cback)

Register a connection callback with ATT. The callback is typically used to manage the attribute server database.

Parameters
cbackClient callback function.
Returns
None.
uint16_t AttGetMtu ( dmConnId_t  connId)

Get the attribute protocol MTU of a connection.

Parameters
connIdDM connection ID.
Returns
MTU of the connection.
void* AttMsgAlloc ( uint16_t  len,
uint8_t  opcode 
)

Allocate an ATT message buffer to be sent with the ATT attribute protocol zero-copy APIs.

Parameters
lenMessage length in bytes.
opcodeOpcode for ATT message.
Returns
Pointer to message buffer or NULL if allocation failed.
void AttMsgFree ( void *  pMsg,
uint8_t  opcode 
)

Free an ATT message buffer allocated with AttMsgAlloc().

Parameters
pMsgPointer to message buffer.
opcodeOpcode for ATT message.
Returns
None.