Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 95) sorted by relevance

1234

/btstack/src/le-audio/gatt-service/
H A Dbroadcast_audio_scan_service_server.c214 …d bass_server_source_emit_source_added(hci_con_handle_t con_handle, bass_server_source_t * source){ in bass_server_source_emit_source_added() argument
215 …_changed(LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_ADDED, con_handle, source->source_id, source->data.pa… in bass_server_source_emit_source_added()
218 …ass_server_source_emit_source_modified(hci_con_handle_t con_handle, bass_server_source_t * source){ in bass_server_source_emit_source_modified() argument
219 …anged(LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_MODIFIED, con_handle, source->source_id, source->data.pa… in bass_server_source_emit_source_modified()
222 …bass_server_source_emit_source_deleted(hci_con_handle_t con_handle, bass_server_source_t * source){ in bass_server_source_emit_source_deleted() argument
223 …e_state_changed(LEAUDIO_SUBEVENT_BASS_SERVER_SOURCE_DELETED, con_handle, source->source_id, LE_AUD… in bass_server_source_emit_source_deleted()
243 static uint16_t bass_server_copy_source_to_buffer(bass_server_source_t * source, uint16_t buffer_of… in bass_server_copy_source_to_buffer() argument
249 if (!source->in_use){ in bass_server_copy_source_to_buffer()
252 field_data[0] = source->source_id; in bass_server_copy_source_to_buffer()
257 …stored_bytes += bass_util_source_data_header_virtual_memcpy(&source->data, &source_offset, buffer_… in bass_server_copy_source_to_buffer()
[all …]
H A Dbroadcast_audio_scan_service_client.c114 static void bass_client_reset_source(bass_client_source_t * source){ in bass_client_reset_source() argument
115 if (source == NULL){ in bass_client_reset_source()
118 source->source_id = BASS_INVALID_SOURCE_INDEX; in bass_client_reset_source()
119 source->in_use = false; in bass_client_reset_source()
120 memset(&source->data, 0, sizeof(bass_source_data_t)); in bass_client_reset_source()
281 …bass_client_source_t * source = bass_client_get_receive_state_for_value_handle(connection, value_h… in bass_client_handle_gatt_server_notification() local
282 if (source == NULL){ in bass_client_handle_gatt_server_notification()
285 source->source_id = value[0]; in bass_client_handle_gatt_server_notification()
286 bass_util_source_data_parse(&value[1], value_length - 1, &source->data, true); in bass_client_handle_gatt_server_notification()
289 source->big_encryption = (le_audio_big_encryption_t) value[13]; in bass_client_handle_gatt_server_notification()
[all …]
/btstack/platform/posix/
H A Dbtstack_run_loop_posix.c186 if (ds->source.fd < 0) continue; in btstack_run_loop_posix_execute()
188 FD_SET(ds->source.fd, &descriptors_read); in btstack_run_loop_posix_execute()
189 if (ds->source.fd > highest_fd) { in btstack_run_loop_posix_execute()
190 highest_fd = ds->source.fd; in btstack_run_loop_posix_execute()
192 log_debug("btstack_run_loop_execute adding fd %u for read", ds->source.fd); in btstack_run_loop_posix_execute()
195 FD_SET(ds->source.fd, &descriptors_write); in btstack_run_loop_posix_execute()
196 if (ds->source.fd > highest_fd) { in btstack_run_loop_posix_execute()
197 highest_fd = ds->source.fd; in btstack_run_loop_posix_execute()
199 log_debug("btstack_run_loop_execute adding fd %u for write", ds->source.fd); in btstack_run_loop_posix_execute()
224 … log_debug("btstack_run_loop_posix_execute: check ds %p with fd %u\n", ds, ds->source.fd); in btstack_run_loop_posix_execute()
[all …]
H A Dbtstack_uart_posix.c99 …int bytes_written = (int) write(ds->source.fd, btstack_uart_block_write_bytes_data, btstack_uart_b… in btstack_uart_block_posix_process_write()
140 …ssize_t bytes_read = read(ds->source.fd, btstack_uart_block_read_bytes_data, btstack_uart_block_re… in btstack_uart_block_posix_process_read()
168 int fd = transport_data_source.source.fd; in btstack_uart_posix_set_baudrate()
283 int fd = transport_data_source.source.fd; in btstack_uart_posix_set_parity()
294 int fd = transport_data_source.source.fd; in btstack_uart_posix_set_flowcontrol()
346 transport_data_source.source.fd = fd; in btstack_uart_posix_open()
371 close(transport_data_source.source.fd); in btstack_uart_posix_close_new()
372 transport_data_source.source.fd = -1; in btstack_uart_posix_close_new()
443 …int bytes_written = (int) write(ds->source.fd, btstack_uart_slip_write_bytes_data, btstack_uart_sl… in btstack_uart_slip_posix_process_write()
512 …ssize_t bytes_read = read(ds->source.fd, btstack_uart_slip_receive_buffer, SLIP_RECEIVE_BUFFER_SIZ… in btstack_uart_slip_posix_process_read()
[all …]
/btstack/platform/windows/
H A Dbtstack_run_loop_windows.c110 if (ds->source.handle == 0) continue; in btstack_run_loop_windows_execute()
112 handles[num_handles++] = ds->source.handle; in btstack_run_loop_windows_execute()
113 log_debug("btstack_run_loop_execute adding handle %p", ds->source.handle); in btstack_run_loop_windows_execute()
134 …log_debug("btstack_run_loop_windows_execute: check ds %p with handle %p\n", ds, ds->source.handle); in btstack_run_loop_windows_execute()
135 if (triggered_handle == ds->source.handle){ in btstack_run_loop_windows_execute()
137 …ug("btstack_run_loop_windows_execute: process read ds %p with handle %p\n", ds, ds->source.handle); in btstack_run_loop_windows_execute()
140 …g("btstack_run_loop_windows_execute: process write ds %p with handle %p\n", ds, ds->source.handle); in btstack_run_loop_windows_execute()
181 if (btstack_run_loop_windows_process_callbacks_ds.source.handle == NULL) return; in btstack_run_loop_windows_execute_on_main_thread()
191 SetEvent(btstack_run_loop_windows_process_callbacks_ds.source.handle); in btstack_run_loop_windows_execute_on_main_thread()
201 SetEvent(btstack_run_loop_windows_poll_data_sources_ds.source.handle); in btstack_run_loop_windows_poll_data_sources_from_irq()
[all …]
H A Dbtstack_stdin_windows.c70 SignalObjectAndWait(stdin_source.source.handle, key_processed_handle, INFINITE, FALSE); in stdin_reader_thread_process()
99 stdin_source.source.handle = CreateEvent(NULL, FALSE, FALSE, NULL); in btstack_stdin_windows_init()
133 CloseHandle(stdin_source.source.handle); in btstack_stdin_reset()
/btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/synergy/ssp/src/driver/r_gpt/hw/common/
H A Dhw_gpt_common.h370 …STATIC_INLINE void HW_GPT_StopSourceSelectAdd (GPT_BASE_PTR p_gpt_base, gpt_trigger_t const source) in HW_GPT_StopSourceSelectAdd() argument
372 p_gpt_base->GTPSR |= (uint32_t) source; in HW_GPT_StopSourceSelectAdd()
379 __STATIC_INLINE void HW_GPT_StartSourceSelect(GPT_BASE_PTR p_gpt_base, gpt_trigger_t const source) in HW_GPT_StartSourceSelect() argument
381 p_gpt_base->GTSSR = source; in HW_GPT_StartSourceSelect()
389 __STATIC_INLINE void HW_GPT_StopSourceSelect(GPT_BASE_PTR p_gpt_base, gpt_trigger_t const source) in HW_GPT_StopSourceSelect() argument
391 p_gpt_base->GTPSR = source; in HW_GPT_StopSourceSelect()
399 __STATIC_INLINE void HW_GPT_ClearSourceSelect(GPT_BASE_PTR p_gpt_base, gpt_trigger_t const source) in HW_GPT_ClearSourceSelect() argument
401 p_gpt_base->GTCSR = source; in HW_GPT_ClearSourceSelect()
409 …STATIC_INLINE void HW_GPT_CaptureASourceSelect(GPT_BASE_PTR p_gpt_base, gpt_trigger_t const source) in HW_GPT_CaptureASourceSelect() argument
411 p_gpt_base->GTICASR = source; in HW_GPT_CaptureASourceSelect()
[all …]
/btstack/port/stm32-f4discovery-usb/Drivers/CMSIS/NN/Include/
H A Darm_nnsupportfunctions.h102 __STATIC_FORCEINLINE void *read_and_pad(void *source, q31_t * out1, q31_t * out2) in read_and_pad() argument
104 q31_t inA = *__SIMD32(source)++; in read_and_pad()
116 return source; in read_and_pad()
123 __STATIC_FORCEINLINE void *read_and_pad_reordered(void *source, q31_t * out1, q31_t * out2) in read_and_pad_reordered() argument
125 q31_t inA = *__SIMD32(source)++; in read_and_pad_reordered()
134 return source; in read_and_pad_reordered()
/btstack/test/mesh/
H A Dbtstack_uart_posix_pty.c92 int bytes_written = (int) write(ds->source.fd, write_bytes_data, write_bytes_len); in btstack_uart_posix_process_write()
129 ssize_t bytes_read = read(ds->source.fd, read_bytes_data, read_bytes_len); in btstack_uart_posix_process_read()
149 if (ds->source.fd < 0) return; in hci_transport_h5_process()
165 int fd = transport_data_source.source.fd;
239 int fd = transport_data_source.source.fd;
255 int fd = transport_data_source.source.fd;
313 transport_data_source.source.fd = fd;
337 close(transport_data_source.source.fd);
338 transport_data_source.source.fd = -1;
/btstack/src/
H A Dbtstack_hsm.c158 btstack_hsm_state_handler_t source = target; in btstack_hsm_dispatch() local
169 if( source == target ) { in btstack_hsm_dispatch()
170 source( me, &exit_evt ); in btstack_hsm_dispatch()
177 for(; source != btstack_hsm_top; source=me->temp) { in btstack_hsm_dispatch()
180 if( current == source ) { in btstack_hsm_dispatch()
190 source( me, &exit_evt ); in btstack_hsm_dispatch()
191 btstack_hsm_get_super( me, source ); in btstack_hsm_dispatch()
H A Dbtstack_run_loop.c202 data_source->source.fd = fd; in btstack_run_loop_set_data_source_fd()
206 return data_source->source.fd; in btstack_run_loop_get_data_source_fd()
210 data_source->source.handle = handle; in btstack_run_loop_set_data_source_handle()
214 return data_source->source.handle; in btstack_run_loop_get_data_source_handle()
/btstack/port/stm32-f4discovery-usb/Drivers/STM32F4xx_HAL_Driver/Src/
H A Dstm32f4xx_hal_dfsdm.c3798 void HAL_DFSDM_ClockIn_SourceSelection(uint32_t source) in HAL_DFSDM_ClockIn_SourceSelection() argument
3802 assert_param(IS_DFSDM_CLOCKIN_SELECTION(source)); in HAL_DFSDM_ClockIn_SourceSelection()
3806 if((source == HAL_DFSDM2_CKIN_PAD) || (source == HAL_DFSDM2_CKIN_DM)) in HAL_DFSDM_ClockIn_SourceSelection()
3810 if(source == HAL_DFSDM2_CKIN_PAD) in HAL_DFSDM_ClockIn_SourceSelection()
3812 source = 0x000000U; in HAL_DFSDM_ClockIn_SourceSelection()
3820 SYSCFG->MCHDLYCR = (source|tmp); in HAL_DFSDM_ClockIn_SourceSelection()
3831 void HAL_DFSDM_ClockOut_SourceSelection(uint32_t source) in HAL_DFSDM_ClockOut_SourceSelection() argument
3835 assert_param(IS_DFSDM_CLOCKOUT_SELECTION(source)); in HAL_DFSDM_ClockOut_SourceSelection()
3839 if((source == HAL_DFSDM2_CKOUT_DFSDM2) || (source == HAL_DFSDM2_CKOUT_M27)) in HAL_DFSDM_ClockOut_SourceSelection()
3843 if(source == HAL_DFSDM2_CKOUT_DFSDM2) in HAL_DFSDM_ClockOut_SourceSelection()
[all …]
/btstack/port/msp432p401lp-cc256x/ti/devices/msp432p4xx/driverlib/
H A Dreset.c40 void ResetCtl_initiateSoftResetWithSource(uint32_t source) in ResetCtl_initiateSoftResetWithSource() argument
42 RSTCTL->SOFTRESET_SET |= (source); in ResetCtl_initiateSoftResetWithSource()
60 void ResetCtl_initiateHardResetWithSource(uint32_t source) in ResetCtl_initiateHardResetWithSource() argument
62 RSTCTL->HARDRESET_SET |= (source); in ResetCtl_initiateHardResetWithSource()
H A Dadc14.c248 bool ADC14_setSampleHoldTrigger(uint32_t source, bool invertSignal) in ADC14_setSampleHoldTrigger() argument
252 source == ADC_TRIGGER_ADCSC || source == ADC_TRIGGER_SOURCE1 in ADC14_setSampleHoldTrigger()
253 || source == ADC_TRIGGER_SOURCE2 in ADC14_setSampleHoldTrigger()
254 || source == ADC_TRIGGER_SOURCE3 in ADC14_setSampleHoldTrigger()
255 || source == ADC_TRIGGER_SOURCE4 in ADC14_setSampleHoldTrigger()
256 || source == ADC_TRIGGER_SOURCE5 in ADC14_setSampleHoldTrigger()
257 || source == ADC_TRIGGER_SOURCE6 in ADC14_setSampleHoldTrigger()
258 || source == ADC_TRIGGER_SOURCE7); in ADC14_setSampleHoldTrigger()
266 & ~(ADC14_CTL0_ISSH | ADC14_CTL0_SHS_MASK)) | source in ADC14_setSampleHoldTrigger()
271 & ~(ADC14_CTL0_ISSH | ADC14_CTL0_SHS_MASK)) | source; in ADC14_setSampleHoldTrigger()
H A Dreset.h130 extern void ResetCtl_initiateSoftResetWithSource(uint32_t source);
221 extern void ResetCtl_initiateHardResetWithSource(uint32_t source);
/btstack/platform/qt/
H A Dbtstack_run_loop_qt.cpp110 QWinEventNotifier * win_notifier = new QWinEventNotifier(ds->source.handle); in btstack_run_loop_qt_add_data_source()
114 log_debug("add data source %p with handle %p", ds, ds->source.handle); in btstack_run_loop_qt_add_data_source()
117 QSocketNotifier * read_notifier = new QSocketNotifier(ds->source.fd, QSocketNotifier::Read); in btstack_run_loop_qt_add_data_source()
118 QSocketNotifier * write_notifier = new QSocketNotifier(ds->source.fd, QSocketNotifier::Write); in btstack_run_loop_qt_add_data_source()
263 if (handle == ds->source.handle){ in processDataSource()
265 log_debug("process read ds %p with handle %p", ds, ds->source.handle); in processDataSource()
268 log_debug("process write ds %p with handle %p", ds, ds->source.handle); in processDataSource()
312 if (fd == ds->source.fd){ in btstack_run_loop_qt_process_data_source()
/btstack/test/avdtp/
H A Dsine_encode_decode_test.c62 int16_t source[TABLE_SIZE_441HZ]; member
91 *(int16_t*)&write_data[0] = data->source[data->left_phase]; in fill_sine_frame()
92 *(int16_t*)&write_data[2] = data->source[data->right_phase]; in fill_sine_frame()
118 sin_data.source[i] = sin(((double)i/(double)TABLE_SIZE_441HZ) * M_PI * 2.)*32767; in btstack_main()
H A Dsine_encode_decode_performance_test.c60 int16_t source[TABLE_SIZE_441HZ]; member
87 *(int16_t*)&write_data[0] = data->source[data->left_phase]; in fill_sine_frame()
88 *(int16_t*)&write_data[2] = data->source[data->right_phase]; in fill_sine_frame()
114 sin_data.source[i] = sin(((double)i/(double)TABLE_SIZE_441HZ) * M_PI * 2.)*32767; in btstack_main()
H A Dsine_encode_decode_ring_buffer_test.c62 int16_t source[TABLE_SIZE_441HZ]; member
92 *(int16_t*)&write_data[0] = data->source[data->left_phase]; in fill_audio_ring_buffer()
93 *(int16_t*)&write_data[2] = data->source[data->right_phase]; in fill_audio_ring_buffer()
232 sin_data.source[i] = sin(((double)i/(double)TABLE_SIZE_441HZ) * M_PI * 2.)*32767; in btstack_main()
/btstack/port/mtk/
H A Dhci_transport_h4_mtk.c98 mtk_bt_disable(hci_transport_h4->ds->source.fd); in h4_close()
118 int res = mtk_bt_write(hci_transport_h4->ds->source.fd, hci_packet_out, size + 1); in h4_send_packet()
128 if (hci_transport_h4->ds->source.fd == 0) return; in h4_process()
131 …ssize_t bytes_read = mtk_bt_read(hci_transport_h4->ds->source.fd, &hci_packet_in[0], sizeof(hci_pa… in h4_process()
/btstack/platform/daemon/src/
H A Dsocket_connection.c167 if (conn->ds.source.handle){ in socket_connection_free_connection()
168 WSACloseEvent(conn->ds.source.handle); in socket_connection_free_connection()
211 conn->ds.source.handle = event; in socket_connection_register_new_connection()
253 if (WSAEnumNetworkEvents(socket_fd, socket_ds->source.handle, &network_events) == SOCKET_ERROR){ in socket_connection_hci_process()
363 if (WSAEnumNetworkEvents(socket_fd, socket_ds->source.handle, &network_events) == SOCKET_ERROR){ in socket_connection_accept()
442 ds->source.handle = event; in socket_connection_create_tcp()
628 shutdown(connection->ds.source.fd, SD_BOTH); in socket_connection_close_tcp()
630 shutdown(connection->ds.source.fd, SHUT_RDWR); in socket_connection_close_tcp()
719 shutdown(connection->ds.source.fd, SD_BOTH); in socket_connection_close_unix()
721 shutdown(connection->ds.source.fd, SHUT_RDWR); in socket_connection_close_unix()
/btstack/platform/corefoundation/
H A Dbtstack_run_loop_corefoundation.m4 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
86 …ndation_ds %x - fd %u, CFSocket %x, CFRunLoopSource %x\n", (int) ds, ds->source.fd, (int) s, (int)…
90 …ndation_ds %x - fd %u, CFSocket %x, CFRunLoopSource %x\n", (int) ds, ds->source.fd, (int) s, (int)…
126 data_source->source.fd,
138 // create run loop source
151 …d %u - CFSocket %x, CFRunLoopSource %x\n", (int) dataSource, dataSource->source.fd, (int) socket, …
169 …fd %u, CFSocket %x, CFRunLoopSource %x\n", (int) dataSource, dataSource->source.fd, (int) dataSour…
224 (void) read(ds->source.fd, buffer, 1);
255 // create pipe and register as data source
[all …]
/btstack/3rd-party/lwip/core/src/apps/mdns/
H A Dmdns_domain.c146 mdns_domain_add_domain(struct mdns_domain *domain, struct mdns_domain *source) in mdns_domain_add_domain() argument
148 u16_t len = source->length; in mdns_domain_add_domain()
158 MEMCPY(&domain->name[domain->length], source->name, len); in mdns_domain_add_domain()
175 mdns_domain_add_string(struct mdns_domain *domain, const char *source) in mdns_domain_add_string() argument
181 while (*source && start < end) { in mdns_domain_add_string()
182 if (*source == '.') { in mdns_domain_add_string()
185 source++; in mdns_domain_add_string()
187 *start++ = *source++; in mdns_domain_add_string()
/btstack/3rd-party/segger-rtt/
H A DLicense.txt8 to or modify the source code of this software in order to stay
11 Redistribution and use in source and binary forms, with or
15 o Redistributions of source code must retain the above copyright
/btstack/3rd-party/lwip/core/src/include/lwip/apps/
H A Dmdns_domain.h54 err_t mdns_domain_add_domain(struct mdns_domain *domain, struct mdns_domain *source);
55 err_t mdns_domain_add_string(struct mdns_domain *domain, const char *source);

1234