Home
last modified time | relevance | path

Searched refs:driver_obj (Results 1 – 25 of 26) sorted by relevance

12

/AliOS-Things-master/components/py_engine/modules/minicv/
A Ddatainput.c40 if (!driver_obj) { in datainput_obj_make_new()
48 driver_obj->mFileName = NULL; in datainput_obj_make_new()
49 driver_obj->mInstance = NULL; in datainput_obj_make_new()
66 if (driver_obj == NULL) in obj_open()
112 if (driver_obj == NULL) in obj_openCamera()
161 if (driver_obj == NULL) in obj_close()
176 driver_obj->mFileName = NULL; in obj_close()
177 driver_obj->mInstance = NULL; in obj_close()
196 if (driver_obj == NULL) in obj_checkDataReady()
229 if (driver_obj == NULL) in obj_requestData()
[all …]
A Dvideocodec.c38 if (!driver_obj) { in videocodec_obj_make_new()
62 if (driver_obj == NULL) in obj_open()
102 if (driver_obj == NULL) in obj_close()
136 if (driver_obj == NULL) in obj_decodeConfig()
168 if (driver_obj == NULL) in obj_startDecode()
199 if (driver_obj == NULL) in obj_stopDecode()
230 if (driver_obj == NULL) in obj_getDecodeImageData()
264 if (driver_obj == NULL) in obj_encodeConfig()
296 if (driver_obj == NULL) in obj_startEncode()
327 if (driver_obj == NULL) in obj_stopEncode()
[all …]
A Dimagecodec.c38 if (!driver_obj) { in imagecodec_obj_make_new()
62 if (driver_obj == NULL) in obj_open()
102 if (driver_obj == NULL) in obj_close()
135 if (driver_obj == NULL) in obj_imgRead()
174 if (driver_obj == NULL) in obj_imgReadMulti()
213 if (driver_obj == NULL) in obj_imgWrite()
252 if (driver_obj == NULL) in obj_imgWriteMulti()
291 if (driver_obj == NULL) in obj_imgDecode()
330 if (driver_obj == NULL) in obj_imgDecode2()
367 if (driver_obj == NULL) in obj_imgEncode()
[all …]
A Dui.c38 if (!driver_obj) { in ui_obj_make_new()
62 if (driver_obj == NULL) in obj_open()
101 if (driver_obj == NULL) in obj_close()
134 if (driver_obj == NULL) in obj_getDisplayWidth()
165 if (driver_obj == NULL) in obj_getDisplayHeight()
196 if (driver_obj == NULL) in obj_getDisplayBacklight()
227 if (driver_obj == NULL) in obj_setDisplayBacklight()
259 if (driver_obj == NULL) in obj_getDisplayType()
290 if (driver_obj == NULL) in obj_getDisplayFreq()
321 if (driver_obj == NULL) in obj_setDisplayFreq()
[all …]
A Dml.c38 if (!driver_obj) { in ml_obj_make_new()
45 driver_obj->mInstance = NULL; in ml_obj_make_new()
62 if (driver_obj == NULL) in obj_open()
101 if (driver_obj == NULL) in obj_close()
115 driver_obj->mInstance = NULL; in obj_close()
134 if (driver_obj == NULL) in obj_config()
180 if (driver_obj == NULL) in obj_setInputData()
218 if (driver_obj == NULL) in obj_loadNet()
256 if (driver_obj == NULL) in obj_predict()
292 if (driver_obj == NULL) in obj_getPredictResponses()
[all …]
A Dimageproc.c38 if (!driver_obj) { in imageproc_obj_make_new()
62 if (driver_obj == NULL) in obj_open()
103 if (driver_obj == NULL) in obj_close()
137 if (driver_obj == NULL) in obj_cvtColor()
172 if (driver_obj == NULL) in obj_resize()
212 if (driver_obj == NULL) in obj_imgCopy()
247 if (driver_obj == NULL) in obj_rectangle()
285 if (driver_obj == NULL) in obj_circle()
322 if (driver_obj == NULL) in obj_drawMarker()
362 if (driver_obj == NULL) in obj_fillPoly()
[all …]
/AliOS-Things-master/components/py_engine/modules/driver/
A Dgpio.c53 if (!driver_obj) { in gpio_obj_make_new()
59 driver_obj->ModuleName = "gpio"; in gpio_obj_make_new()
61 driver_obj->gpio_device = NULL; in gpio_obj_make_new()
74 if (driver_obj == NULL) { in obj_open()
132 if (driver_obj == NULL) { in obj_close()
147 driver_obj->gpio_device = NULL; in obj_close()
162 if (NULL == driver_obj) { in obj_read()
187 if (NULL == driver_obj) { in obj_write()
217 if (driver_obj == NULL) { in obj_toggle()
241 if (driver_obj == NULL) { in obj_on()
[all …]
A Dadc.c34 mp_adc_obj_t *driver_obj = m_new_obj(mp_adc_obj_t); in adc_obj_make_new() local
35 if (!driver_obj) { in adc_obj_make_new()
38 memset(driver_obj, 0, sizeof(mp_adc_obj_t)); in adc_obj_make_new()
40 driver_obj->Base.type = &driver_adc_type; in adc_obj_make_new()
41 driver_obj->ModuleName = "adc"; in adc_obj_make_new()
42 driver_obj->adc_handle.handle = NULL; in adc_obj_make_new()
44 return MP_OBJ_FROM_PTR(driver_obj); in adc_obj_make_new()
56 mp_adc_obj_t *driver_obj = (mp_adc_obj_t *)self; in adc_open() local
57 if (driver_obj == NULL) { in adc_open()
108 if (driver_obj == NULL) { in adc_close()
[all …]
A Ddac.c36 mp_dac_obj_t *driver_obj = m_new_obj(mp_dac_obj_t); in dac_obj_make_new() local
37 if (!driver_obj) { in dac_obj_make_new()
41 driver_obj->Base.type = &driver_dac_type; in dac_obj_make_new()
42 driver_obj->ModuleName = "dac"; in dac_obj_make_new()
43 driver_obj->dac_handle.handle = NULL; in dac_obj_make_new()
45 return MP_OBJ_FROM_PTR(driver_obj); in dac_obj_make_new()
59 mp_dac_obj_t *driver_obj = (mp_dac_obj_t *)self; in obj_open() local
60 if (driver_obj == NULL) { in obj_open()
129 if (driver_obj == NULL) { in obj_close()
160 if (driver_obj == NULL) { in obj_getVol()
[all …]
A Dpwm.c34 mp_pwm_obj_t *driver_obj = m_new_obj(mp_pwm_obj_t); in pwm_obj_make_new() local
35 if (!driver_obj) { in pwm_obj_make_new()
39 driver_obj->Base.type = &driver_pwm_type; in pwm_obj_make_new()
40 driver_obj->ModuleName = "pwm"; in pwm_obj_make_new()
41 driver_obj->pwm_handle.handle = NULL; in pwm_obj_make_new()
43 return MP_OBJ_FROM_PTR(driver_obj); in pwm_obj_make_new()
57 mp_pwm_obj_t *driver_obj = (mp_pwm_obj_t *)self; in obj_open() local
58 if (driver_obj == NULL) { in obj_open()
110 if (driver_obj == NULL) { in obj_close()
139 if (driver_obj == NULL) { in obj_setOption()
[all …]
A Dwdt.c38 if (!driver_obj) { in wdg_obj_make_new()
42 driver_obj->Base.type = &driver_wdt_type; in wdg_obj_make_new()
43 driver_obj->ModuleName = "wdt"; in wdg_obj_make_new()
45 return MP_OBJ_FROM_PTR(driver_obj); in wdg_obj_make_new()
58 mp_wdg_obj_t *driver_obj = (mp_wdg_obj_t *)self; in obj_open() local
59 if (driver_obj == NULL) { in obj_open()
79 mp_wdg_obj_t *driver_obj = (mp_wdg_obj_t *)self; in obj_close() local
80 if (driver_obj == NULL) { in obj_close()
103 if (driver_obj == NULL) { in obj_start()
132 if (driver_obj == NULL) { in obj_stop()
[all …]
A Drtc.c45 if (!driver_obj) { in rtc_obj_make_new()
49 driver_obj->Base.type = &driver_rtc_type; in rtc_obj_make_new()
50 driver_obj->ModuleName = "rtc"; in rtc_obj_make_new()
52 return MP_OBJ_FROM_PTR(driver_obj); in rtc_obj_make_new()
66 mp_rtc_obj_t *driver_obj = (mp_rtc_obj_t *)self; in obj_open() local
67 if (driver_obj == NULL) { in obj_open()
72 ret = aos_hal_rtc_init(&(driver_obj->rtc_dev)); in obj_open()
74 driver_obj->rtc_dev.port, driver_obj->rtc_dev.config.format); in obj_open()
96 if (driver_obj == NULL) { in obj_close()
123 if (driver_obj == NULL) { in obj_getTime()
[all …]
A Dir.c34 if (!driver_obj) { in ir_obj_make_new()
38 driver_obj->Base.type = &driver_ir_type; in ir_obj_make_new()
39 driver_obj->ModuleName = "ir"; in ir_obj_make_new()
41 return MP_OBJ_FROM_PTR(driver_obj); in ir_obj_make_new()
54 mp_ir_obj_t *driver_obj = (mp_ir_obj_t *)self; in obj_open() local
55 if (driver_obj == NULL) { in obj_open()
75 mp_ir_obj_t *driver_obj = (mp_ir_obj_t *)self; in obj_close() local
76 if (driver_obj == NULL) { in obj_close()
97 if (driver_obj == NULL) { in obj_on()
118 if (driver_obj == NULL) { in obj_send()
[all …]
A Dlocation.c36 if (!driver_obj) { in location_obj_make_new()
40 driver_obj->Base.type = &driver_location_type; in location_obj_make_new()
41 driver_obj->ModuleName = "location"; in location_obj_make_new()
43 return MP_OBJ_FROM_PTR(driver_obj); in location_obj_make_new()
56 mp_location_obj_t *driver_obj = (mp_location_obj_t *)self; in obj_open() local
57 if (driver_obj == NULL) { in obj_open()
78 if (driver_obj == NULL) { in obj_close()
99 if (driver_obj == NULL) { in obj_accessedWifi()
120 if (driver_obj == NULL) { in obj_scannedWifi()
141 if (driver_obj == NULL) { in obj_accessedLbs()
[all …]
A Duart.c38 if (!driver_obj) { in uart_obj_make_new()
42 driver_obj->Base.type = &driver_uart_type; in uart_obj_make_new()
43 driver_obj->ModuleName = "uart"; in uart_obj_make_new()
44 driver_obj->uart_handle.handle = NULL; in uart_obj_make_new()
46 return MP_OBJ_FROM_PTR(driver_obj); in uart_obj_make_new()
61 if (driver_obj == NULL) { in obj_open()
126 if (driver_obj == NULL) { in obj_close()
162 if (driver_obj == NULL) { in obj_read()
205 if (driver_obj == NULL) { in obj_write()
247 if (driver_obj == NULL) { in obj_setBaudRate()
[all …]
A Dund.c36 if (!driver_obj) { in und_obj_make_new()
40 driver_obj->Base.type = &driver_und_type; in und_obj_make_new()
41 driver_obj->ModuleName = "und"; in und_obj_make_new()
43 return MP_OBJ_FROM_PTR(driver_obj); in und_obj_make_new()
56 mp_und_obj_t *driver_obj = (mp_und_obj_t *)self; in obj_open() local
57 if (driver_obj == NULL) { in obj_open()
77 mp_und_obj_t *driver_obj = (mp_und_obj_t *)self; in obj_close() local
78 if (driver_obj == NULL) { in obj_close()
99 if (driver_obj == NULL) { in obj_start()
127 if (driver_obj == NULL) { in obj_update()
[all …]
A Dcrypto.c34 if (!driver_obj) { in crypto_obj_make_new()
38 driver_obj->Base.type = &driver_crypto_type; in crypto_obj_make_new()
39 driver_obj->ModuleName = "crypto"; in crypto_obj_make_new()
41 return MP_OBJ_FROM_PTR(driver_obj); in crypto_obj_make_new()
54 mp_crypto_obj_t *driver_obj = (mp_crypto_obj_t *)self; in obj_open() local
55 if (driver_obj == NULL) { in obj_open()
75 mp_crypto_obj_t *driver_obj = (mp_crypto_obj_t *)self; in obj_close() local
76 if (driver_obj == NULL) { in obj_close()
99 if (driver_obj == NULL) { in obj_md5()
129 if (driver_obj == NULL) { in obj_encrypt()
[all …]
A Dcan.c35 mp_can_obj_t *driver_obj = m_new_obj(mp_can_obj_t); in can_obj_make_new() local
36 if (!driver_obj) { in can_obj_make_new()
40 driver_obj->Base.type = &driver_can_type; in can_obj_make_new()
41 driver_obj->ModuleName = "can"; in can_obj_make_new()
43 return MP_OBJ_FROM_PTR(driver_obj); in can_obj_make_new()
56 mp_can_obj_t *driver_obj = (mp_can_obj_t *)self; in obj_open() local
57 if (driver_obj == NULL) { in obj_open()
77 mp_can_obj_t *driver_obj = (mp_can_obj_t *)self; in obj_close() local
78 if (driver_obj == NULL) { in obj_close()
99 if (driver_obj == NULL) { in obj_send()
[all …]
A Dkeypad.c33 mp_keypad_obj_t *driver_obj = m_new_obj(mp_keypad_obj_t); in keypad_obj_make_new() local
34 if (!driver_obj) { in keypad_obj_make_new()
38 driver_obj->Base.type = &driver_keypad_type; in keypad_obj_make_new()
39 driver_obj->ModuleName = "keypad"; in keypad_obj_make_new()
41 return MP_OBJ_FROM_PTR(driver_obj); in keypad_obj_make_new()
54 mp_keypad_obj_t *driver_obj = (mp_keypad_obj_t *)self; in obj_open() local
55 if (driver_obj == NULL) { in obj_open()
75 mp_keypad_obj_t *driver_obj = (mp_keypad_obj_t *)self; in obj_close() local
76 if (driver_obj == NULL) { in obj_close()
96 mp_keypad_obj_t *driver_obj = (mp_keypad_obj_t *)self; in obj_on() local
[all …]
A Di2c.c20 mp_i2c_obj_t *driver_obj = (mp_i2c_obj_t *)MP_OBJ_TO_PTR(args[0]); \
22 if (driver_obj == NULL) { \
61 mp_i2c_obj_t *driver_obj = m_new_obj(mp_i2c_obj_t); in i2c_obj_make_new() local
62 if (!driver_obj) { in i2c_obj_make_new()
65 memset(driver_obj, 0, sizeof(mp_i2c_obj_t)); in i2c_obj_make_new()
67 driver_obj->Base.type = &driver_i2c_type; in i2c_obj_make_new()
68 driver_obj->ModuleName = "i2c"; in i2c_obj_make_new()
70 return MP_OBJ_FROM_PTR(driver_obj); in i2c_obj_make_new()
93 ret = py_board_attach_item(MODULE_I2C, id, &(driver_obj->i2c_handle)); in i2c_open()
120 py_board_disattach_item(MODULE_I2C, &(driver_obj->i2c_handle)); in i2c_open()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dfs.c73 if (!driver_obj) { in fs_obj_make_new()
77 driver_obj->Base.type = &system_fs_type; in fs_obj_make_new()
78 driver_obj->ModuleName = "fs"; in fs_obj_make_new()
80 return MP_OBJ_FROM_PTR(driver_obj); in fs_obj_make_new()
93 mp_fs_obj_t* driver_obj = (mp_fs_obj_t *)self; in obj_open() local
94 if (driver_obj == NULL) in obj_open()
116 if (driver_obj == NULL) in obj_close()
138 if (driver_obj == NULL) in obj_issupport()
168 if (driver_obj == NULL) in obj_read()
236 if (driver_obj == NULL) in obj_write()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dfs.c73 if (!driver_obj) { in fs_obj_make_new()
77 driver_obj->Base.type = &system_fs_type; in fs_obj_make_new()
78 driver_obj->ModuleName = "fs"; in fs_obj_make_new()
80 return MP_OBJ_FROM_PTR(driver_obj); in fs_obj_make_new()
93 mp_fs_obj_t* driver_obj = (mp_fs_obj_t *)self; in obj_open() local
94 if (driver_obj == NULL) in obj_open()
116 if (driver_obj == NULL) in obj_close()
138 if (driver_obj == NULL) in obj_issupport()
168 if (driver_obj == NULL) in obj_read()
236 if (driver_obj == NULL) in obj_write()
[all …]
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dfs.c72 if (!driver_obj) { in fs_obj_make_new()
76 driver_obj->Base.type = &system_fs_type; in fs_obj_make_new()
77 driver_obj->ModuleName = "fs"; in fs_obj_make_new()
79 return MP_OBJ_FROM_PTR(driver_obj); in fs_obj_make_new()
92 mp_fs_obj_t *driver_obj = (mp_fs_obj_t *)self; in obj_open() local
93 if (driver_obj == NULL) { in obj_open()
114 if (driver_obj == NULL) { in obj_close()
135 if (driver_obj == NULL) { in obj_issupport()
164 if (driver_obj == NULL) { in obj_read()
231 if (driver_obj == NULL) { in obj_write()
[all …]
/AliOS-Things-master/components/py_engine/modules/network/udp/
A Dmodudp.c32 mp_udp_obj_t *driver_obj = (mp_udp_obj_t *)self; in obj_createSocket() local
33 if (driver_obj == NULL) { in obj_createSocket()
55 mp_udp_obj_t *driver_obj = (mp_udp_obj_t *)self; in obj_bind() local
56 if (driver_obj == NULL) { in obj_bind()
77 mp_udp_obj_t *driver_obj = (mp_udp_obj_t *)self; in obj_sendto() local
78 if (driver_obj == NULL) { in obj_sendto()
99 mp_udp_obj_t *driver_obj = (mp_udp_obj_t *)self; in obj_recvfrom() local
100 if (driver_obj == NULL) { in obj_recvfrom()
/AliOS-Things-master/components/py_engine/modules/network/tcp/
A Dmodtcp.c32 mp_tcp_obj_t *driver_obj = (mp_tcp_obj_t *)self; in obj_createSocket() local
33 if (driver_obj == NULL) { in obj_createSocket()
55 mp_tcp_obj_t *driver_obj = (mp_tcp_obj_t *)self; in obj_send() local
56 if (driver_obj == NULL) { in obj_send()
77 mp_tcp_obj_t *driver_obj = (mp_tcp_obj_t *)self; in obj_recv() local
78 if (driver_obj == NULL) { in obj_recv()

Completed in 45 milliseconds

12