Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Peer Data
[Peer_manager]
An internal module of Peer_manager. More...
Functions | |
| void | peer_data_parts_get (pm_peer_data_const_t const *p_peer_data, fds_record_chunk_t *p_chunks, uint16_t *p_n_chunks) |
| Function for enumerating the separate (non-contiguous) parts of the peer data. | |
| ret_code_t | peer_data_deserialize (pm_peer_data_flash_t const *p_in_data, pm_peer_data_t *p_out_data) |
| Function for converting pm_peer_data_flash_t into pm_peer_data_t. | |
Detailed Description
An internal module of Peer_manager.
This module defines the structure of the data that is managed by the Peer_manager. It also provides functions for parsing the data.
Function Documentation
| ret_code_t peer_data_deserialize | ( | pm_peer_data_flash_t const * | p_in_data, |
| pm_peer_data_t * | p_out_data | ||
| ) |
Function for converting pm_peer_data_flash_t into pm_peer_data_t.
- Parameters:
-
[in] p_in_data The source data. [out] p_out_data The target data structure.
- Return values:
-
NRF_SUCCESS Successful conversion. NRF_ERROR_NULL A parameter was NULL. NRF_ERROR_NO_MEM A buffer was not large enough.
Definition at line 93 of file peer_data.c.
| void peer_data_parts_get | ( | pm_peer_data_const_t const * | p_peer_data, |
| fds_record_chunk_t * | p_chunks, | ||
| uint16_t * | p_n_chunks | ||
| ) |
Function for enumerating the separate (non-contiguous) parts of the peer data.
- Parameters:
-
[in] p_peer_data The peer data to enumerate. [out] p_chunks The resulting chunks. This must be an array of at least 2 elements. [out] p_n_chunks The number of chunks. If this is 0, something went wrong.
Definition at line 43 of file peer_data.c.
Generated on Tue Jul 12 2022 19:52:04 by
1.7.2
