sevencore fota solution development project
Diff: dialog_fota/gapc_task.h
- Revision:
- 5:e11b23f9aacc
- Parent:
- 4:60be78a172c2
- Child:
- 9:fcf91f563147
--- a/dialog_fota/gapc_task.h Wed Jun 24 08:50:07 2015 +0000 +++ b/dialog_fota/gapc_task.h Mon Jul 13 06:32:05 2015 +0000 @@ -2,6 +2,7 @@ #define GAPC_TASK_H #include "dialog_fota_config.h" +#include "gap.h" namespace sevencore_fota{ /// GAP Controller Task messages @@ -205,6 +206,39 @@ /// Peer BT address struct bd_addr peer_addr; }; - + + + +/// Indicate that a link has been disconnected +struct gapc_disconnect_ind +{ + /// Connection handle + uint16_t conhdl; + /// Reason of disconnection + uint8_t reason; +}; + +/// Set specific link data configuration. +struct gapc_connection_cfm +{ + /// Local CSRK value + struct gap_sec_key lcsrk; + /// Local signature counter value + uint32_t lsign_counter; + + /// Remote CSRK value + struct gap_sec_key rcsrk; + /// Remote signature counter value + uint32_t rsign_counter; + + /// Authentication (@see gap_auth) + uint8_t auth; + /// Peer device is authorized to access database parameters requiring authorizations. + /// - GAP_AUTHZ_NOT_SET: Authorization not set + /// - GAP_AUTHZ_ACCEPT: Authorization automatically accepted + /// - GAP_AUTHZ_REJECT: Authorization automatically rejected + uint8_t authorize; +}; + }//namespace #endif//GAPC_TASK_H