BLE_API_Tiny_BLE
Fork of BLE_API by
Diff: public/Gap.h
- Revision:
- 360:7d37e1adef33
- Parent:
- 359:611485c370f5
- Child:
- 361:9686f5c882fa
--- a/public/Gap.h Fri May 08 15:35:47 2015 +0100 +++ b/public/Gap.h Fri May 08 15:35:47 2015 +0100 @@ -64,6 +64,14 @@ uint16_t connectionSupervisionTimeout; /**< Connection Supervision Timeout in 10 ms units, see @ref BLE_GAP_CP_LIMITS.*/ } ConnectionParams_t; + enum SecurityMode_t { + SECURITY_MODE_ENCRYPTION_OPEN_LINK = 0x00, /**< Set security mode to require no protection, open link. */ + SECURITY_MODE_ENCRYPTION_NO_MITM = 0x01, /**< Set security mode to require encryption, but no MITM protection. */ + SECURITY_MODE_ENCRYPTION_WITH_MITM = 0x02, /**< Set security mode to require encryption and MITM protection. */ + SECURITY_MODE_SIGNED_NO_MITM = 0x04, /**< Set security mode to require signing or encryption, but no MITM protection. */ + SECURITY_MODE_SIGNED_WITH_MITM = 0x08, /**< Set security mode to require signing or encryption, and MITM protection. */ + }; + /** * @brief Defines possible security status/states. *