C++ Code
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
/** @defgroup GAP_ADTYPE_DEFINES GAP Advertisment Data Types * These are the data type identifiers for the data tokens in the advertisement data field. * @{ */ #define GAP_ADTYPE_FLAGS 0x01 //!< Discovery Mode: @ref GAP_ADTYPE_FLAGS_MODES #define GAP_ADTYPE_16BIT_MORE 0x02 //!< Service: More 16-bit UUIDs available #define GAP_ADTYPE_16BIT_COMPLETE 0x03 //!< Service: Complete list of 16-bit UUIDs #define GAP_ADTYPE_32BIT_MORE 0x04 //!< Service: More 32-bit UUIDs available #define GAP_ADTYPE_32BIT_COMPLETE 0x05 //!< Service: Complete list of 32-bit UUIDs #define GAP_ADTYPE_128BIT_MORE 0x06 //!< Service: More 128-bit UUIDs available #define GAP_ADTYPE_128BIT_COMPLETE 0x07 //!< Service: Complete list of 128-bit UUIDs #define GAP_ADTYPE_LOCAL_NAME_SHORT 0x08 //!< Shortened local name #define GAP_ADTYPE_LOCAL_NAME_COMPLETE 0x09 //!< Complete local name #define GAP_ADTYPE_POWER_LEVEL 0x0A //!< TX Power Level: 0xXX: -127 to +127 dBm #define GAP_ADTYPE_OOB_CLASS_OF_DEVICE 0x0D //!< Simple Pairing OOB Tag: Class of device (3 octets) #define GAP_ADTYPE_OOB_SIMPLE_PAIRING_HASHC 0x0E //!< Simple Pairing OOB Tag: Simple Pairing Hash C (16 octets) #define GAP_ADTYPE_OOB_SIMPLE_PAIRING_RANDR 0x0F //!< Simple Pairing OOB Tag: Simple Pairing Randomizer R (16 octets) #define GAP_ADTYPE_SM_TK 0x10 //!< Security Manager TK Value #define GAP_ADTYPE_SM_OOB_FLAG 0x11 //!< Secutiry Manager OOB Flags #define GAP_ADTYPE_SLAVE_CONN_INTERVAL_RANGE 0x12 //!< Min and Max values of the connection interval (2 octets Min, 2 octets Max) (0xFFFF indicates no conn interval min or max) #define GAP_ADTYPE_SIGNED_DATA 0x13 //!< Signed Data field #define GAP_ADTYPE_SERVICES_LIST_16BIT 0x14 //!< Service Solicitation: list of 16-bit Service UUIDs #define GAP_ADTYPE_SERVICES_LIST_128BIT 0x15 //!< Service Solicitation: list of 128-bit Service UUIDs #define GAP_ADTYPE_SERVICE_DATA 0x16 //!< Service Data #define GAP_ADTYPE_APPEARANCE 0x19 //!< Appearance #define GAP_ADTYPE_MANUFACTURER_SPECIFIC 0xFF //!< Manufacturer Specific Data: first 2 octets contain the Company Identifier Code followed by the additional manufacturer specific data /** @} End GAP_ADTYPE_DEFINES */ /** @defgroup GAP_ADTYPE_FLAGS_MODES GAP ADTYPE Flags Discovery Modes * @{ */ #define GAP_ADTYPE_FLAGS_LIMITED 0x01 //!< Discovery Mode: LE Limited Discoverable Mode #define GAP_ADTYPE_FLAGS_GENERAL 0x02 //!< Discovery Mode: LE General Discoverable Mode #define GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED 0x04 //!< Discovery Mode: BR/EDR Not Supported /** @} End GAP_ADTYPE_FLAGS_MODES */ /** @defgroup GAP_APPEARANCE_VALUES GAP Appearance Values * @{ */ #define GAP_APPEARE_UNKNOWN 0x0000 //!< Unknown #define GAP_APPEARE_GENERIC_PHONE 0x0040 //!< Generic Phone #define GAP_APPEARE_GENERIC_COMPUTER 0x0080 //!< Generic Computer #define GAP_APPEARE_GENERIC_WATCH 0x00C0 //!< Generic Watch #define GAP_APPEARE_WATCH_SPORTS 0x00C1 //!< Watch: Sports Watch #define GAP_APPEARE_GENERIC_CLOCK 0x0100 //!< Generic Clock #define GAP_APPEARE_GENERIC_DISPLAY 0x0140 //!< Generic Display #define GAP_APPEARE_GENERIC_RC 0x0180 //!< Generic Remote Control #define GAP_APPEARE_GENERIC_EYE_GALSSES 0x01C0 //!< Generic Eye-glasses #define GAP_APPEARE_GENERIC_TAG 0x0200 //!< Generic Tag #define GAP_APPEARE_GENERIC_KEYRING 0x0240 //!< Generic Keyring #define GAP_APPEARE_GENERIC_MEDIA_PLAYER 0x0280 //!< Generic Media Player #define GAP_APPEARE_GENERIC_BARCODE_SCANNER 0x02C0 //!< Generic Barcode Scanner #define GAP_APPEARE_GENERIC_THERMOMETER 0x0300 //!< Generic Thermometer #define GAP_APPEARE_GENERIC_THERMO_EAR 0x0301 //!< Thermometer: Ear #define GAP_APPEARE_GENERIC_HR_SENSOR 0x0340 //!< Generic Heart rate Sensor #define GAP_APPEARE_GENERIC_HRS_BELT 0x0341 //!< Heart Rate Sensor: Heart Rate Belt #define GAP_APPEARE_GENERIC_BLOOD_PRESSURE 0x0380 //!< Generic Blood Pressure #define GAP_APPEARE_GENERIC_BP_ARM 0x0381 //!< Blood Pressure: Arm #define GAP_APPEARE_GENERIC_BP_WRIST 0x0382 //!< Blood Pressure: Wrist #define GAP_APPEARE_GENERIC_HID 0x03C0 //!< Generic Human Interface Device (HID) #define GAP_APPEARE_HID_KEYBOARD 0x03C1 //!< HID Keyboard #define GAP_APPEARE_HID_MOUSE 0x03C2 //!< HID Mouse #define GAP_APPEARE_HID_JOYSTIC 0x03C3 //!< HID Joystick #define GAP_APPEARE_HID_GAMEPAD 0x03C4 //!< HID Gamepad #define GAP_APPEARE_HID_DIGITIZER_TYABLET 0x03C5 //!< HID Digitizer Tablet #define GAP_APPEARE_HID_DIGITAL_CARDREADER 0x03C6 //!< HID Card Reader #define GAP_APPEARE_HID_DIGITAL_PEN 0x03C7 //!< HID Digital Pen #define GAP_APPEARE_HID_BARCODE_SCANNER 0x03C8 //!< HID Barcode Scanner /** @} End GAP_APPEARANCE_VALUES */ |