Programming Manual

i480e&i480e-MD2 Programming Manual
126 / 139
26.4
ERR_CODE
This ERR_CODE is Enumeration of gatt_status_t, and is suitable for all
ERR_CODE below.
typedef enum
{
/*! The operation was successful. */
gatt_status_success = 0x00,
/*! The attribute handle given was not valid */
gatt_status_invalid_handle,
/*! The attribute cannot be read */
gatt_status_read_not_permitted,
/*! The attribute cannot be written */
gatt_status_write_not_permitted,
/*! The attribute PDU was invalid */
gatt_status_invalid_pdu,
/*! The attribute requires an authentication before it can be read or
written */
gatt_status_insufficient_authentication,
/*! Target device doesn't support request */
gatt_status_request_not_supported,
/*! Offset specified was past the end of the long attribute */
gatt_status_invalid_offset,
/*! The attribute requires authorization before it can be read or
written */
gatt_status_insufficient_authorization,
/*! Too many prepare writes have been queued */
gatt_status_prepare_queue_full,
/*! No attribute found within the given attribute handle range. */
gatt_status_attr_not_found,
/*! This attribute cannot be read or written using the Read Blob Request
or Write Blob Requests. */
gatt_status_not_long,
/*! The Encryption Key Size used for encrypting this link is
insufficient. */
gatt_status_insufficient_encr_key_size,
/*! The attribute value length is invalid for the operation. */
gatt_status_invalid_length,
/*! The attribute request that was requested has encountered an error
that was very unlikely, and therefore could not be completed as
requested. */
gatt_status_unlikely_error,
Barrot Confidential