Home
last modified time | relevance | path

Searched refs:notify (Results 1 – 25 of 43) sorted by relevance

12

/AliOS-Things-master/components/amp_adapter/platform/aos/peripheral/
A Daos_hal_uart.c91 if (!notify) in uart_recv_handler()
94 uart = notify->uart; in uart_recv_handler()
97 if (notify->stop) { in uart_recv_handler()
108 notify->callback(uart->port, recv_buffer, recv_size, notify->userdata); in uart_recv_handler()
129 if (!notify) { in aos_hal_uart_callback()
131 if (!notify) in aos_hal_uart_callback()
139 notify->callback = cb; in aos_hal_uart_callback()
140 notify->userdata = args; in aos_hal_uart_callback()
141 notify->uart = uart; in aos_hal_uart_callback()
156 if (notify) { in aos_hal_uart_finalize()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/timer/
A Dmodule_timer.c27 timer_irq_notify_param_t *notify; member
130 if (!notify) { in native_timer_setTimeout()
137 aos_free(notify); in native_timer_setTimeout()
145 aos_free(notify); in native_timer_setTimeout()
173 timer_info->notify = notify; in native_timer_setTimeout()
235 if (!notify) { in native_timer_setInterval()
242 aos_free(notify); in native_timer_setInterval()
249 aos_free(notify); in native_timer_setInterval()
257 aos_free(notify); in native_timer_setInterval()
280 aos_free(notify); in native_timer_setInterval()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/gpio/
A Dmodule_gpio.c229 if ((NULL == notify) || (NULL == arg)) { in gpio_irq()
240 if (amp_task_schedule_call(gpio_irq_notify, notify) < 0) { in gpio_irq()
256 gpio_irq_notify_param_t *notify = NULL; in native_gpio_on() local
258 notify = aos_malloc(sizeof(gpio_irq_notify_param_t)); in native_gpio_on()
259 aos_printf("func %p alloc memory %p \n", __func__, notify); in native_gpio_on()
260 if (!notify) in native_gpio_on()
266 aos_free(notify); in native_gpio_on()
272 aos_free(notify); in native_gpio_on()
277 priv->reserved = (void *)notify; // 停止中断时,释放该内存 in native_gpio_on()
283 notify->js_cb_ref = JS_DupValue(ctx, irq_cb); in native_gpio_on()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/uart/
A Dmodule_uart.c54 uart_notify_t *notify = (uart_notify_t *)pdata; in uart_recv_notify() local
57 be_push_ref(ctx, notify->js_cb_ref); in uart_recv_notify()
59 for (i = 0; i < notify->recv_len; i++) { in uart_recv_notify()
60 duk_push_int(ctx, notify->recv_buff[i]); in uart_recv_notify()
71 aos_free(notify); in uart_recv_notify()
79 uart_notify_t *notify; in uart_recv_callback() local
84 notify = aos_malloc(sizeof(uart_notify_t)); in uart_recv_callback()
85 if (!notify) { in uart_recv_callback()
96 aos_free(notify); in uart_recv_callback()
100 notify->recv_len = recvsize; in uart_recv_callback()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/uart/
A Dmodule_uart.c69 uart_notify_t *notify = (uart_notify_t *)pdata; in uart_recv_notify() local
73 args[0] = JS_NewArrayBufferCopy(ctx, notify->recv_buff, notify->recv_len); in uart_recv_notify()
74 args[1] = JS_NewInt32(ctx, notify->recv_len); in uart_recv_notify()
87 aos_free(notify); in uart_recv_notify()
95 uart_notify_t *notify; in uart_recv_callback() local
100 notify = aos_malloc(sizeof(uart_notify_t)); in uart_recv_callback()
101 if (!notify) { in uart_recv_callback()
108 memcpy(notify->recv_buff, data, recvsize); in uart_recv_callback()
112 aos_free(notify); in uart_recv_callback()
116 notify->recv_len = recvsize; in uart_recv_callback()
[all …]
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/udp/
A Dmodule_udp.c134 udp_send_notify_param_t *notify = (udp_send_notify_param_t *)pdata; in udp_send_notify() local
138 args = JS_NewInt32(ctx, notify->ret); in udp_send_notify()
149 JS_FreeValue(ctx, notify->js_cb_ref); in udp_send_notify()
150 amp_free(notify); in udp_send_notify()
305 udp_recv_notify_param_t *notify = (udp_recv_notify_param_t *)pdata; in udp_recv_notify() local
310 if (notify->recv_len > 0) { in udp_recv_notify()
311 args[0] = JS_NewArrayBufferCopy(ctx, notify->buf, notify->recv_len); in udp_recv_notify()
314 host = JS_NewStringLen(ctx, notify->src_ip, INET_ADDRSTRLEN); in udp_recv_notify()
315 port = JS_NewInt32(ctx, notify->src_port); in udp_recv_notify()
321 args[2] = JS_NewInt32(ctx, notify->recv_len); in udp_recv_notify()
[all …]
/AliOS-Things-master/components/drivers/peripheral/uart/src/
A Duart_dev.c27 poll_notify_t notify; member
424 if (uart_poll->notify) { in uart_rx_notify()
433 (*(uart_poll->notify)) (fd, uart_poll->arg); in uart_rx_notify()
435 uart_poll->notify = NULL; in uart_rx_notify()
451 int uart_device_poll (file_t *f, int flag, poll_notify_t notify, void *fd, void *arg) { in uart_device_poll() argument
463 ddkc_dbg("enter %s, fd:%p, arg:%p, notify:%p\r\n", __func__, fd, arg, notify); in uart_device_poll()
470 uart_poll->notify = NULL; in uart_device_poll()
480 uart_poll->notify = notify; in uart_device_poll()
491 (*notify)(fd, arg); in uart_device_poll()
496 (*notify)(fd, arg); in uart_device_poll()
/AliOS-Things-master/components/drivers/peripheral/spi/src/
A Dspi_dev.c26 poll_notify_t notify; member
385 if (spi_poll->notify) { in spi_rx_notify()
394 (*(spi_poll->notify)) (fd, spi_poll->arg); in spi_rx_notify()
396 spi_poll->notify = NULL; in spi_rx_notify()
412 int spi_device_poll (file_t *f, int flag, poll_notify_t notify, void *fd, void *arg) { in spi_device_poll() argument
421 ddkc_dbg("enter %s, fd:%p, arg:%p, notify:%p\r\n", __func__, fd, arg, notify); in spi_device_poll()
428 spi_poll->notify = NULL; in spi_device_poll()
438 spi_poll->notify = notify; in spi_device_poll()
449 (*notify)(fd, arg); in spi_device_poll()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/gpio/
A Dmodule_gpio.c203 gpio_irq_notify_param_t *notify; in gpio_irq() local
223 notify = aos_malloc(sizeof(gpio_irq_notify_param_t)); in gpio_irq()
224 if (!notify) in gpio_irq()
227 notify->js_cb_ref = js_cb_ref; in gpio_irq()
228 notify->dev = gpio; in gpio_irq()
229 if (amp_task_schedule_call(gpio_irq_notify, notify) < 0) { in gpio_irq()
/AliOS-Things-master/components/ble_host/bt_host/aos/
A Dble.c772 notify->err = bt_gatt_notify(notify->conn, attr, notify->data, notify->len); in ble_gatt_attr_notify()
799 notify->err = bt_gatt_indicate(notify->conn, &param); in ble_gatt_attr_indicate()
820 notify.conn = conn; in ble_stack_gatt_notificate()
822 notify.len = len; in ble_stack_gatt_notificate()
823 notify.err = 0; in ble_stack_gatt_notificate()
828 if (notify.conn) { in ble_stack_gatt_notificate()
832 return notify.err; in ble_stack_gatt_notificate()
852 notify.len = len; in ble_stack_gatt_indicate()
853 notify.err = 0; in ble_stack_gatt_indicate()
858 if (notify.conn) { in ble_stack_gatt_indicate()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/src/ble/profile/client/
A Dancs_client.c104 bool ancs_set_notification_source_notify(uint8_t conn_id, bool notify) in ancs_set_notification_source_notify() argument
115 uint16_t cccd_bits = notify ? 1 : 0; in ancs_set_notification_source_notify()
119 ancs_table[conn_id].write_notify_value = notify; in ancs_set_notification_source_notify()
133 bool ancs_set_data_source_notify(uint8_t conn_id, bool notify) in ancs_set_data_source_notify() argument
144 uint16_t cccd_bits = notify ? 1 : 0; in ancs_set_data_source_notify()
148 ancs_table[conn_id].write_notify_value = notify; in ancs_set_data_source_notify()
464 static T_APP_RESULT ancs_client_notify_ind_cb(uint8_t conn_id, bool notify, uint16_t handle, in ancs_client_notify_ind_cb() argument
A Dbas_client.c135 bool bas_set_notify(uint8_t conn_id, bool notify) in bas_set_notify() argument
146 uint16_t cccd_bits = notify ? 1 : 0; in bas_set_notify()
150 bas_table[conn_id].write_notify_value = notify; in bas_set_notify()
489 cb_data.cb_content.read_result.data.notify = true; in bas_client_read_result_cb()
493 cb_data.cb_content.read_result.data.notify = false; in bas_client_read_result_cb()
522 static T_APP_RESULT bas_client_notify_ind_cb(uint8_t conn_id, bool notify, uint16_t handle, in bas_client_notify_ind_cb() argument
A Dgcs_client.c334 static T_APP_RESULT gcs_client_notify_ind_cb(uint8_t conn_id, bool notify, in gcs_client_notify_ind_cb() argument
342 cb_data.cb_content.notif_ind.notify = notify; in gcs_client_notify_ind_cb()
A Dsimple_ble_client.c176 bool simp_ble_client_set_v3_notify(uint8_t conn_id, bool notify) in simp_ble_client_set_v3_notify() argument
188 uint16_t cccd_bits = notify ? 1 : 0; in simp_ble_client_set_v3_notify()
625 static T_APP_RESULT simp_ble_client_notif_ind_result_cb(uint8_t conn_id, bool notify, in simp_ble_client_notif_ind_result_cb() argument
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/bluetooth/profile/client/
A Dbas_client.h130 bool notify; member
242 bool bas_set_notify(uint8_t conn_id, bool notify);
A Dancs_client.h195 bool ancs_set_notification_source_notify(uint8_t conn_id, bool notify);
204 bool ancs_set_data_source_notify(uint8_t conn_id, bool notify);
A Dsimple_ble_client.h252 bool simp_ble_client_set_v3_notify(uint8_t conn_id, bool notify);
/AliOS-Things-master/components/epoll/example/
A Dtest_device.c164 static int event_poll(file_t *f, int setup, poll_notify_t notify, in event_poll() argument
176 pdev->poll_cb = notify; in event_poll()
182 (*notify)(fd, opa); in event_poll()
/AliOS-Things-master/components/select/example/
A Dtest_device.c164 static int event_poll(file_t *f, int setup, poll_notify_t notify, in event_poll() argument
176 pdev->poll_cb = notify; in event_poll()
182 (*notify)(fd, opa); in event_poll()
/AliOS-Things-master/components/vfs/
A Dvfs_aos.c71 int aos_do_pollfd(int fd, int flag, poll_notify_t notify, void *fds, void *arg) in aos_do_pollfd() argument
73 return _vfs_to_aos_res(vfs_do_pollfd(fd, flag, (vfs_poll_notify_t)notify, fds, arg)); in aos_do_pollfd()
/AliOS-Things-master/components/linksdk/components/bootstrap/
A Daiot_bootstrap_api.h92 } notify; member
/AliOS-Things-master/components/vfs/include/aos/
A Dvfs.h100 int (*poll)(file_t *fp, int flag, poll_notify_t notify, void *fd, void *arg);
235 int aos_do_pollfd(int fd, int flag, poll_notify_t notify, void *fds, void *arg);
/AliOS-Things-master/components/amp_adapter/portfiles/aos/
A Dvfs.h100 int (*poll)(file_t *fp, int flag, poll_notify_t notify, void *fd, void *arg);
235 int aos_do_pollfd(int fd, int flag, poll_notify_t notify, void *fds, void *arg);
/AliOS-Things-master/components/amp_adapter/
A Dvfs.h100 int (*poll)(file_t *fp, int flag, poll_notify_t notify, void *fd, void *arg);
235 int aos_do_pollfd(int fd, int flag, poll_notify_t notify, void *fds, void *arg);
/AliOS-Things-master/components/linksdk/components/task/
A Daiot_task_api.h208 task_desc_t notify; /* 云端主动推送任务的数据 */ member

Completed in 42 milliseconds

12