Data Structures | |
struct | rssi_util_t |
Rssi util instance structure. More... | |
Macros | |
#define | RSSI_UTIL_MODEL_ID 0x0007 |
Model ID for the RSSI Util model. More... | |
Enumerations | |
enum | rssi_util_opcode_t { RSSI_OPCODE_REQUEST_DATABASE_BEACON = 0xC7, RSSI_OPCODE_SEND_DATABASE_BEACON = 0xC8 } |
Rssi model opcodes. More... | |
Functions | |
uint32_t | rssi_util_init (rssi_util_t *p_util) |
Initializes the rssi util model. More... | |
uint32_t | rssi_util_mac_to_element_addr_find (rssi_util_t *p_util, const uint8_t *p_mac_addr, dsm_local_unicast_address_t *p_element_addr) |
Searches for a corresponding element address to a ingoing mac address. More... | |
#define RSSI_UTIL_MODEL_ID 0x0007 |
Model ID for the RSSI Util model.
Definition at line 52 of file rssi_util.h.
enum rssi_util_opcode_t |
Rssi model opcodes.
Definition at line 64 of file rssi_util.h.
uint32_t rssi_util_init | ( | rssi_util_t * | p_util | ) |
Initializes the rssi util model.
[in,out] | p_util | Pointer to the rssi util instance structure. |
NRF_SUCCESS | The model was successfully initialized. |
uint32_t rssi_util_mac_to_element_addr_find | ( | rssi_util_t * | p_util, |
const uint8_t * | p_mac_addr, | ||
dsm_local_unicast_address_t * | p_element_addr | ||
) |
Searches for a corresponding element address to a ingoing mac address.
Starts the process of gathering mac/element address pairs from nearby nodes if the corresponding element address is not found
[in] | p_util | Pointer to the rssi util instance structure. |
[in] | p_mac_addr | pointer to the ingoing mac address. |
[in,out] | p_element_addr | pointer to where the corresponding element address is to be stored. |
NRF_SUCCESS | A corresponding element address was found. |
NRF_ERROR_NULL | NULL pointer in function arguments |
NRF_ERROR_NOT_FOUND | A corresponding element address was not found. |