/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | ipso_filling_sensor.c | 29 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_FILLING_SENSOR_INSTANCE_COUNT macro 43 static uint32_t container_height[MAX_INSTANCE_COUNT]; /* cm */ 44 static double actual_fill_percentage[MAX_INSTANCE_COUNT]; 45 static uint32_t actual_fill_level[MAX_INSTANCE_COUNT]; /* cm */ 46 static double high_threshold[MAX_INSTANCE_COUNT]; 47 static bool container_full[MAX_INSTANCE_COUNT]; 48 static double low_threshold[MAX_INSTANCE_COUNT]; 49 static bool container_empty[MAX_INSTANCE_COUNT]; 50 static double average_fill_speed[MAX_INSTANCE_COUNT]; 51 static time_t forecast_full_date[MAX_INSTANCE_COUNT]; [all …]
|
D | ipso_light_control.c | 32 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_LIGHT_CONTROL_INSTANCE_COUNT macro 44 static bool on_off_value[MAX_INSTANCE_COUNT]; 45 static uint8_t dimmer_value[MAX_INSTANCE_COUNT]; 46 static int32_t on_time_value[MAX_INSTANCE_COUNT]; 47 static uint32_t on_time_offset[MAX_INSTANCE_COUNT]; 48 static double cumulative_active_value[MAX_INSTANCE_COUNT]; 49 static double power_factor_value[MAX_INSTANCE_COUNT]; 50 static char colour[MAX_INSTANCE_COUNT][LIGHT_STRING_LONG]; 51 static char units[MAX_INSTANCE_COUNT][LIGHT_STRING_SHORT]; 65 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; [all …]
|
D | ipso_current_sensor.c | 35 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_CURRENT_SENSOR_INSTANCE_COUNT macro 50 static double sensor_value[MAX_INSTANCE_COUNT]; 51 static char units[MAX_INSTANCE_COUNT][UNIT_STR_MAX_SIZE]; 52 static double min_measured_value[MAX_INSTANCE_COUNT]; 53 static double max_measured_value[MAX_INSTANCE_COUNT]; 54 static double min_range_value[MAX_INSTANCE_COUNT]; 55 static double max_range_value[MAX_INSTANCE_COUNT]; 56 static double calibration_coefficient[MAX_INSTANCE_COUNT]; 57 static char app_type[MAX_INSTANCE_COUNT][APP_TYPE_STR_MAX_SIZE]; 78 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; [all …]
|
D | ipso_voltage_sensor.c | 36 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_VOLTAGE_SENSOR_INSTANCE_COUNT macro 51 static double sensor_value[MAX_INSTANCE_COUNT]; 52 static char units[MAX_INSTANCE_COUNT][UNIT_STR_MAX_SIZE]; 53 static double min_measured_value[MAX_INSTANCE_COUNT]; 54 static double max_measured_value[MAX_INSTANCE_COUNT]; 55 static double min_range_value[MAX_INSTANCE_COUNT]; 56 static double max_range_value[MAX_INSTANCE_COUNT]; 57 static double calibration_coefficient[MAX_INSTANCE_COUNT]; 58 static char app_type[MAX_INSTANCE_COUNT][APP_TYPE_STR_MAX_SIZE]; 79 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; [all …]
|
D | ipso_temp_sensor.c | 37 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_TEMP_SENSOR_INSTANCE_COUNT macro 49 static double sensor_value[MAX_INSTANCE_COUNT]; 50 static char units[MAX_INSTANCE_COUNT][UNIT_STR_MAX_SIZE]; 51 static double min_measured_value[MAX_INSTANCE_COUNT]; 52 static double max_measured_value[MAX_INSTANCE_COUNT]; 53 static double min_range_value[MAX_INSTANCE_COUNT]; 54 static double max_range_value[MAX_INSTANCE_COUNT]; 74 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 75 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][TEMP_MAX_ID]; 77 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; [all …]
|
D | ipso_generic_sensor.c | 37 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_GENERIC_SENSOR_INSTANCE_COUNT macro 59 static double sensor_value[MAX_INSTANCE_COUNT]; 60 static char units[MAX_INSTANCE_COUNT][UNIT_STR_MAX_SIZE]; 61 static double min_measured_value[MAX_INSTANCE_COUNT]; 62 static double max_measured_value[MAX_INSTANCE_COUNT]; 63 static double min_range_value[MAX_INSTANCE_COUNT]; 64 static double max_range_value[MAX_INSTANCE_COUNT]; 65 static char app_type[MAX_INSTANCE_COUNT][APP_TYPE_STR_MAX_SIZE]; 66 static char sensor_type[MAX_INSTANCE_COUNT][SENSOR_TYPE_STR_MAX_SIZE]; 87 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; [all …]
|
D | lwm2m_obj_security.c | 56 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_SECURITY_INSTANCE_COUNT macro 77 static char security_uri[MAX_INSTANCE_COUNT][SECURITY_URI_LEN]; 78 static uint8_t client_identity[MAX_INSTANCE_COUNT][IDENTITY_LEN]; 79 static uint8_t server_pk[MAX_INSTANCE_COUNT][KEY_LEN]; 80 static uint8_t secret_key[MAX_INSTANCE_COUNT][KEY_LEN]; 81 static bool bootstrap_flag[MAX_INSTANCE_COUNT]; 82 static uint8_t security_mode[MAX_INSTANCE_COUNT]; 83 static uint16_t short_server_id[MAX_INSTANCE_COUNT]; 109 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 110 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][SECURITY_MAX_ID]; [all …]
|
D | lwm2m_obj_gateway.c | 33 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_GATEWAY_MAX_INSTANCES macro 51 static struct lwm2m_gw_obj device_table[MAX_INSTANCE_COUNT]; 59 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 60 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][GATEWAY_MAX_ID]; 61 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 62 lwm2m_engine_gateway_msg_cb gateway_msg_cb[MAX_INSTANCE_COUNT]; 79 for (i = 0; i < MAX_INSTANCE_COUNT; i++) { in prefix_validation_cb() 99 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in lwm2m_gw_create() 108 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in lwm2m_gw_create() 114 if (index >= MAX_INSTANCE_COUNT) { in lwm2m_gw_create() [all …]
|
D | ipso_humidity_sensor.c | 32 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_HUMIDITY_SENSOR_INSTANCE_COUNT macro 48 static double sensor_value[MAX_INSTANCE_COUNT]; 49 static char units[MAX_INSTANCE_COUNT][UNIT_STR_MAX_SIZE]; 50 static double min_measured_value[MAX_INSTANCE_COUNT]; 51 static double max_measured_value[MAX_INSTANCE_COUNT]; 52 static double min_range_value[MAX_INSTANCE_COUNT]; 53 static double max_range_value[MAX_INSTANCE_COUNT]; 73 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 74 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][NUMBER_OF_OBJ_FIELDS]; 75 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] [all …]
|
D | ipso_pressure_sensor.c | 32 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_PRESSURE_SENSOR_INSTANCE_COUNT macro 48 static double sensor_value[MAX_INSTANCE_COUNT]; 49 static char units[MAX_INSTANCE_COUNT][UNIT_STR_MAX_SIZE]; 50 static double min_measured_value[MAX_INSTANCE_COUNT]; 51 static double max_measured_value[MAX_INSTANCE_COUNT]; 52 static double min_range_value[MAX_INSTANCE_COUNT]; 53 static double max_range_value[MAX_INSTANCE_COUNT]; 74 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 75 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][NUMBER_OF_OBJ_FIELDS]; 76 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] [all …]
|
D | ucifi_battery.c | 31 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_UCIFI_BATTERY_INSTANCE_COUNT macro 37 static uint8_t battery_level[MAX_INSTANCE_COUNT]; 38 static uint32_t supply_loss_counter[MAX_INSTANCE_COUNT]; 56 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 57 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][BATTERY_MAX_ID]; 58 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 72 for (i = 0; i < MAX_INSTANCE_COUNT; i++) { in supply_loss_counter_reset_cb() 87 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in battery_create() 96 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in battery_create() 102 if (index >= MAX_INSTANCE_COUNT) { in battery_create() [all …]
|
D | lwm2m_obj_portfolio.c | 34 #define MAX_INSTANCE_COUNT 2 macro 59 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 60 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][PORTFOLIO_MAX_ID]; 61 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 62 static char identity[MAX_INSTANCE_COUNT][PORTFOLIO_IDENTITY_MAX][DEFAULT_IDENTITY_BUFFER_LENGTH]; 118 portfolio.max_instance_count = MAX_INSTANCE_COUNT; in lwm2m_portfolio_init()
|
D | lwm2m_obj_server.c | 35 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_SERVER_INSTANCE_COUNT macro 47 static uint16_t server_id[MAX_INSTANCE_COUNT]; 48 static uint32_t lifetime[MAX_INSTANCE_COUNT]; 49 static uint32_t default_min_period[MAX_INSTANCE_COUNT]; 50 static uint32_t default_max_period[MAX_INSTANCE_COUNT]; 51 static k_timepoint_t disabled_until[MAX_INSTANCE_COUNT]; 52 static uint32_t disabled_timeout[MAX_INSTANCE_COUNT]; 53 static uint8_t server_flag_store_notify[MAX_INSTANCE_COUNT]; 54 static char transport_binding[MAX_INSTANCE_COUNT][TRANSPORT_BINDING_LEN]; 56 static uint8_t priority[MAX_INSTANCE_COUNT]; [all …]
|
D | lwm2m_obj_firmware.c | 25 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_INSTANCE_COUNT macro 27 #define MAX_INSTANCE_COUNT 1 macro 57 static uint8_t update_state[MAX_INSTANCE_COUNT]; 58 static uint8_t update_result[MAX_INSTANCE_COUNT]; 59 static uint8_t delivery_method[MAX_INSTANCE_COUNT]; 60 static char package_uri[MAX_INSTANCE_COUNT][PACKAGE_URI_LEN]; 76 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 77 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][FIRMWARE_MAX_ID]; 78 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 80 static lwm2m_engine_set_data_cb_t write_cb[MAX_INSTANCE_COUNT]; [all …]
|
D | lwm2m_obj_binaryappdata.c | 32 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_BINARYAPPDATA_INSTANCE_COUNT macro 53 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 54 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][BINARYAPPDATA_MAX_ID]; 55 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 115 lwm2m_binaryappdata.max_instance_count = MAX_INSTANCE_COUNT; in lwm2m_binaryappdata_init()
|
D | ucifi_lpwan.c | 31 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_UCIFI_LPWAN_INSTANCE_COUNT macro 89 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 90 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][UCIFI_LPWAN_MAX_RID]; 91 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 94 static char mac[MAX_INSTANCE_COUNT][MAC_ADDRESS_SIZE]; 101 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in lpwan_create() 108 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in lpwan_create() 114 if (index >= MAX_INSTANCE_COUNT) { in lpwan_create() 174 lpwan.max_instance_count = MAX_INSTANCE_COUNT; in ucifi_lpwan_init()
|
D | ipso_accelerometer.c | 35 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_ACCELEROMETER_INSTANCE_COUNT macro 52 static struct ipso_accel_data accel_data[MAX_INSTANCE_COUNT]; 71 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 72 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][ACCEL_MAX_ID]; 74 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT];
|
D | ipso_push_button.c | 35 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_PUSH_BUTTON_INSTANCE_COUNT macro 51 static struct ipso_button_data button_data[MAX_INSTANCE_COUNT]; 64 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 65 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][BUTTON_MAX_ID]; 67 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT];
|
D | ipso_timer.c | 30 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_TIMER_INSTANCE_COUNT macro 66 static struct ipso_timer_data timer_data[MAX_INSTANCE_COUNT]; 83 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 84 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][TIMER_MAX_ID]; 86 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 92 for (i = 0; i < MAX_INSTANCE_COUNT; i++) { in get_timer_index() 283 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in timer_inst_create() 364 ipso_timer.max_instance_count = MAX_INSTANCE_COUNT; in ipso_timer_init()
|
D | ipso_buzzer.c | 36 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_BUZZER_INSTANCE_COUNT macro 59 static struct ipso_buzzer_data buzzer_data[MAX_INSTANCE_COUNT]; 79 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 80 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][BUZZER_MAX_ID]; 82 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT];
|
D | ipso_onoff_switch.c | 35 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_IPSO_ONOFF_SWITCH_INSTANCE_COUNT macro 54 static struct ipso_switch_data switch_data[MAX_INSTANCE_COUNT]; 69 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 70 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][SWITCH_MAX_ID]; 72 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT];
|
D | lwm2m_obj_swmgmt.c | 50 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_SWMGMT_MAX_INSTANCE_COUNT macro 80 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 81 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][SWMGMT_MAX_ID]; 82 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; 245 static struct lwm2m_swmgmt_data swmgmt_data[MAX_INSTANCE_COUNT] = { 0 }; 251 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in find_index() 687 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in swmgmt_create() 696 for (index = 0; index < MAX_INSTANCE_COUNT; index++) { in swmgmt_create() 702 if (index >= MAX_INSTANCE_COUNT) { in swmgmt_create() 794 swmgmt.max_instance_count = MAX_INSTANCE_COUNT; in lwm2m_swmgmt_init()
|
D | lwm2m_obj_access_control.c | 61 #define MAX_INSTANCE_COUNT CONFIG_LWM2M_ACCESS_CONTROL_INSTANCE_COUNT macro 78 static struct ac_data ac_data[MAX_INSTANCE_COUNT]; 89 static struct lwm2m_engine_obj_inst inst[MAX_INSTANCE_COUNT]; 90 static struct lwm2m_engine_res res[MAX_INSTANCE_COUNT][ACCESS_CONTROL_MAX_ID]; 95 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT]
|