nRF5 SDK for Mesh v5.0.0
Data Fields
app_sensor_server_t Struct Reference

Application level structure holding the Sensor server model context and sensor state representation. More...

#include <app_sensor.h>

Data Fields

sensor_setup_server_t server
 
app_sensor_get_cb_t sensor_get_cb
 Callback to be called for requesting current sensor data from the user application.
 
app_sensor_settings_get_cb_t sensor_settings_get_cb
 Callback to be called for requesting settings from the user application.
 
app_sensor_setting_set_cb_t sensor_setting_set_cb
 Callback to be called for informing the user application to update the settings.
 
app_sensor_setting_get_cb_t sensor_setting_get_cb
 Callback to be called for requesting a setting from the user application.
 
app_sensor_column_get_cb_t sensor_column_get_cb
 Callback to be called for requesting a column of formatted sensor data from the user application.
 
app_sensor_series_get_cb_t sensor_series_get_cb
 Callback to be called for requesting a series of formatted sensor data from the user application.
 
uint16_t * p_sensor_property_array
 Array of the supported property IDs.
 
app_timer_id_t const * p_cadence_timer_ids
 array of timer IDs for supporting fast cadence.
 
app_timer_id_t const * p_min_interval_timer_ids
 array of timer IDs for enforcing status min interval.
 
uint16_t sensor_num_desc
 Main's descriptor definition - passed in by main (main's static const) - mid app uses this to create its internal static variable in message-appropriate format. More...
 
const sensor_descriptor_tp_sensor_descriptor
 
uint8_t * p_message_buffer
 Points to the message buffer.
 
uint16_t message_buffer_bytes
 The number of bytes of buffer space at p_message_buffer.
 
app_sensor_state_t state
 Internal variable. More...
 
descriptor_status_t * p_descriptor_message
 mid-app's packed version of the descriptor
 

Detailed Description

Application level structure holding the Sensor server model context and sensor state representation.

Definition at line 266 of file app_sensor.h.

Field Documentation

◆ sensor_num_desc

uint16_t app_sensor_server_t::sensor_num_desc

Main's descriptor definition - passed in by main (main's static const) - mid app uses this to create its internal static variable in message-appropriate format.

This descriptor is not packed (not appropriate to send in a message).

Definition at line 311 of file app_sensor.h.

◆ state

app_sensor_state_t app_sensor_server_t::state

Internal variable.

Representation of the Sensor state-related data

Definition at line 324 of file app_sensor.h.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated