Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 39) sorted by relevance

12

/btstack/src/ble/gatt-service/
H A Dcycling_power_service_server.c227 cycling_power_t * instance = &cycling_power; in cycling_power_service_read_callback() local
229 if (attribute_handle == instance->measurement_client_configuration_descriptor_handle){ in cycling_power_service_read_callback()
231 … little_endian_store_16(buffer, 0, instance->measurement_client_configuration_descriptor_notify); in cycling_power_service_read_callback()
236 if (attribute_handle == instance->measurement_server_configuration_descriptor_handle){ in cycling_power_service_read_callback()
238 …little_endian_store_16(buffer, 0, instance->measurement_server_configuration_descriptor_broadcast); in cycling_power_service_read_callback()
243 if (attribute_handle == instance->vector_client_configuration_descriptor_handle){ in cycling_power_service_read_callback()
245 … little_endian_store_16(buffer, 0, instance->vector_client_configuration_descriptor_notify); in cycling_power_service_read_callback()
250 if (attribute_handle == instance->control_point_client_configuration_descriptor_handle){ in cycling_power_service_read_callback()
252 …little_endian_store_16(buffer, 0, instance->control_point_client_configuration_descriptor_indicate… in cycling_power_service_read_callback()
257 if (attribute_handle == instance->feature_value_handle){ in cycling_power_service_read_callback()
[all …]
H A Dcycling_speed_and_cadence_service_server.c103 cycling_speed_and_cadence_t * instance = &cycling_speed_and_cadence; in cycling_speed_and_cadence_service_packet_handler() local
109 instance->wawiting_for_indication = false; in cycling_speed_and_cadence_service_packet_handler()
120 cycling_speed_and_cadence_t * instance = &cycling_speed_and_cadence; in cycling_speed_and_cadence_service_read_callback() local
122 if (attribute_handle == instance->measurement_client_configuration_descriptor_handle){ in cycling_speed_and_cadence_service_read_callback()
124 little_endian_store_16(buffer, 0, instance->measurement_client_configuration_descriptor_notify); in cycling_speed_and_cadence_service_read_callback()
129 if (attribute_handle == instance->control_point_client_configuration_descriptor_handle){ in cycling_speed_and_cadence_service_read_callback()
131 …little_endian_store_16(buffer, 0, instance->control_point_client_configuration_descriptor_indicate… in cycling_speed_and_cadence_service_read_callback()
136 if (attribute_handle == instance->feature_handle){ in cycling_speed_and_cadence_service_read_callback()
138 …uint16_t feature = (instance->wheel_revolution_data_supported << CSC_FLAG_WHEEL_REVOLUTION_DATA_SU… in cycling_speed_and_cadence_service_read_callback()
139 …feature |= (instance->crank_revolution_data_supported << CSC_FLAG_CRANK_REVOLUTION_DATA_SUPPORTED); in cycling_speed_and_cadence_service_read_callback()
[all …]
H A Dublox_spp_service_server.c95 static void ublox_spp_service_emit_state(ublox_spp_service_t * instance, bool enabled){ in ublox_spp_service_emit_state() argument
101 little_endian_store_16(event,pos, instance->con_handle); in ublox_spp_service_emit_state()
103 (*instance->client_packet_handler)(HCI_EVENT_PACKET, 0, event, pos); in ublox_spp_service_emit_state()
106 static int ublox_spp_service_flow_control_enabled(ublox_spp_service_t * instance){ in ublox_spp_service_flow_control_enabled() argument
107 return instance->credits_client_configuration_descriptor_value; in ublox_spp_service_flow_control_enabled()
111 ublox_spp_service_t * instance = &ublox_spp; in ublox_get_instance_for_con_handle() local
113 instance->con_handle = con_handle; in ublox_get_instance_for_con_handle()
114 return instance; in ublox_get_instance_for_con_handle()
117 static inline void ublox_spp_service_init_credits(ublox_spp_service_t * instance){ in ublox_spp_service_init_credits() argument
118 instance->incoming_credits = 0; in ublox_spp_service_init_credits()
[all …]
H A Dheart_rate_service_server.c146 heart_rate_t * instance = &heart_rate; in heart_rate_service_server_init() local
148 instance->sensor_location = location; in heart_rate_service_server_init()
149 instance->energy_expended_supported = energy_expended_supported; in heart_rate_service_server_init()
159instance->measurement_value_handle = gatt_server_get_value_handle_for_characteristic_with_uuid16(s… in heart_rate_service_server_init()
160instance->measurement_client_configuration_descriptor_handle = gatt_server_get_client_configuratio… in heart_rate_service_server_init()
162instance->sensor_location_value_handle = gatt_server_get_value_handle_for_characteristic_with_uuid… in heart_rate_service_server_init()
164instance->control_point_value_handle = gatt_server_get_value_handle_for_characteristic_with_uuid16… in heart_rate_service_server_init()
166 log_info("Measurement value handle 0x%02x", instance->measurement_value_handle); in heart_rate_service_server_init()
167 …log_info("Client Config value handle 0x%02x", instance->measurement_client_configuration_descrip… in heart_rate_service_server_init()
168 log_info("Sensor location value handle 0x%02x", instance->sensor_location_value_handle); in heart_rate_service_server_init()
[all …]
H A Dhids_device.c144 hids_device_t * instance = hids_device_get_instance_for_con_handle(con_handle); in hids_device_emit_event_with_uint8() local
145 if (!instance){ in hids_device_emit_event_with_uint8()
161 hids_device_t * instance = hids_device_get_instance_for_con_handle(con_handle); in hids_device_emit_event_with_uint8_uint8_t() local
162 if (!instance){ in hids_device_emit_event_with_uint8_uint8_t()
179 hids_device_t * instance = hids_device_get_instance_for_con_handle(con_handle); in hids_device_emit_event() local
180 if (!instance){ in hids_device_emit_event()
219 hids_device_t * instance = hids_device_get_instance_for_con_handle(con_handle); in hids_device_can_send_now() local
220 if (!instance){ in hids_device_can_send_now()
238 hids_device_t * instance = hids_device_get_instance_for_con_handle(con_handle); in att_read_callback() local
239 if (!instance){ in att_read_callback()
[all …]
/btstack/3rd-party/lwip/core/src/apps/snmp/
H A Dsnmp_table.c46 …p_table_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance *instance) in snmp_table_get_instance() argument
49 …const struct snmp_table_node *table_node = (const struct snmp_table_node *)(const void *)instance-… in snmp_table_get_instance()
56 if ((instance->instance_oid.len >= 3) && (instance->instance_oid.id[0] == 1)) { in snmp_table_get_instance()
61 if (col_def->index == instance->instance_oid.id[1]) { in snmp_table_get_instance()
71 instance->asn1_type = col_def->asn1_type; in snmp_table_get_instance()
72 instance->access = col_def->access; in snmp_table_get_instance()
73 instance->get_value = table_node->get_value; in snmp_table_get_instance()
74 instance->set_test = table_node->set_test; in snmp_table_get_instance()
75 instance->set_value = table_node->set_value; in snmp_table_get_instance()
78 &(instance->instance_oid.id[1]), in snmp_table_get_instance()
[all …]
H A Dsnmp_scalar.c45 static s16_t snmp_scalar_array_get_value(struct snmp_node_instance *instance, void *value);
46 static snmp_err_t snmp_scalar_array_set_test(struct snmp_node_instance *instance, u16_t value_len,…
47 static snmp_err_t snmp_scalar_array_set_value(struct snmp_node_instance *instance, u16_t value_len…
50 …_scalar_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance *instance) in snmp_scalar_get_instance() argument
52 …ruct snmp_scalar_node *scalar_node = (const struct snmp_scalar_node *)(const void *)instance->node; in snmp_scalar_get_instance()
58 if ((instance->instance_oid.len != 1) || (instance->instance_oid.id[0] != 0)) { in snmp_scalar_get_instance()
62 instance->access = scalar_node->access; in snmp_scalar_get_instance()
63 instance->asn1_type = scalar_node->asn1_type; in snmp_scalar_get_instance()
64 instance->get_value = scalar_node->get_value; in snmp_scalar_get_instance()
65 instance->set_test = scalar_node->set_test; in snmp_scalar_get_instance()
[all …]
H A Dsnmp_threadsync.c47 sys_mutex_lock(&call_data->threadsync_node->instance->sem_usage_mutex); in call_synced_function()
48 call_data->threadsync_node->instance->sync_fn(fn, call_data); in call_synced_function()
49 sys_sem_wait(&call_data->threadsync_node->instance->sem); in call_synced_function()
50 sys_mutex_unlock(&call_data->threadsync_node->instance->sem_usage_mutex); in call_synced_function()
64 sys_sem_signal(&call_data->threadsync_node->instance->sem); in threadsync_get_value_synced()
68 threadsync_get_value(struct snmp_node_instance *instance, void *value) in threadsync_get_value() argument
70 struct threadsync_data *call_data = (struct threadsync_data *)instance->reference.ptr; in threadsync_get_value()
89 sys_sem_signal(&call_data->threadsync_node->instance->sem); in threadsync_set_test_synced()
93 threadsync_set_test(struct snmp_node_instance *instance, u16_t len, void *value) in threadsync_set_test() argument
95 struct threadsync_data *call_data = (struct threadsync_data *)instance->reference.ptr; in threadsync_set_test()
[all …]
H A Dsnmp_mib2_interfaces.c62 interfaces_get_value(struct snmp_node_instance *instance, void *value) in interfaces_get_value() argument
64 if (instance->node->oid == 1) { in interfaces_get_value()
157 interfaces_Table_get_value(struct snmp_node_instance *instance, void *value) in interfaces_Table_get_value() argument
159 struct netif *netif = (struct netif *)instance->reference.ptr; in interfaces_Table_get_value()
164 switch (SNMP_TABLE_GET_COLUMN_FROM_OID(instance->instance_oid.id)) { in interfaces_Table_get_value()
276 interfaces_Table_set_test(struct snmp_node_instance *instance, u16_t len, void *value) in interfaces_Table_set_test() argument
282 LWIP_ASSERT("Invalid column", (SNMP_TABLE_GET_COLUMN_FROM_OID(instance->instance_oid.id) == 7)); in interfaces_Table_set_test()
293 interfaces_Table_set_value(struct snmp_node_instance *instance, u16_t len, void *value) in interfaces_Table_set_value() argument
295 struct netif *netif = (struct netif *)instance->reference.ptr; in interfaces_Table_set_value()
300 LWIP_ASSERT("Invalid column", (SNMP_TABLE_GET_COLUMN_FROM_OID(instance->instance_oid.id) == 7)); in interfaces_Table_set_value()
H A Dsnmp_mib2_ip.c62 ip_get_value(struct snmp_node_instance *instance, void *value) in ip_get_value() argument
67 switch (instance->node->oid) { in ip_get_value()
139 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("ip_get_value(): unknown id: %"S32_F"\n", instance->node->oid)); in ip_get_value()
157 ip_set_test(struct snmp_node_instance *instance, u16_t len, void *value) in ip_set_test() argument
163 switch (instance->node->oid) { in ip_set_test()
182 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("ip_set_test(): unknown id: %"S32_F"\n", instance->node->oid)); in ip_set_test()
190 ip_set_value(struct snmp_node_instance *instance, u16_t len, void *value) in ip_set_value() argument
192 LWIP_UNUSED_ARG(instance); in ip_set_value()
H A Dsnmp_mib2_udp.c61 udp_get_value(struct snmp_node_instance *instance, void *value) in udp_get_value() argument
65 switch (instance->node->oid) { in udp_get_value()
93 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("udp_get_value(): unknown id: %"S32_F"\n", instance->node->oid)); in udp_get_value()
H A Dsnmp_mib2_tcp.c62 tcp_get_value(struct snmp_node_instance *instance, void *value) in tcp_get_value() argument
67 switch (instance->node->oid) { in tcp_get_value()
139 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("tcp_get_value(): unknown id: %"S32_F"\n", instance->node->oid)); in tcp_get_value()
/btstack/src/mesh/gatt-service/
H A Dmesh_provisioning_service_server.c96 mesh_provisioning_t * instance = &mesh_provisioning; in mesh_provisioning_service_get_instance_for_con_handle() local
97 …g_service_get_instance_for_con_handle, handle %x (instance %x)", con_handle, instance->con_handle); in mesh_provisioning_service_get_instance_for_con_handle()
98 …if (instance->con_handle != HCI_CON_HANDLE_INVALID && instance->con_handle != con_handle) return N… in mesh_provisioning_service_get_instance_for_con_handle()
99 instance->con_handle = con_handle; in mesh_provisioning_service_get_instance_for_con_handle()
100 return instance; in mesh_provisioning_service_get_instance_for_con_handle()
109 …mesh_provisioning_t * instance = mesh_provisioning_service_get_instance_for_con_handle(con_handle); in mesh_provisioning_service_read_callback() local
110 if (!instance){ in mesh_provisioning_service_read_callback()
114 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_provisioning_service_read_callback()
116 … little_endian_store_16(buffer, 0, instance->data_out_client_configuration_descriptor_value); in mesh_provisioning_service_read_callback()
129 …mesh_provisioning_t * instance = mesh_provisioning_service_get_instance_for_con_handle(con_handle); in mesh_provisioning_service_write_callback() local
[all …]
H A Dmesh_proxy_service_server.c91 mesh_proxy_t * instance = &mesh_proxy; in mesh_proxy_service_get_instance_for_con_handle() local
93 instance->con_handle = con_handle; in mesh_proxy_service_get_instance_for_con_handle()
94 return instance; in mesh_proxy_service_get_instance_for_con_handle()
103 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_read_callback() local
104 if (!instance){ in mesh_proxy_service_read_callback()
108 if (attribute_handle == instance->data_out_client_configuration_descriptor_handle){ in mesh_proxy_service_read_callback()
110 … little_endian_store_16(buffer, 0, instance->data_out_client_configuration_descriptor_value); in mesh_proxy_service_read_callback()
123 mesh_proxy_t * instance = mesh_proxy_service_get_instance_for_con_handle(con_handle); in mesh_proxy_service_write_callback() local
124 if (!instance){ in mesh_proxy_service_write_callback()
129 if (attribute_handle == instance->data_in_client_value_handle){ in mesh_proxy_service_write_callback()
[all …]
/btstack/src/
H A Dbtstack_lc3_google.c59 btstack_lc3_decoder_google_t * instance = (btstack_lc3_decoder_google_t *) context; in lc3_decoder_google_configure() local
68 instance->sample_rate = sample_rate; in lc3_decoder_google_configure()
69 instance->frame_duration = frame_duration; in lc3_decoder_google_configure()
70 instance->octets_per_frame = octets_per_frame; in lc3_decoder_google_configure()
78 instance->decoder = lc3_setup_decoder(duration_us, sample_rate, 0, &instance->decoder_mem); in lc3_decoder_google_configure()
80 if (instance->decoder == NULL) { in lc3_decoder_google_configure()
90 btstack_lc3_decoder_google_t * instance = (btstack_lc3_decoder_google_t *) context; in lc3_decoder_google_decode() local
101 …int result = lc3_decode(instance->decoder, (const void *) bytes, instance->octets_per_frame, fmt, … in lc3_decoder_google_decode()
135 btstack_lc3_encoder_google_t * instance = (btstack_lc3_encoder_google_t *) context; in lc3_encoder_google_configure() local
144 instance->sample_rate = sample_rate; in lc3_encoder_google_configure()
[all …]
H A Dbtstack_lc3plus_fraunhofer.c65 …btstack_lc3plus_fraunhofer_decoder_t * instance = (btstack_lc3plus_fraunhofer_decoder_t *) context; in lc3plus_fraunhofer_decoder_configure() local
66 LC3PLUS_Dec * decoder = (LC3PLUS_Dec*) instance->decoder; in lc3plus_fraunhofer_decoder_configure()
75 instance->sample_rate = sample_rate; in lc3plus_fraunhofer_decoder_configure()
76 instance->frame_duration = frame_duration; in lc3plus_fraunhofer_decoder_configure()
77 instance->octets_per_frame = octets_per_frame; in lc3plus_fraunhofer_decoder_configure()
78 instance->samples_per_frame = btstack_lc3_samples_per_frame(sample_rate, frame_duration); in lc3plus_fraunhofer_decoder_configure()
95 … btstack_lc3plus_fraunhofer_decoder_t *instance = (btstack_lc3plus_fraunhofer_decoder_t *) context; in lc3plus_fraunhofer_decoder_decode_signed_16() local
96 LC3PLUS_Dec *decoder = (LC3PLUS_Dec *) instance->decoder; in lc3plus_fraunhofer_decoder_decode_signed_16()
110 uint16_t byte_count = instance->octets_per_frame; in lc3plus_fraunhofer_decoder_decode_signed_16()
120 for (i = 0; i < instance->samples_per_frame; i++){ in lc3plus_fraunhofer_decoder_decode_signed_16()
[all …]
/btstack/src/classic/
H A Dbtstack_sbc_bluedroid.c57 btstack_sbc_encoder_bluedroid_t * instance = (btstack_sbc_encoder_bluedroid_t *) context; in btstack_sbc_encoder_bluedroid_configure() local
59 instance->mode = mode; in btstack_sbc_encoder_bluedroid_configure()
61 switch (instance->mode){ in btstack_sbc_encoder_bluedroid_configure()
63 instance->params.s16NumOfBlocks = blocks; in btstack_sbc_encoder_bluedroid_configure()
64 instance->params.s16NumOfSubBands = subbands; in btstack_sbc_encoder_bluedroid_configure()
65 instance->params.s16AllocationMethod = (uint8_t)allocation_method; in btstack_sbc_encoder_bluedroid_configure()
66 instance->params.s16BitPool = bitpool; in btstack_sbc_encoder_bluedroid_configure()
67 instance->params.mSBCEnabled = 0; in btstack_sbc_encoder_bluedroid_configure()
68 instance->params.s16ChannelMode = (uint8_t)channel_mode; in btstack_sbc_encoder_bluedroid_configure()
69 instance->params.s16NumOfChannels = 2; in btstack_sbc_encoder_bluedroid_configure()
[all …]
/btstack/3rd-party/lwip/core/src/include/lwip/apps/
H A Dsnmp_table.h75 …_table_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
76 …e_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
115 …simple_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
116 …e_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
124 s16_t snmp_table_extract_value_from_s32ref(struct snmp_node_instance* instance, void* value);
125 s16_t snmp_table_extract_value_from_u32ref(struct snmp_node_instance* instance, void* value);
126 s16_t snmp_table_extract_value_from_refconstptr(struct snmp_node_instance* instance, void* value);
H A Dsnmp_threadsync.h91 struct snmp_threadsync_instance *instance; member
94 …adsync_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
95 …c_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
106 void snmp_threadsync_init(struct snmp_threadsync_instance *instance, snmp_threadsync_synchronizer_f…
H A Dsnmp_scalar.h63 …scalar_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
64 …r_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
98 …_array_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
99 …y_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
H A Dsnmp_core.h247 …r_t (*get_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
248 …*get_next_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
323 snmp_err_t snmp_set_test_ok(struct snmp_node_instance* instance, u16_t value_len, void* value); /* …
/btstack/port/msp432p401lp-cc256x/ti/devices/msp432p4xx/driverlib/
H A Dsysctl.c85 void SysCtl_getTLVInfo(uint_fast8_t tag, uint_fast8_t instance, in SysCtl_getTLVInfo() argument
96 if(instance == 0) in SysCtl_getTLVInfo()
102 instance--; in SysCtl_getTLVInfo()
H A Dsysctl_a.c44 void SysCtl_A_getTLVInfo(uint_fast8_t tag, uint_fast8_t instance, in SysCtl_A_getTLVInfo() argument
63 if (instance == 0) in SysCtl_A_getTLVInfo()
69 instance--; in SysCtl_A_getTLVInfo()
/btstack/port/stm32-f4discovery-usb/port/
H A Dhci_transport_h2_stm32.c134 static const hci_transport_t instance = { in hci_transport_h2_stm32_instance() local
146 return &instance; in hci_transport_h2_stm32_instance()
/btstack/port/stm32-l451-miromico-sx1280/Drivers/STM32L4xx_HAL_Driver/Src/
H A Dstm32l4xx_hal_ospi.c2463 uint32_t instance; in HAL_OSPIM_Config() local
2482 instance = 0U; in HAL_OSPIM_Config()
2487 instance = 1U; in HAL_OSPIM_Config()
2516 CLEAR_BIT(OCTOSPIM->PCR[(IOM_cfg[instance].NCSPort-1U)], OCTOSPIM_PCR_NCSEN); in HAL_OSPIM_Config()
2534 if (IOM_cfg[instance].ClkPort != 0U) in HAL_OSPIM_Config()
2536 …CLEAR_BIT(OCTOSPIM->PCR[(IOM_cfg[instance].ClkPort-1U)], OCTOSPIM_PCR_CLK… in HAL_OSPIM_Config()
2537 …CLEAR_BIT(OCTOSPIM->PCR[(IOM_cfg[instance].DQSPort-1U)], OCTOSPIM_PCR_DQS… in HAL_OSPIM_Config()
2538 …CLEAR_BIT(OCTOSPIM->PCR[((IOM_cfg[instance].IOLowPort-1U)& OSPI_IOM_PORT_MASK)], OCTOSPIM_PCR_IOL… in HAL_OSPIM_Config()
2539 …CLEAR_BIT(OCTOSPIM->PCR[((IOM_cfg[instance].IOHighPort-1U)& OSPI_IOM_PORT_MASK)], OCTOSPIM_PCR_IOH… in HAL_OSPIM_Config()
2571 …U)], (OCTOSPIM_PCR_NCSEN | OCTOSPIM_PCR_NCSSRC), (OCTOSPIM_PCR_NCSEN | (instance << OCTOSPIM_PCR_N… in HAL_OSPIM_Config()
[all …]

12