@@ -64,10 +64,72 @@ class BLEHelper {
6464 bool operator !=(const BLEHelper& rhs) const ;
6565
6666 const struct bt_le_conn_param *getConnParams ();
67- void setConnParames (uint16_t intervalmin,
68- uint16_t intervalmax,
69- uint16_t latency,
70- uint16_t timeout);
67+
68+ /* *
69+ * @brief Set the connection paramter and send connection
70+ * update request
71+ *
72+ * @param[in] intervalmin Minimum Connection Interval (ms)
73+ *
74+ * @param[in] intervalmax Maximum Connection Interval (ms)
75+ *
76+ * @return none
77+ *
78+ * @note none
79+ */
80+ void setConnectionInterval (float minInterval,
81+ float maxInterval);
82+
83+ /* *
84+ * @brief Just set the connection parameter.
85+ * Not send out connection update request.
86+ *
87+ * @param[in] intervalmin Minimum Connection Interval (N * 1.25 ms)
88+ *
89+ * @param[in] intervalmax Maximum Connection Interval (N * 1.25 ms)
90+ *
91+ * @param[in] latency Connection Latency
92+ *
93+ * @param[in] timeout Supervision Timeout (N * 10 ms)
94+ *
95+ * @return none
96+ *
97+ * @note The user should care the unit
98+ */
99+ void setConnectionParameters (uint16_t intervalmin,
100+ uint16_t intervalmax,
101+ uint16_t latency,
102+ uint16_t timeout);
103+
104+ /* *
105+ * @brief Schedule the link connection update request
106+ *
107+ * @param[in] intervalmin Minimum Connection Interval (N * 1.25 ms)
108+ *
109+ * @param[in] intervalmax Maximum Connection Interval (N * 1.25 ms)
110+ *
111+ * @param[in] latency Connection Latency
112+ *
113+ * @param[in] timeout Supervision Timeout (N * 10 ms)
114+ *
115+ * @return none
116+ *
117+ * @note The user should care the unit
118+ */
119+ void updateConnectionInterval (uint16_t intervalmin,
120+ uint16_t intervalmax,
121+ uint16_t latency,
122+ uint16_t timeout);
123+
124+ /* *
125+ * @brief Schedule the link connection update request
126+ *
127+ * @return none
128+ *
129+ * @note The connection update request will not send if
130+ * parameter doesn't changed
131+ */
132+ void updateConnectionInterval ();
71133
72134 protected:
73135 void setAddress (const bt_addr_le_t &address);
0 commit comments