R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information
Fork of nrf51-sdk by
This section describes a module's internal data structures. More...
Typedefs | |
typedef ret_code_t(* | service_context_access_t )(pstorage_handle_t const *p_block_handle, dm_handle_t const *p_handle) |
Function for performing necessary action of storing each of the service context as registered by the application. | |
typedef ret_code_t(* | service_context_apply_t )(dm_handle_t *p_handle) |
Function for performing necessary action of applying the context information. | |
typedef uint32_t(* | storage_operation )(pstorage_handle_t *p_dest, uint8_t *p_src, pstorage_size_t size, pstorage_size_t offset) |
Function for performing necessary functions of storing or updating. | |
Functions | |
STATIC_ASSERT (sizeof(peer_id_t)%4==0) | |
Check to ensure Peer identification information is a multiple of 4. | |
STATIC_ASSERT (sizeof(bond_context_t)%4==0) | |
Check to ensure bond information is a multiple of 4. | |
STATIC_ASSERT (sizeof(dm_gatts_context_t)%4==0) | |
Check to ensure GATT Server Attributes size and data information is a multiple of 4. | |
STATIC_ASSERT (sizeof(dm_gatt_client_context_t)%4==0) | |
Check to ensure GATT Client context information is a multiple of 4. | |
STATIC_ASSERT ((DEVICE_MANAGER_APP_CONTEXT_SIZE%4)==0) | |
Check to ensure device manager application context information is a multiple of 4. |
Detailed Description
This section describes a module's internal data structures.
Typedef Documentation
typedef ret_code_t(* service_context_access_t)(pstorage_handle_t const *p_block_handle, dm_handle_t const *p_handle) |
Function for performing necessary action of storing each of the service context as registered by the application.
- Parameters:
-
[in] p_block_handle Storage block identifier. [in] p_handle Device handle identifying device that is stored.
- Return values:
-
Operation result code.
Definition at line 447 of file device_manager_peripheral.c.
typedef ret_code_t(* service_context_apply_t)(dm_handle_t *p_handle) |
Function for performing necessary action of applying the context information.
- Parameters:
-
[in] p_handle Device handle identifying device that is stored.
- Return values:
-
Operation result code.
Definition at line 456 of file device_manager_peripheral.c.
typedef uint32_t(* storage_operation)(pstorage_handle_t *p_dest, uint8_t *p_src, pstorage_size_t size, pstorage_size_t offset) |
Function for performing necessary functions of storing or updating.
- Parameters:
-
[in] p_dest Destination address where data is stored persistently. [in] p_src Source address containing data to be stored. [in] size Size of data to be stored expressed in bytes. Must be word aligned. [in] offset Offset in bytes to be applied when writing to the block.
- Return values:
-
Operation result code.
Definition at line 467 of file device_manager_peripheral.c.
Function Documentation
STATIC_ASSERT | ( | sizeof(peer_id_t)% | 4 = =0 ) |
Check to ensure Peer identification information is a multiple of 4.
STATIC_ASSERT | ( | (DEVICE_MANAGER_APP_CONTEXT_SIZE%4) | = =0 ) |
Check to ensure device manager application context information is a multiple of 4.
STATIC_ASSERT | ( | sizeof(dm_gatt_client_context_t)% | 4 = =0 ) |
Check to ensure GATT Client context information is a multiple of 4.
STATIC_ASSERT | ( | sizeof(dm_gatts_context_t)% | 4 = =0 ) |
Check to ensure GATT Server Attributes size and data information is a multiple of 4.
STATIC_ASSERT | ( | sizeof(bond_context_t)% | 4 = =0 ) |
Check to ensure bond information is a multiple of 4.
Generated on Tue Jul 12 2022 19:00:13 by 1.7.2