Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
ec145244
Commit
ec145244
authored
Nov 28, 2017
by
Chun Fan
Browse files
Refactor reset function for v2
parent
f302feaf
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/sd_api_v2/sdk/components/serialization/application/codecs/common/conn_systemreset.c
View file @
ec145244
...
...
@@ -35,10 +35,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "ble_app.h"
#include "ble_serialization.h"
#include "conn_systemreset.h"
uint32_t
conn_systemreset
_enc
(
uint8_t
*
const
p_buf
,
uint32_t
conn_systemreset
(
uint8_t
*
const
p_buf
,
uint32_t
*
const
p_buf_len
)
{
uint32_t
index
=
0
;
...
...
src/sd_api_v2/sdk/components/serialization/application/codecs/common/conn_systemreset.h
View file @
ec145244
...
...
@@ -42,6 +42,11 @@
extern
"C"
{
#endif
enum
CONN_SVCS
{
CONN_SYSTEMRESET
=
0
,
};
/**
* @addtogroup ser_codecs Serialization codecs
* @ingroup ble_sdk_lib_serialization
...
...
@@ -67,6 +72,8 @@ extern "C" {
* @retval NRF_ERROR_INTERNAL Encoding failure. Transport error.
*/
// uint32_t conn_systemreset(void);
uint32_t
conn_systemreset
(
uint8_t
*
const
p_buf
,
uint32_t
*
const
p_buf_len
);
/** @} */
#ifdef __cplusplus
...
...
src/sd_api_v2/sdk/components/serialization/application/codecs/s130/serializers/ble_app.h
View file @
ec145244
...
...
@@ -473,10 +473,6 @@ uint32_t ble_event_dec(uint8_t const * const p_buf,
ble_evt_t
*
const
p_event
,
uint32_t
*
const
p_event_len
);
uint32_t
conn_systemreset_enc
(
uint8_t
*
const
p_buf
,
uint32_t
*
const
p_buf_len
);
/** @} */
#ifdef __cplusplus
}
...
...
src/sd_api_v2/sdk/components/softdevice/s132/headers/ble.h
View file @
ec145244
...
...
@@ -78,7 +78,6 @@ enum BLE_COMMON_SVCS
SD_BLE_USER_MEM_REPLY
,
/**< User Memory Reply. */
SD_BLE_OPT_SET
,
/**< Set a BLE option. */
SD_BLE_OPT_GET
,
/**< Get a BLE option. */
CONN_SYSTEMRESET
,
};
/**
...
...
@@ -622,10 +621,6 @@ SD_RPC_API uint32_t sd_ble_opt_set(adapter_t *adapter, uint32_t opt_id, ble_opt_
*/
SD_RPC_API
uint32_t
sd_ble_opt_get
(
adapter_t
*
adapter
,
uint32_t
opt_id
,
ble_opt_t
*
p_opt
);
// TODO: Relocate conn_systemrest to a better place.
// TODO: Add comments for conn_systemreset function, both here and enc header.
SD_RPC_API
uint32_t
conn_systemreset
(
adapter_t
*
adapter
);
/** @} */
#ifdef __cplusplus
}
...
...
src/sd_api_v5/sdk/components/serialization/application/codecs/common/conn_systemreset.h
View file @
ec145244
...
...
@@ -43,10 +43,12 @@
#ifdef __cplusplus
extern
"C"
{
#endif
enum
CONN_SVCS
{
CONN_SYSTEMRESET
=
0
,
};
/**
* @addtogroup ser_codecs Serialization codecs
* @ingroup ble_sdk_lib_serialization
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment