Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 118) sorted by relevance

12345

/AliOS-Things-master/components/drivers/peripheral/adc/src/
A Dadc.c22 AOS_ADC_CHECK_NULL(ref); in aos_adc_get()
29 if (ref == NULL) in aos_adc_put()
32 aos_dev_put(ref); in aos_adc_put()
40 AOS_ADC_CHECK_NULL(ref); in aos_adc_set_sample_time()
45 aos_dev_lock(ref->dev); in aos_adc_set_sample_time()
48 aos_dev_unlock(ref->dev); in aos_adc_set_sample_time()
57 AOS_ADC_CHECK_NULL(ref); in aos_adc_set_mode()
62 aos_dev_lock(ref->dev); in aos_adc_set_mode()
72 AOS_ADC_CHECK_NULL(ref); in aos_adc_get_resolution()
95 aos_dev_lock(ref->dev); in aos_adc_get_range()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/
A Dbe_refs.c22 int ref; in be_ref() local
34 ref = duk_get_int(ctx, -1); in be_ref()
38 if (ref != 0) { in be_ref()
46 ref = duk_get_length(ctx, -1); in be_ref()
53 duk_put_prop_index(ctx, -2, ref); in be_ref()
58 return ref; in be_ref()
63 if (!ref) { in be_push_ref()
72 duk_get_prop_index(ctx, -1, ref); in be_push_ref()
79 if (!ref) return; in be_unref()
90 duk_put_prop_index(ctx, -2, ref); in be_unref()
[all …]
/AliOS-Things-master/components/drivers/peripheral/pwm/src/
A Dpwm.c24 AOS_PWM_CHECK_NULL(ref); in aos_pwm_get()
29 void aos_pwm_put(aos_pwm_ref_t *ref) in aos_pwm_put() argument
31 if (ref == NULL) in aos_pwm_put()
34 aos_dev_put(ref); in aos_pwm_put()
43 AOS_PWM_CHECK_NULL(ref); in aos_pwm_set_attr()
63 aos_dev_lock(ref->dev); in aos_pwm_set_attr()
71 aos_dev_unlock(ref->dev); in aos_pwm_set_attr()
80 AOS_PWM_CHECK_NULL(ref); in aos_pwm_get_attr()
83 aos_dev_lock(ref->dev); in aos_pwm_get_attr()
88 aos_dev_unlock(ref->dev); in aos_pwm_get_attr()
[all …]
/AliOS-Things-master/components/drivers/peripheral/uart/include/aos/
A Duart.h33 ret = aos_tty_get(ref, id); in aos_uart_get()
37 ret = aos_tty_get_attr(ref, &termios); in aos_uart_get()
39 aos_tty_put(ref); in aos_uart_get()
48 ret = aos_tty_set_attr(ref, TCSANOW, &termios); in aos_uart_get()
50 aos_tty_put(ref); in aos_uart_get()
63 ret = aos_tty_get(ref, id); in aos_uart_get_with_attr()
67 ret = aos_tty_get_attr(ref, &termios); in aos_uart_get_with_attr()
69 aos_tty_put(ref); in aos_uart_get_with_attr()
80 aos_tty_put(ref); in aos_uart_get_with_attr()
94 aos_tty_put(ref); in aos_uart_get_with_attr()
[all …]
A Dtty.h23 aos_status_t aos_tty_get(aos_tty_ref_t *ref, uint32_t id);
29 void aos_tty_put(aos_tty_ref_t *ref);
36 aos_status_t aos_tty_get_attr(aos_tty_ref_t *ref, struct termios *termios);
44 aos_status_t aos_tty_set_attr(aos_tty_ref_t *ref, int optional_actions, const struct termios *termi…
53 ssize_t aos_tty_read(aos_tty_ref_t *ref, void *buf, size_t count, uint32_t timeout);
62 ssize_t aos_tty_write(aos_tty_ref_t *ref, const void *buf, size_t count, uint32_t timeout);
/AliOS-Things-master/components/drivers/peripheral/gpio/src/
A Dgpioc.c29 aos_dev_put(ref); in aos_gpioc_put()
36 if (!ref || !aos_dev_ref_is_valid(ref)) in aos_gpioc_get_num_pins()
48 if (!ref || !aos_dev_ref_is_valid(ref) || !mode) in aos_gpioc_get_mode()
56 aos_dev_lock(ref->dev); in aos_gpioc_get_mode()
58 aos_dev_unlock(ref->dev); in aos_gpioc_get_mode()
121 if (!ref || !aos_dev_ref_is_valid(ref)) in aos_gpioc_set_mode_irq()
216 aos_dev_lock(ref->dev); in aos_gpioc_set_mode_irq()
273 if (!ref || !aos_dev_ref_is_valid(ref)) in aos_gpioc_get_value()
281 aos_dev_lock(ref->dev); in aos_gpioc_get_value()
301 if (!ref || !aos_dev_ref_is_valid(ref) || val < 0) in aos_gpioc_set_value()
[all …]
/AliOS-Things-master/components/drivers/peripheral/gpio/include/aos/
A Dgpioc.h23 aos_status_t aos_gpioc_get(aos_gpioc_ref_t *ref, uint32_t id);
29 void aos_gpioc_put(aos_gpioc_ref_t *ref);
35 aos_status_t aos_gpioc_get_num_pins(aos_gpioc_ref_t *ref);
43 aos_status_t aos_gpioc_get_mode(aos_gpioc_ref_t *ref, uint32_t pin, uint32_t *mode);
51 aos_status_t aos_gpioc_set_mode(aos_gpioc_ref_t *ref, uint32_t pin, uint32_t mode);
61 aos_status_t aos_gpioc_set_mode_irq(aos_gpioc_ref_t *ref, uint32_t pin, uint32_t mode,
69 aos_status_t aos_gpioc_get_value(aos_gpioc_ref_t *ref, uint32_t pin);
77 aos_status_t aos_gpioc_set_value(aos_gpioc_ref_t *ref, uint32_t pin, int val);
84 aos_status_t aos_gpioc_toggle(aos_gpioc_ref_t *ref, uint32_t pin);
/AliOS-Things-master/components/drivers/core/base/src/
A Ddevice.c227 if (!ref) in aos_dev_ref()
247 ref->dev = dev; in aos_dev_ref()
248 ref->pdata = NULL; in aos_dev_ref()
272 if (!ref) in aos_dev_get()
293 if (!ref || !aos_dev_ref_is_valid(ref)) in aos_dev_put()
296 aos_dev_lock(ref->dev); in aos_dev_put()
297 ref->dev->ref_count--; in aos_dev_put()
299 if (ref->dev->ops && ref->dev->ops->put) in aos_dev_put()
300 ref->dev->ops->put(ref); in aos_dev_put()
302 aos_dev_unlock(ref->dev); in aos_dev_put()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dpicture_psnr_enc.c38 const uint8_t* ref, int ref_stride, in AccumulateLSIM() argument
49 const double value = (double)ref[y * ref_stride + x]; in AccumulateLSIM()
72 total_sse += VP8AccumulateSSE(src, ref, w); in AccumulateSSE()
74 ref += ref_stride; in AccumulateSSE()
140 if (src == NULL || ref == NULL || in WebPPlaneDistortion()
163 ref = tmp2; in WebPPlaneDistortion()
185 if (src == NULL || ref == NULL || in WebPPictureDistortion()
186 src->width != ref->width || src->height != ref->height || in WebPPictureDistortion()
196 if (!WebPPictureView(ref, 0, 0, w, h, &p1)) goto Error; in WebPPictureDistortion()
235 (void)ref; in WebPPlaneDistortion()
[all …]
/AliOS-Things-master/components/drivers/peripheral/adc/include/aos/
A Dadc.h46 aos_status_t aos_adc_get(aos_adc_ref_t *ref, uint32_t id);
55 void aos_adc_put(aos_adc_ref_t *ref);
66 aos_status_t aos_adc_set_sample_time(aos_adc_ref_t *ref, int32_t channel, uint32_t time);
78 aos_status_t aos_adc_set_mode(aos_adc_ref_t *ref, aos_adc_mode_t mode);
88 aos_status_t aos_adc_get_resolution(aos_adc_ref_t *ref, uint32_t *resolution);
99 aos_status_t aos_adc_get_range(aos_adc_ref_t *ref, int32_t channel, uint32_t *range);
110 aos_status_t aos_adc_read(aos_adc_ref_t *ref, int32_t channel, int32_t *data);
121 aos_status_t aos_adc_read_voltage(aos_adc_ref_t *ref, int32_t channel, int32_t *data);
/AliOS-Things-master/components/drivers/peripheral/adc/example/
A Daos_adc_example.c17 aos_adc_ref_t ref; in aos_adc_test_raw_data() local
23 ret = aos_adc_get(&ref, id); in aos_adc_test_raw_data()
29 ret = aos_adc_read(&ref, channel, &data); in aos_adc_test_raw_data()
36 ret = aos_adc_get_resolution(&ref, &resolution); in aos_adc_test_raw_data()
42 ret = aos_adc_get_range(&ref, channel, &range); in aos_adc_test_raw_data()
53 aos_adc_put(&ref); in aos_adc_test_raw_data()
61 aos_adc_ref_t ref; in aos_adc_test_voltage() local
64 ret = aos_adc_get(&ref, id); in aos_adc_test_voltage()
70 ret = aos_adc_read_voltage(&ref, channel, &data); in aos_adc_test_voltage()
78 aos_adc_put(&ref); in aos_adc_test_voltage()
/AliOS-Things-master/components/drivers/core/base/include/aos/
A Ddevice.h38 #define aos_dev_ref_init(ref) do { *(ref) = (aos_dev_ref_t)AOS_DEV_REF_INIT_VAL; } while … argument
39 #define aos_dev_ref_is_valid(ref) (!!(ref)->dev) argument
45 aos_status_t aos_dev_get(aos_dev_ref_t *ref, aos_dev_type_t type, uint32_t id);
46 void aos_dev_put(aos_dev_ref_t *ref);
A Ddevice_core.h49 #define aos_dev_ref_is_first(ref) ((ref)->dev->ref_count == 0) argument
50 #define aos_dev_ref_is_last(ref) ((ref)->dev->ref_count == 0) argument
58 aos_status_t aos_dev_ref(aos_dev_ref_t *ref, aos_dev_t *dev);
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_rcbuf.c48 (*rcbuf_ptr)->ref = 1; in nghttp2_rcbuf_new()
79 if (rcbuf->ref == -1) { in nghttp2_rcbuf_incref()
83 ++rcbuf->ref; in nghttp2_rcbuf_incref()
88 if (rcbuf == NULL || rcbuf->ref == -1) { in nghttp2_rcbuf_decref()
92 assert(rcbuf->ref > 0); in nghttp2_rcbuf_decref()
94 if (--rcbuf->ref == 0) { in nghttp2_rcbuf_decref()
107 return rcbuf->ref == -1; in nghttp2_rcbuf_is_static()
/AliOS-Things-master/components/SDL2/src/core/winrt/
A DSDL_winrtapp_direct3d.cpp107 SDL_WinRTApp ^ app = ref new SDL_WinRTApp();
118 auto direct3DApplicationSource = ref new SDLApplicationSource(); in SDL_WinRTInitNonXAMLApp()
252 ref new EventHandler<Platform::Object^>(this, &SDL_WinRTApp::OnResuming);
255 ref new EventHandler<Platform::Object^>(this, &SDL_WinRTApp::OnExiting);
264 ref new Windows::Foundation::EventHandler<Windows::Gaming::Input::Gamepad^>(
349 window->PointerCursor = ref new CoreCursor(CoreCursorType::Arrow, 0);
517 privacyPolicyURL = ref new String(tmpStr);
525 privacyPolicyLabel = ref new String(tmpStr);
528 privacyPolicyLabel = ref new String(L"Privacy Policy");
533 auto cmd = ref new SettingsCommand(L"privacyPolicy", privacyPolicyLabel,
[all …]
A DSDL_winrtapp_xaml.cpp128 …swapChainBackgroundPanel->PointerPressed += ref new PointerEventHandler(WINRT_OnPointerPressedViaX… in SDL_WinRTInitXAMLApp()
129 …swapChainBackgroundPanel->PointerReleased += ref new PointerEventHandler(WINRT_OnPointerReleasedVi… in SDL_WinRTInitXAMLApp()
130 …swapChainBackgroundPanel->PointerWheelChanged += ref new PointerEventHandler(WINRT_OnPointerWheelC… in SDL_WinRTInitXAMLApp()
131 …swapChainBackgroundPanel->PointerMoved += ref new PointerEventHandler(WINRT_OnPointerMovedViaXAML); in SDL_WinRTInitXAMLApp()
137 …WINRT_XAMLAppEventToken = CompositionTarget::Rendering::add(ref new EventHandler<Object^>(WINRT_On… in SDL_WinRTInitXAMLApp()
/AliOS-Things-master/components/drivers/peripheral/uart/src/
A Dtty.c34 void aos_tty_put(aos_tty_ref_t *ref) in aos_tty_put() argument
36 aos_dev_put(ref); in aos_tty_put()
43 if (!ref || !aos_dev_ref_is_valid(ref) || !termios) in aos_tty_get_attr()
47 aos_dev_lock(ref->dev); in aos_tty_get_attr()
49 aos_dev_unlock(ref->dev); in aos_tty_get_attr()
130 if (!ref || !aos_dev_ref_is_valid(ref) || !termios) in aos_tty_set_attr()
412 if (!ref || !aos_dev_ref_is_valid(ref) || (!buf && count > 0)) in aos_tty_read_fancy()
500 if (!ref || !aos_dev_ref_is_valid(ref) || (!buf && count > 0)) in aos_tty_write_fancy()
510 aos_dev_lock(ref->dev); in aos_tty_write_fancy()
521 aos_dev_unlock(ref->dev); in aos_tty_write_fancy()
[all …]
/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c.c13 aos_status_t aos_i2c_get(aos_i2c_ref_t *ref, uint32_t id) in aos_i2c_get() argument
15 return aos_dev_get(ref, AOS_DEV_TYPE_I2C, id); in aos_i2c_get()
18 void aos_i2c_put(aos_i2c_ref_t *ref) in aos_i2c_put() argument
20 aos_dev_put(ref); in aos_i2c_put()
124 if (!ref || !aos_dev_ref_is_valid(ref) || !msgs || num_msgs == 0) in aos_i2c_transfer()
156 aos_dev_lock(ref->dev); in aos_i2c_transfer()
158 aos_dev_unlock(ref->dev); in aos_i2c_transfer()
178 static aos_status_t dev_i2c_get(aos_dev_ref_t *ref) in dev_i2c_get() argument
183 if (!aos_dev_ref_is_first(ref)) in dev_i2c_get()
193 static void dev_i2c_put(aos_dev_ref_t *ref) in dev_i2c_put() argument
[all …]
/AliOS-Things-master/components/freetype/src/base/
A Dftmac.c226 FSRef ref; in FT_GetFilePath_From_Mac_ATS_Name() local
255 FSRef ref; in FT_GetFile_From_Mac_ATS_Name()
277 FSRef ref; in FT_FSPathMakeRes() local
289 *res = FSOpenResFile( &ref, fsRdPerm ); in FT_FSPathMakeRes()
300 FSRef ref; in get_file_type_from_path() local
500 FSRef ref, par_ref; in lookup_lwfn_by_fond() local
872 FSRef ref; in FT_New_Face_From_FOND() local
994 const FSRef* ref, in FT_New_Face_From_FSRef() argument
1004 if ( !ref ) in FT_New_Face_From_FSRef()
1047 FSRef ref; in FT_New_Face_From_FSSpec()
[all …]
/AliOS-Things-master/components/drivers/peripheral/pwm/include/aos/
A Dpwm.h53 aos_status_t aos_pwm_get(aos_pwm_ref_t *ref, uint32_t id);
62 void aos_pwm_put(aos_pwm_ref_t *ref);
72 aos_status_t aos_pwm_set_attr(aos_pwm_ref_t *ref, aos_pwm_attr_t const *attr);
82 aos_status_t aos_pwm_get_attr(aos_pwm_ref_t *ref, aos_pwm_attr_t *attr);
/AliOS-Things-master/components/drivers/peripheral/pwm/example/
A Daos_pwm_example.c25 aos_pwm_ref_t ref; in aos_pwm_cli_cmd() local
40 ret = aos_pwm_get(&ref, channel); in aos_pwm_cli_cmd()
49 ret = aos_pwm_set_attr(&ref, &attr); in aos_pwm_cli_cmd()
54 ret = aos_pwm_get_attr(&ref, &attr); in aos_pwm_cli_cmd()
67 aos_pwm_put(&ref); in aos_pwm_cli_cmd()
/AliOS-Things-master/components/uagent/
A DREADME.md38 @ref uagent_init
39 @ref uagent_mqtt_client_set
40 @ref uagent_ext_comm_start
41 @ref uagent_register
42 @ref uagent_unregister
43 @ref uagent_request_service
44 @ref uagent_send
/AliOS-Things-master/components/drivers/peripheral/spi/src/
A Dspi.c13 aos_status_t aos_spi_get(aos_spi_ref_t *ref, uint32_t id) in aos_spi_get() argument
15 return aos_dev_get(ref, AOS_DEV_TYPE_SPI, id); in aos_spi_get()
18 void aos_spi_put(aos_spi_ref_t *ref) in aos_spi_put() argument
20 aos_dev_put(ref); in aos_spi_put()
131 if (!ref || !aos_dev_ref_is_valid(ref) || !msgs || num_msgs == 0) in aos_spi_transfer()
192 aos_dev_lock(ref->dev); in aos_spi_transfer()
194 aos_dev_unlock(ref->dev); in aos_spi_transfer()
214 static aos_status_t dev_spi_get(aos_dev_ref_t *ref) in dev_spi_get() argument
219 if (!aos_dev_ref_is_first(ref)) in dev_spi_get()
229 static void dev_spi_put(aos_dev_ref_t *ref) in dev_spi_put() argument
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_font/
A Dlv_font_fmt_txt.c28 static int32_t unicode_list_compare(const void * ref, const void * element);
29 static int32_t kern_pair_8_compare(const void * ref, const void * element);
30 static int32_t kern_pair_16_compare(const void * ref, const void * element);
220 static int32_t kern_pair_8_compare(const void * ref, const void * element) in kern_pair_8_compare() argument
222 const uint8_t * ref8_p = ref; in kern_pair_8_compare()
231 static int32_t kern_pair_16_compare(const void * ref, const void * element) in kern_pair_16_compare() argument
233 const uint16_t * ref16_p = ref; in kern_pair_16_compare()
254 static int32_t unicode_list_compare(const void * ref, const void * element) in unicode_list_compare() argument
256 return (*(uint16_t *)ref) - (*(uint16_t *)element); in unicode_list_compare()
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/shakeshake/
A Dshakeshake.md27 开发环境的搭建请参考 @ref HaaS_EDU_K1_Quick_Start (搭建开发环境章节),其中详细的介绍了AliOS Things 3.3的IDE集成开发环境的搭建流程。
30 HaaS EDU K1 DEMO 的代码下载请参考 @ref HaaS_EDU_K1_Quick_Start (创建工程章节),其中,
35 参考 @ref HaaS_EDU_K1_Quick_Start (3.1 编译工程章节),点击 ✅ 即可完成编译固件。
36 参考 @ref HaaS_EDU_K1_Quick_Start (3.2 烧录镜像章节),点击 "⚡️" 即可完成烧录固件。

Completed in 53 milliseconds

12345