![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
external fota service implementation
ext_fota/gapm_task.h@0:bab3be8d31cf, 2015-06-19 (annotated)
- Committer:
- dudnwjs
- Date:
- Fri Jun 19 06:49:20 2015 +0000
- Revision:
- 0:bab3be8d31cf
add GAPM,GAPC header
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dudnwjs | 0:bab3be8d31cf | 1 | #ifndef __GAPM_TASK_H__ |
dudnwjs | 0:bab3be8d31cf | 2 | #define __GAPM_TASK_H__ |
dudnwjs | 0:bab3be8d31cf | 3 | |
dudnwjs | 0:bab3be8d31cf | 4 | /// Command complete event data structure |
dudnwjs | 0:bab3be8d31cf | 5 | struct gapm_cmp_evt |
dudnwjs | 0:bab3be8d31cf | 6 | { |
dudnwjs | 0:bab3be8d31cf | 7 | /// GAP requested operation |
dudnwjs | 0:bab3be8d31cf | 8 | uint8_t operation; |
dudnwjs | 0:bab3be8d31cf | 9 | /// Status of the request |
dudnwjs | 0:bab3be8d31cf | 10 | uint8_t status; |
dudnwjs | 0:bab3be8d31cf | 11 | }; |
dudnwjs | 0:bab3be8d31cf | 12 | |
dudnwjs | 0:bab3be8d31cf | 13 | enum gapm_msg_id |
dudnwjs | 0:bab3be8d31cf | 14 | { |
dudnwjs | 0:bab3be8d31cf | 15 | /* Default event */ |
dudnwjs | 0:bab3be8d31cf | 16 | /// Command Complete event |
dudnwjs | 0:bab3be8d31cf | 17 | GAPM_CMP_EVT = 13312, |
dudnwjs | 0:bab3be8d31cf | 18 | /// Event triggered to inform that lower layers are ready |
dudnwjs | 0:bab3be8d31cf | 19 | GAPM_DEVICE_READY_IND, |
dudnwjs | 0:bab3be8d31cf | 20 | |
dudnwjs | 0:bab3be8d31cf | 21 | /* Default commands */ |
dudnwjs | 0:bab3be8d31cf | 22 | /// Reset link layer and the host command |
dudnwjs | 0:bab3be8d31cf | 23 | GAPM_RESET_CMD, |
dudnwjs | 0:bab3be8d31cf | 24 | /// Cancel ongoing operation |
dudnwjs | 0:bab3be8d31cf | 25 | GAPM_CANCEL_CMD, |
dudnwjs | 0:bab3be8d31cf | 26 | |
dudnwjs | 0:bab3be8d31cf | 27 | /* Device Configuration */ |
dudnwjs | 0:bab3be8d31cf | 28 | /// Set device configuration command |
dudnwjs | 0:bab3be8d31cf | 29 | GAPM_SET_DEV_CONFIG_CMD, |
dudnwjs | 0:bab3be8d31cf | 30 | /// Set device name command |
dudnwjs | 0:bab3be8d31cf | 31 | GAPM_SET_DEV_NAME_CMD, |
dudnwjs | 0:bab3be8d31cf | 32 | /// Set device channel map |
dudnwjs | 0:bab3be8d31cf | 33 | GAPM_SET_CHANNEL_MAP_CMD, |
dudnwjs | 0:bab3be8d31cf | 34 | |
dudnwjs | 0:bab3be8d31cf | 35 | /* Local device information */ |
dudnwjs | 0:bab3be8d31cf | 36 | /// Get local device info command |
dudnwjs | 0:bab3be8d31cf | 37 | GAPM_GET_DEV_INFO_CMD, |
dudnwjs | 0:bab3be8d31cf | 38 | /// Local device name indication event |
dudnwjs | 0:bab3be8d31cf | 39 | GAPM_DEV_NAME_IND, |
dudnwjs | 0:bab3be8d31cf | 40 | /// Local device appearance indication event |
dudnwjs | 0:bab3be8d31cf | 41 | GAPM_APPEARANCE_IND, |
dudnwjs | 0:bab3be8d31cf | 42 | /// Local device version indication event |
dudnwjs | 0:bab3be8d31cf | 43 | GAPM_DEV_VERSION_IND, |
dudnwjs | 0:bab3be8d31cf | 44 | /// Local device BD Address indication event |
dudnwjs | 0:bab3be8d31cf | 45 | GAPM_DEV_BDADDR_IND, |
dudnwjs | 0:bab3be8d31cf | 46 | |
dudnwjs | 0:bab3be8d31cf | 47 | /* White List */ |
dudnwjs | 0:bab3be8d31cf | 48 | /// White List Management Command |
dudnwjs | 0:bab3be8d31cf | 49 | GAPM_WHITE_LIST_MGT_CMD, |
dudnwjs | 0:bab3be8d31cf | 50 | /// White List Size indication event |
dudnwjs | 0:bab3be8d31cf | 51 | GAPM_WHITE_LIST_SIZE_IND, |
dudnwjs | 0:bab3be8d31cf | 52 | |
dudnwjs | 0:bab3be8d31cf | 53 | /* Air Operations */ |
dudnwjs | 0:bab3be8d31cf | 54 | /// Set advertising mode Command |
dudnwjs | 0:bab3be8d31cf | 55 | GAPM_START_ADVERTISE_CMD, |
dudnwjs | 0:bab3be8d31cf | 56 | |
dudnwjs | 0:bab3be8d31cf | 57 | /// Set Scan mode Command |
dudnwjs | 0:bab3be8d31cf | 58 | GAPM_START_SCAN_CMD, |
dudnwjs | 0:bab3be8d31cf | 59 | /// Advertising or scanning report information event |
dudnwjs | 0:bab3be8d31cf | 60 | GAPM_ADV_REPORT_IND, |
dudnwjs | 0:bab3be8d31cf | 61 | |
dudnwjs | 0:bab3be8d31cf | 62 | /// Set connection initialization Command |
dudnwjs | 0:bab3be8d31cf | 63 | GAPM_START_CONNECTION_CMD, |
dudnwjs | 0:bab3be8d31cf | 64 | /// Name of peer device indication |
dudnwjs | 0:bab3be8d31cf | 65 | GAPM_PEER_NAME_IND, |
dudnwjs | 0:bab3be8d31cf | 66 | /// Confirm connection to a specific device (Connection Operation in Selective mode) |
dudnwjs | 0:bab3be8d31cf | 67 | GAPM_CONNECTION_CFM, |
dudnwjs | 0:bab3be8d31cf | 68 | |
dudnwjs | 0:bab3be8d31cf | 69 | /* Privacy update events */ |
dudnwjs | 0:bab3be8d31cf | 70 | /// Privacy flag value has been updated |
dudnwjs | 0:bab3be8d31cf | 71 | GAPM_UPDATED_PRIVACY_IND, |
dudnwjs | 0:bab3be8d31cf | 72 | /// Reconnection address has been updated |
dudnwjs | 0:bab3be8d31cf | 73 | GAPM_UPDATED_RECON_ADDR_IND, |
dudnwjs | 0:bab3be8d31cf | 74 | |
dudnwjs | 0:bab3be8d31cf | 75 | /* Security / Encryption Toolbox */ |
dudnwjs | 0:bab3be8d31cf | 76 | /// Resolve address command |
dudnwjs | 0:bab3be8d31cf | 77 | GAPM_RESOLV_ADDR_CMD, |
dudnwjs | 0:bab3be8d31cf | 78 | /// Indicate that resolvable random address has been solved |
dudnwjs | 0:bab3be8d31cf | 79 | GAPM_ADDR_SOLVED_IND, |
dudnwjs | 0:bab3be8d31cf | 80 | /// Generate a random address. |
dudnwjs | 0:bab3be8d31cf | 81 | GAPM_GEN_RAND_ADDR_CMD, |
dudnwjs | 0:bab3be8d31cf | 82 | /// Use the AES-128 block in the controller |
dudnwjs | 0:bab3be8d31cf | 83 | GAPM_USE_ENC_BLOCK_CMD, |
dudnwjs | 0:bab3be8d31cf | 84 | /// AES-128 block result indication |
dudnwjs | 0:bab3be8d31cf | 85 | GAPM_USE_ENC_BLOCK_IND, |
dudnwjs | 0:bab3be8d31cf | 86 | /// Generate a 8-byte random number |
dudnwjs | 0:bab3be8d31cf | 87 | GAPM_GEN_RAND_NB_CMD, |
dudnwjs | 0:bab3be8d31cf | 88 | /// Random Number Indication |
dudnwjs | 0:bab3be8d31cf | 89 | GAPM_GEN_RAND_NB_IND, |
dudnwjs | 0:bab3be8d31cf | 90 | |
dudnwjs | 0:bab3be8d31cf | 91 | /* Debug */ |
dudnwjs | 0:bab3be8d31cf | 92 | /// Indication containing information about memory usage. |
dudnwjs | 0:bab3be8d31cf | 93 | GAPM_DBG_MEM_INFO_IND, |
dudnwjs | 0:bab3be8d31cf | 94 | |
dudnwjs | 0:bab3be8d31cf | 95 | /* Local device information -cont */ |
dudnwjs | 0:bab3be8d31cf | 96 | /// Advertising channel Tx power level |
dudnwjs | 0:bab3be8d31cf | 97 | GAPM_DEV_ADV_TX_POWER_IND, |
dudnwjs | 0:bab3be8d31cf | 98 | |
dudnwjs | 0:bab3be8d31cf | 99 | /* Internal messages for timer events, not part of API*/ |
dudnwjs | 0:bab3be8d31cf | 100 | /// Limited discoverable timeout indication |
dudnwjs | 0:bab3be8d31cf | 101 | GAPM_LIM_DISC_TO_IND, |
dudnwjs | 0:bab3be8d31cf | 102 | /// Scan timeout indication |
dudnwjs | 0:bab3be8d31cf | 103 | GAPM_SCAN_TO_IND, |
dudnwjs | 0:bab3be8d31cf | 104 | /// Address renewal timeout indication |
dudnwjs | 0:bab3be8d31cf | 105 | GAPM_ADDR_RENEW_TO_IND, |
dudnwjs | 0:bab3be8d31cf | 106 | }; |
dudnwjs | 0:bab3be8d31cf | 107 | |
dudnwjs | 0:bab3be8d31cf | 108 | #endif //__GAPM_TASK_H__ |