nrfxlib API 0.1.0
|
#define NRF_RPC_CONTAINER_OF | ( | _ptr, | |
_type, | |||
_field_name | |||
) | ((_type *)(((uint8_t *)_ptr) - offsetof(_type, _field_name))) |
#include <nrf_rpc/include/nrf_rpc_common.h>
Retrieve pointer to parent structure.
[in] | _ptr | Pointer to data. |
[in] | _type | Parent structure data type. |
[in] | _field_name | Data field name in parent structure. |