![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
Wireless Data Exchange Protocol Definitions. More...
Go to the source code of this file.
Macros | |
#define | WDX_UUID_PART1 |
Base UUID: 005fXXXX-2ff2-4ed5-b045-4C7463617865. More... | |
#define | WDX_UUID_PART2 0x5f, 0x00 |
Base UUID Part 2. | |
#define | WDX_UUID_BUILD(part) WDX_UUID_PART1, UINT16_TO_BYTES(part), WDX_UUID_PART2 |
Macro for building UUIDs. | |
#define | WDX_SVC_UUID 0xFEF6 |
WDX Service. | |
#define | WDX_DC_UUID WDX_UUID_BUILD(0x0002) |
WDX Device Configuration Characteristic. | |
#define | WDX_FTC_UUID WDX_UUID_BUILD(0x0003) |
WDX File Transfer Control Characteristic. | |
#define | WDX_FTD_UUID WDX_UUID_BUILD(0x0004) |
WDX File Transfer Data Characteristic. | |
#define | WDX_AU_UUID WDX_UUID_BUILD(0x0005) |
WDX Authentication Characteristic. | |
#define | WDX_DC_HDR_LEN 2 |
Device configuration characteristic message header length. | |
#define | WDX_FTD_HDR_LEN 0 |
File transfer data characteristic message header length. | |
#define | WDX_AU_HDR_LEN 1 |
Authentication message header length. | |
WDXS File List Configuration | |
#define | WDX_FLIST_HANDLE 0 |
File List handle. | |
#define | WDX_FLIST_FORMAT_VER 1 |
File List version. | |
#define | WDX_FLIST_HDR_SIZE 7 |
File List header length. | |
#define | WDX_FLIST_RECORD_SIZE 40 |
File List record length. | |
#define | WDX_FLIST_MAX_LEN (WDX_FLIST_HDR_SIZE + (WDX_FLIST_RECORD_SIZE * (WSF_EFS_MAX_FILES-1))) |
File list max length. | |
Device Configuration Characteristic oOperations | |
#define | WDX_DC_OP_GET 0x01 |
Get a parameter value. | |
#define | WDX_DC_OP_SET 0x02 |
Set a parameter value. | |
#define | WDX_DC_OP_UPDATE 0x03 |
Send an update of a parameter value. | |
Device Control Characteristic Parameter IDs | |
#define | WDX_DC_ID_CONN_UPDATE_REQ 0x01 |
Connection Parameter Update Request. | |
#define | WDX_DC_ID_CONN_PARAM 0x02 |
Current Connection Parameters. | |
#define | WDX_DC_ID_DISCONNECT_REQ 0x03 |
Disconnect Request. | |
#define | WDX_DC_ID_CONN_SEC_LEVEL 0x04 |
Connection Security Level. | |
#define | WDX_DC_ID_SECURITY_REQ 0x05 |
Security Request. | |
#define | WDX_DC_ID_SERVICE_CHANGED 0x06 |
Service Changed. | |
#define | WDX_DC_ID_DELETE_BONDS 0x07 |
Delete Bonds. | |
#define | WDX_DC_ID_ATT_MTU 0x08 |
Current ATT MTU. | |
#define | WDX_DC_ID_PHY_UPDATE_REQ 0x09 |
PHY update request. | |
#define | WDX_DC_ID_PHY 0x0A |
Current PHY. | |
#define | WDX_DC_ID_BATTERY_LEVEL 0x20 |
Battery level. | |
#define | WDX_DC_ID_MODEL_NUMBER 0x21 |
Device Model. | |
#define | WDX_DC_ID_FIRMWARE_REV 0x22 |
Device Firmware Revision. | |
#define | WDX_DC_ID_ENTER_DIAGNOSTICS 0x23 |
Enter Diagnostic Mode. | |
#define | WDX_DC_ID_DIAGNOSTICS_COMPLETE 0x24 |
Diagnostic Complete. | |
#define | WDX_DC_ID_DISCONNECT_AND_RESET 0x25 |
Disconnect and Reset. | |
Device Control Parameter Lengths | |
#define | WDX_DC_LEN_DATA_FORMAT 1 |
Data format. | |
#define | WDX_DC_LEN_SEC_LEVEL 1 |
Security Level. | |
#define | WDX_DC_LEN_ATT_MTU 2 |
ATT MTU. | |
#define | WDX_DC_LEN_BATTERY_LEVEL 1 |
Battery level. | |
#define | WDX_DC_LEN_CONN_PARAM_REQ 8 |
Connection parameter request. | |
#define | WDX_DC_LEN_CONN_PARAM 7 |
Current connection parameters. | |
#define | WDX_DC_LEN_PHY_UPDATE_REQ 5 |
PHY update request. | |
#define | WDX_DC_LEN_PHY 3 |
Current PHY. | |
#define | WDX_DC_LEN_DIAG_COMPLETE 0 |
Diagnostic complete. | |
#define | WDX_DC_LEN_DEVICE_MODEL 18 |
Device Model. | |
#define | WDX_DC_LEN_FIRMWARE_REV 16 |
Firmware Revision. | |
File Transfer Control Characteristic Message Header Length | |
#define | WDX_FTC_HDR_LEN 1 |
Header length. | |
#define | WDX_FTC_HANDLE_LEN 2 |
Handle length. | |
File Transfer Control Characteristic Operations | |
#define | WDX_FTC_OP_NONE 0x00 |
No operation. | |
#define | WDX_FTC_OP_GET_REQ 0x01 |
Get a file from the server. | |
#define | WDX_FTC_OP_GET_RSP 0x02 |
File get response. | |
#define | WDX_FTC_OP_PUT_REQ 0x03 |
Put a file to the server. | |
#define | WDX_FTC_OP_PUT_RSP 0x04 |
File put response. | |
#define | WDX_FTC_OP_ERASE_REQ 0x05 |
Erase a file on the server. | |
#define | WDX_FTC_OP_ERASE_RSP 0x06 |
File erase response. | |
#define | WDX_FTC_OP_VERIFY_REQ 0x07 |
Verify a file (e.g. check its CRC) | |
#define | WDX_FTC_OP_VERIFY_RSP 0x08 |
File verify response. | |
#define | WDX_FTC_OP_ABORT 0x09 |
Abort a get, put, or list operation in progress. | |
#define | WDX_FTC_OP_EOF 0x0a |
End of file reached. | |
File Transfer Control Permissions | |
#define | WDX_FTC_GET_PERMITTED 0x01 |
File Get Permitted. | |
#define | WDX_FTC_PUT_PERMITTED 0x02 |
File Put Permitted. | |
#define | WDX_FTC_ERASE_PERMITTED 0x04 |
File Erase Permitted. | |
#define | WDX_FTC_VERIFY_PERMITTED 0x08 |
File Verify Permitted. | |
File Transfer Control Characteristic Status | |
#define | WDX_FTC_ST_SUCCESS 0 |
Success. | |
#define | WDX_FTC_ST_INVALID_OP_FILE 1 |
Invalid operation for this file. | |
#define | WDX_FTC_ST_INVALID_HANDLE 2 |
Invalid file handle. | |
#define | WDX_FTC_ST_INVALID_OP_DATA 3 |
Invalid operation data. | |
#define | WDX_FTC_ST_IN_PROGRESS 4 |
Operation in progress. | |
#define | WDX_FTC_ST_VERIFICATION 5 |
Verification failure. | |
File Transfer Control Transport | |
#define | WDX_FTC_TRANSPORT_TYPE 0 |
Transport Type. | |
#define | WDX_FTC_TRANSPORT_ID 0x0030 |
Transport ID. | |
Authentication Characteristic Operations | |
#define | WDX_AU_OP_START 0x01 |
Authentication start. | |
#define | WDX_AU_OP_CHALLENGE 0x02 |
Authentication challenge. | |
#define | WDX_AU_OP_REPLY 0x03 |
Authentication reply. | |
Proprietary ATT Error Codes | |
#define | WDX_APP_AUTH_REQUIRED 0x80 |
Application authentication required. | |
#define | WDX_AU_ST_INVALID_MESSAGE 0x81 |
Authentication invalid message. | |
#define | WDX_AU_ST_INVALID_STATE 0x82 |
Authentication invalid state. | |
#define | WDX_AU_ST_AUTH_FAILED 0x83 |
Authentication failed. | |
Authentication Characteristic Authentication Level | |
#define | WDX_AU_LVL_NONE 0x00 |
None. | |
#define | WDX_AU_LVL_USER 0x01 |
User level. | |
#define | WDX_AU_LVL_MAINT 0x02 |
Maintenance level. | |
#define | WDX_AU_LVL_DEBUG 0x03 |
Debug level. | |
Authenttication Characteristic Message Parameter Lengths | |
#define | WDX_AU_MSG_HDR_LEN 1 |
Message header length. | |
#define | WDX_AU_PARAM_LEN_START 2 |
Authentication start. | |
#define | WDX_AU_PARAM_LEN_CHALLENGE 16 |
Authentication challenge. | |
#define | WDX_AU_PARAM_LEN_REPLY 8 |
Authentication reply. | |
Authenttication Characteristic Random Number and Key Lengths | |
#define | WDX_AU_RAND_LEN 16 |
Authentication Random challenge length (bytes) | |
#define | WDX_AU_KEY_LEN 16 |
Authentication Key length (bytes) | |
#define | WDX_AU_HASH_LEN 8 |
Authentication Hash length (bytes) | |
WDXS Media Types | |
#define | WDX_FLASH_MEDIA 0 |
Flash media type. | |
#define | WDX_OTA_MEDIA 1 |
OTA media type. | |
#define | WDX_RAM_MEDIA 2 |
RAM media type. | |
#define | WDX_STREAM_MEDIA 3 |
Stream media type. | |
WDXS File Transfer Control Command Message Lengths | |
#define | WDX_FTC_ABORT_LEN 3 |
Abort message length. | |
#define | WDX_FTC_ERASE_LEN 3 |
Erase message length. | |
#define | WDX_FTC_VERIFY_LEN 3 |
Verify message length. | |
#define | WDX_FTC_PUT_LEN 16 |
Put message length. | |
#define | WDX_FTC_GET_LEN 12 |
Get message length. | |
Wireless Data Exchange Protocol Definitions.
Copyright (c) 2013-2018 Arm Ltd. All Rights Reserved. Arm Ltd. confidential and proprietary.
IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact Arm Ltd. prior to any use, copying or further distribution of this software.
Definition in file wdx_defs.h.