Data Structures | |
| struct | raw_rssi_data_entry_t |
| Structure for holding the raw rssi data from each node before it is handled and sent to the rssi client. More... | |
| struct | rssi_server_t |
| Rssi server instance structure. More... | |
Functions | |
| uint32_t | rssi_server_init (rssi_server_t *p_server, uint16_t element_index) |
| Initializes the RSSI server model. More... | |
| uint32_t | rssi_server_add_rssi_data (uint16_t test_address, int8_t rssi) |
| Adds RSSI data samples to the models databuffer. More... | |
Detailed Description
Function Documentation
◆ rssi_server_init()
| uint32_t rssi_server_init | ( | rssi_server_t * | p_server, |
| uint16_t | element_index | ||
| ) |
Initializes the RSSI server model.
- Parameters
-
[in,out] p_server Pointer to the server instance structure. [in] element_index Element index to use when registering the RSSI server.
- Return values
-
NRF_SUCCESS The model was successfully initialized. NRF_ERROR_NULL NULL pointer in function arguments
- See also
- access_model_add()
◆ rssi_server_add_rssi_data()
| uint32_t rssi_server_add_rssi_data | ( | uint16_t | test_address, |
| int8_t | rssi | ||
| ) |
Adds RSSI data samples to the models databuffer.
- Parameters
-
[in] test_address The address of the device this RSSI sample was recieved from. [in] rssi The RSSI sample value.
- Return values
-
NRF_SUCCESS The data was added successfully NRF_ERROR_NO_MEM No room for new entries in the data buffer NRF_ERROR_INVALID_PARAM Invalid address parameter