nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ EXT_API_REQ

#define EXT_API_REQ ( name,
req,
type,
var_name )

#include <include/fw_info.h>

Value:
Z_GENERIC_SECTION(.ext_apis_req) \
const uint8_t _CONCAT(var_name, _ext_api_req_counter) = 0xFF; \
__noinit const struct __packed \
{ \
struct fw_info_ext_api header; \
type ext_api; \
} *var_name; \
Z_GENERIC_SECTION(.firmware_info.2) \
__attribute__((used)) \
const struct fw_info_ext_api_request _CONCAT(var_name, _req) = \
{ \
.request = {\
.magic = {EXT_API_MAGIC}, \
.ext_api_id = CONFIG_ ## name ## _EXT_API_ID, \
.ext_api_flags = CONFIG_ ## name ## _EXT_API_FLAGS, \
.ext_api_version = CONFIG_ ## name ## _EXT_API_VER, \
.ext_api_len = sizeof(struct fw_info_ext_api_request), \
}, \
.ext_api_max_version = CONFIG_ ## name ## _EXT_API_MAX_VER, \
.required = req, \
.ext_api = (void *) &var_name, \
}
uint32_t ext_api_max_version
Definition fw_info_bare.h:105
Definition fw_info_bare.h:98
Definition fw_info_bare.h:42